Skip to main content

Object-oriented paths

Project description


Object-oriented paths

Key features

  • Traverse resources like paths

  • Access resources on demand with separate accessor layer


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 as 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.4.3.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

pathable-0.4.3-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

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