A helper package for expanding strings
Project description
expand_string
This library provides functions that allow you to expand a string that contains parenthesis with numeric-values, and then expands that into an actual string value.
Installation
$ pip install expand_string
Usage
Simple example:
from expand_string import expand_string
expand_string('N3(S)N2(E3(NW))')
Would result in the output:
NSSSNENWNWNWENWNWNW
Shell example:
python -m expand_string 'N3(S)N2(E3(NW))'
Would result in the output:
NSSSNENWNWNWENWNWNW
For more details see the expand_string
docstring.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
expand_string-0.0.2.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for expand_string-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cffde15cd551850ef8da18162aa2d2f34470161dde30b3f8c9b93406c0126a2 |
|
MD5 | f6fbf443df26d971791768600f950dfd |
|
BLAKE2b-256 | fabaf08c48aa7917a9e8849c76bfe7dfa75659b1943542b08a1610ab92226122 |