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
Close
Hashes for variable_generator-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7712e8e0bcdf3a7e26794476f3872eca018a4b3d19cc0a245fb8b0c59f7fad8 |
|
MD5 | 11984e50791a462bd4092f6b6783e003 |
|
BLAKE2b-256 | 1e18b7cd16580e34d14637fdc19c82afb46d7064442b6c425c87dcc27d6e277d |