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
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.3.0.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for pathable-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a5b6f319a839de2b647f42e5a27382085acf9118545c6c8ffc0cf63edd2b7f2 |
|
MD5 | efcc072c6c6854c2861cd142dd50a446 |
|
BLAKE2b-256 | cfd4f3a2479a6626381e426d98dca3a03037ac01fb6729cfb33ff5785f5b7ab1 |