Skip to content

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.

License

Notifications You must be signed in to change notification settings

ja-odur/exapnd-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages