Skip to main content

Klein Util

Module to contain some basic utility components

klein_util.dict

traverse_dict() - function for traversing nested dicts using a list of keys

Example: get a field from a mongo doc using dot notation:

from klein_util.dict import traverse_dict

property = 'ner.chemicalentities.found'
entities_found = traverse_dict(doc, property.split('.'))

Tests

To run tests, run the following command in the project root directory:

python -m pytest

License

This project is licensed under the terms of the Apache 2 license, which can be found in the repository as LICENSE.txt

Metadata

Release files for klein-util 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for klein-util 1.0.8
File Size Uploaded Provenance Actions
klein_util-1.0.8.tar.gz 6.8 kB Without provenance Details for klein_util-1.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for klein-util 1.0.8
File Interpreter ABI Platform Actions
klein_util-1.0.8-py3-none-any.whl Python 3 none any Details for klein_util-1.0.8-py3-none-any.whl

Total release size: 16.6 kB

Release files / klein_util-1.0.8.tar.gz

Download URL klein_util-1.0.8.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
62490c79e04ebd2320c825a2177f065e1751a5a490181935941a19255d43ef63
BLAKE2b-256 checksum
How to use checksums
490095f56ef00cb61f19a8dd5caeeb1524965683694dc5c97f60e4e4c282c00a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.11

Release files / klein_util-1.0.8-py3-none-any.whl

Download URL klein_util-1.0.8-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c25580aba071d87710cc20d52ead20f78cc211966ab5722266470cfb40a35f71
BLAKE2b-256 checksum
How to use checksums
15def1a645aacec61c137e49ff4c8e4aaee03146c6b4dd8eef8b69ba41c28bbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.11

Security for klein-util 1.0.8

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.

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