Object-oriented paths
Project description
About
Object-oriented paths
Key features
Traverse resources like paths
Access resources on demand with separate accessor layer
Usage
from pathable import DictPath
d = {
"parts": {
"part1": {
"name": "Part One",
},
"part2": {
"name": "Part Two",
},
},
}
dp = DictPath(d)
# Concatenate paths with /
parts = dp / "parts"
# Stat path keys
"part2" in parts
# Open path dict
with parts.open() as parts_dict:
print(parts_dict)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pathable-0.4.0.tar.gz
(7.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pathable-0.4.0.tar.gz.
File metadata
- Download URL: pathable-0.4.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.11.0-1027-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da4eb6a827355c2a5792b26d59ab801fcd25ef10f6ed60098ec248eb780052e3
|
|
| MD5 |
97e234582f8cacfdaf75d99db9092d44
|
|
| BLAKE2b-256 |
03bb8b161d9a828d9ba725324d9a98adebb9c9803d8181cd3fe0f18bf73b5482
|
File details
Details for the file pathable-0.4.0-py3-none-any.whl.
File metadata
- Download URL: pathable-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.11.0-1027-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b4d20220a19dc1612a0e05f1d3734acf398131d005bd2a406dbd1394d4f6f06
|
|
| MD5 |
0a12806b26cdf2f0dd2533af2913a48e
|
|
| BLAKE2b-256 |
11a8d655b268ba08ada59943594747a943769c71660595fb63a4d4936d60a17b
|