Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

expand_string-0.0.2-py2-none-any.whl (3.6 kB view details)

Uploaded Python 2

File details

Details for the file expand_string-0.0.2.tar.gz.

File metadata

  • Download URL: expand_string-0.0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.5

File hashes

Hashes for expand_string-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6c8a5ddc7a682fe82ec992a8ea453f07c5b206c5891be23f37f0fc6cbb9f1ed1
MD5 1bad4ddb36239c23b33440cd946d0811
BLAKE2b-256 2b72c1dc16dd9f6851631bab716fdd3d8864a6b48399f3f7ed7ffedabf899337

See more details on using hashes here.

File details

Details for the file expand_string-0.0.2-py2-none-any.whl.

File metadata

  • Download URL: expand_string-0.0.2-py2-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.5

File hashes

Hashes for expand_string-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 7cffde15cd551850ef8da18162aa2d2f34470161dde30b3f8c9b93406c0126a2
MD5 f6fbf443df26d971791768600f950dfd
BLAKE2b-256 fabaf08c48aa7917a9e8849c76bfe7dfa75659b1943542b08a1610ab92226122

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page