Skip to main content

Library of utilities for python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utensils-1.0.1.zip (19.4 kB view details)

Uploaded Source

File details

Details for the file utensils-1.0.1.zip.

File metadata

  • Download URL: utensils-1.0.1.zip
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for utensils-1.0.1.zip
Algorithm Hash digest
SHA256 65285ebb8cff4c50a92cfe4a6b38f1c01e777f2aeec03d133a30144b022e4dc5
MD5 3cdfd129f124b249d7c80ff06e3826b2
BLAKE2b-256 c1db15782deb21490fb77c313b8c62be7c06cbe2f11b943d3b8ce541becc30d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page