Metadata-Version: 2.0
Name: variable-generator
Version: 0.1.1
Summary: A small module to support automation of generating valid python variable names from external data.
Home-page: https://github.com/yehonadav/variable_generator
Author: Yehonadav
Author-email: yonadav.barilan@gmail.com
License: BSD
Description-Content-Type: UNKNOWN
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides-Extra: dev
Requires-Dist: pytest (>=3); extra == 'dev'
Requires-Dist: coverage; extra == 'dev'
Requires-Dist: tox; extra == 'dev'
Requires-Dist: sphinx; extra == 'dev'
Provides-Extra: dotenv
Requires-Dist: python-dotenv; extra == 'dotenv'

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


