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
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
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
Built Distribution
File details
Details for the file variable_generator-0.1.1.tar.gz
.
File metadata
- Download URL: variable_generator-0.1.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c579bd962f604dc312050f095fbf673206739d45b7e51842e1b9199a7b1deae6 |
|
MD5 | c346164132115b42476a1557103eb8ea |
|
BLAKE2b-256 | c30646346fe62b2db099a0399cead015963dfaef8596f85575feb4ba8f61a0fd |
File details
Details for the file variable_generator-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: variable_generator-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7712e8e0bcdf3a7e26794476f3872eca018a4b3d19cc0a245fb8b0c59f7fad8 |
|
MD5 | 11984e50791a462bd4092f6b6783e003 |
|
BLAKE2b-256 | 1e18b7cd16580e34d14637fdc19c82afb46d7064442b6c425c87dcc27d6e277d |