Decorator for fixing naming conventions to keys of keyword arguments - adds trailing underscores to keys using bad naming such as reserved keywords or Python built-ins
Project description
cure
Library for adding trailing underscores to passed down keyword arguments from third party libraries. Adds the preferred trailing underscore to the key in the kwarg if the key would conflict with the Python reserved keywords or Python built-ins. Methods can be decorated with the @cure
decorator.
Installation with pip
Like you would install any other Python package, use pip
, poetry
, pipenv
or your weapon of choice.
$ pip install cure
Usage and examples
@cure
decorator
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
cure-0.0.4.tar.gz
(4.3 kB
view hashes)
Built Distribution
cure-0.0.4-py3-none-any.whl
(4.5 kB
view hashes)