Skip to main content

Random python utility libraries.

CircleCI

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)

Source distribution for utensils 1.0.1
File Size Uploaded
utensils-1.0.1.zip 19.4 kB Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

0.41

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

0.0.43

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page