Skip to main content

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.4.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

pathable-0.4.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file pathable-0.4.2.tar.gz.

File metadata

  • Download URL: pathable-0.4.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.6 Linux/5.15.0-1017-azure

File hashes

Hashes for pathable-0.4.2.tar.gz
Algorithm Hash digest
SHA256 c3958c73d43c26ab7f5bc0795e1b8f342b77746a887a2245b1469181531a4d59
MD5 ffa68e3089a5e8f5b6e311de16ee3a6a
BLAKE2b-256 85c021826d2fe246dd8333f23ce9bc47f2a1618824acf64671736d34db02409d

See more details on using hashes here.

Provenance

File details

Details for the file pathable-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: pathable-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.6 Linux/5.15.0-1017-azure

File hashes

Hashes for pathable-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fdb659b3fb515a097995cd4ddefd85a9115591061110ba4a79738bcb89a1296
MD5 b14ed31b97b7df8ed4f5ec25d0876202
BLAKE2b-256 7011efbcda7ae8c90bc3813a5624b447478e099e598eb3945044132145d93e68

See more details on using hashes here.

Provenance

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