Skip to main content

A small module to support automation of generating valid python variable names from external data.

Project description

Variable_Generator


variable_generator is a small module to support automation

of generating valid python variable names from external data.

It is designed as a service to be used by other programs

that would parse through data and need to translate that data to usable python code.


Installing

Install and update using pip:

pip install -U variable_generator

A Simple Example


from variable_generator.name_generator import generate_valid_variable_name

raw_data = "123_ $%^ ששthis_is_var1 "

var1 = generate_valid_variable_name(self.testing_data['string1'])


> num123_dollar_percent_circumflex_15131513this_is_var1


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

variable_generator-0.1.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

variable_generator-0.1.1-py2.py3-none-any.whl (6.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file variable_generator-0.1.1.tar.gz.

File metadata

File hashes

Hashes for variable_generator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c579bd962f604dc312050f095fbf673206739d45b7e51842e1b9199a7b1deae6
MD5 c346164132115b42476a1557103eb8ea
BLAKE2b-256 c30646346fe62b2db099a0399cead015963dfaef8596f85575feb4ba8f61a0fd

See more details on using hashes here.

File details

Details for the file variable_generator-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for variable_generator-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b7712e8e0bcdf3a7e26794476f3872eca018a4b3d19cc0a245fb8b0c59f7fad8
MD5 11984e50791a462bd4092f6b6783e003
BLAKE2b-256 1e18b7cd16580e34d14637fdc19c82afb46d7064442b6c425c87dcc27d6e277d

See more details on using hashes here.

Supported by

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