Ultra Path
This module is made out of a simple C extension to help reduce the total time required to extract items from highly nested structures. At the moment it supports retrieving items from nested structures made out of dictionaries and lists but it can be easily extended to support other mappings or iterables.
Usage:
>>> from upath import getp
>>> getp({"level0": {"level1": [{"level3": 3}]}}, "level0.level1.0.level3") 3
>>> getp({"level0": {"level1": [{"level3": 3}]}}, "level0/level1/0/level3", '/', None) 3
>>> getp({"level0": {"level1": [{"level3": 3}]}}, "level0/level1/0/level77777777", '/', "Default value") 'Default value'
Only positional arguments are supported, so this will not work:
>>> getp({"level0": {"level1": [{"level3": 3}]}}, "level0/level1/0/level3", default='Works') None
Check C extensions documentation here: https://docs.python.org/3/extending/
Metadata
Release files for upath 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| upath-1.0.1-cp37-cp37m-macosx_10_14_x86_64.whl | CPython 3.7 | CPython 3.7 pymalloc | macOS 10.14+ x86-64 | Details for upath-1.0.1-cp37-cp37m-macosx_10_14_x86_64.whl |
Release files / upath-1.0.1-cp37-cp37m-macosx_10_14_x86_64.whl
| Download URL | upath-1.0.1-cp37-cp37m-macosx_10_14_x86_64.whl |
|---|---|
| Size | 5.1 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
4fc0171a0f80d169819036336443219118ed881fb7756ad132a14ab73bbc0716
|
|
BLAKE2b-256 checksum How to use checksums |
7e67057a587b04e108e2891bd37fec3577211f1b2adfb6f7aec706ab3dc66b27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for upath 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.