Random python utility libraries.
Requirements
- Python: 3.*
Installation
Install using pip:
pip install utensils
Testing
Use tox for testing.
tox
Usage
Safe 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)
Contribution
- 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
Packaging
tox creates a package in .tox/dist. Use twine to upload it to pypi:
twine upload .tox/dist/utensils-*.zip
Metadata
Release files for utensils 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| utensils-1.0.1.zip | 19.4 kB | Without provenance | Details for utensils-1.0.1.zip |
Release files / utensils-1.0.1.zip
| Download URL | utensils-1.0.1.zip |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65285ebb8cff4c50a92cfe4a6b38f1c01e777f2aeec03d133a30144b022e4dc5
|
|
BLAKE2b-256 checksum How to use checksums |
c1db15782deb21490fb77c313b8c62be7c06cbe2f11b943d3b8ce541becc30d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5
|
Security for utensils 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.