/dotsplit.py

Transform dot-delimited strings to an array of python strings.

Primary LanguagePythonMIT LicenseMIT

dotsplit

Transform dot-delimited strings to array of python strings.

>>> import dotsplit
>>> dotsplit('group.0.section.a.seat.3')
['group', '0', 'section', 'a', 'seat', '3']

Downloads Supported Versions Contributors

Installation

dotsplit is available on PyPI:

poetry
poetry install dotsplit
pip
python -m pip install dotsplit

Testing

to run the unit test suite, cd to the root directory and run:

❯ poetry install
❯ poetry run pytest

Licenses

GitHub license