Random python utility libraries.
- Python: 3.*
Install using pip:
pip install utensilsUse tox for testing.
toxSafe accessors for Python dictionaries
from utensils.dictutils import get_dotted
from utensils.dictutils import set_dotted
foo = {
'test': [1, 2, 3]
}
set_dotted(foo, 'bar.dar', 5)
print(get_dotted(foo, 'bar.dar') == 5)
print(get_dotted(foo, 'test[2]') == 3)- Make sure that the tests are passing before opening up the PR
- Create a PR for feature enhancements
- Once a PR is merged, update version with the following commands:
bumpversion patch
git push origin master --tags
tox creates a package in .tox/dist. Use twine to upload it to pypi:
twine upload .tox/dist/utensils-*.zip