Skip to main content

Miscellaneous utility functions

Project description

jocassid-commons

Overview

Miscellaneous utility code written in Python. Modules within this library include:

accumulator_dict

  • AccumulatorDict - A dict where keys are lists or sets and accumulator_dict[key] = value will add value to the list or set for that key

data_structures

  • MergeQueue - An Iterable that merges data from two or more iterables or iterators. It's original purpose was to merge two iterables of sorted data while retaining the sort order.

dirf

  • Contains the dirf function a wrapper around the built-in dir function that adds filtering capabilities.

json

  • json_get function for extracting data from within nested lists and dicts such as those returned from a JSON api.
  • locate_key function for searching through JSON for a dict key matching a regular expression

Changelog

0.0.4

  • Added dirf module

0.0.6

  • Added data_structures module

0.0.7

  • Added string module with normalize_whitespace function

0.0.8

  • Added json.locate_key function
  • Got dirf.dirf working.

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

jocassid_commons-0.0.8.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

jocassid_commons-0.0.8-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file jocassid_commons-0.0.8.tar.gz.

File metadata

  • Download URL: jocassid_commons-0.0.8.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for jocassid_commons-0.0.8.tar.gz
Algorithm Hash digest
SHA256 8e01a73b87ef31013ca99574ef50f96be3f852efb54db318a3532b867099cffe
MD5 087a9a916b58919a42fc6077ef9a8628
BLAKE2b-256 408528b57ecd0f4e92ecd518fbd2589209af6a478186084b5ee31bf510e2fcee

See more details on using hashes here.

File details

Details for the file jocassid_commons-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for jocassid_commons-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 93d4f9daaf5352d93379975593810f6b7dffc4255560ec543ba5bc54171fa35d
MD5 a16d9809f00a717fafd0fef6480c7d02
BLAKE2b-256 d7690e68c4c2a97073c78e3d5f6c4b1ba87e8217aa8989e70f0c5ed3b312c67e

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