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.1.tar.gz
(2.3 kB
view hashes)
Built Distributions
Close
Hashes for expand_string-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c8154fb12bc77099b4909349d024684fa41c2e07ea4cd623ef7c7569ee33bd |
|
MD5 | ffc78525389c6a2708103ec92c4fe24e |
|
BLAKE2b-256 | 4cdc11e1a0a876d6a9f37b0e06adfbbf3d4041d37a0225feb2f74e5a0f5b7630 |
Close
Hashes for expand_string-0.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0849ec593bb2d09969d1fee8e006ed02ad6effead18998b7bf83c1271e2aef13 |
|
MD5 | d6445c761a23a6b1f2fa3cf82f2c587c |
|
BLAKE2b-256 | 3efc8ccbee22e6d504df67cc9bbf803e641ac5619abc59fda7ec3b770a637097 |