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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pathable-0.4.4-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pathable-0.4.4.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pathable-0.4.4.tar.gz
Algorithm Hash digest
SHA256 6905a3cd17804edfac7875b5f6c9142a218c7caef78693c2dbbbfbac186d88b2
MD5 7a2e844ac997eb9ca91f72b15c033ad3
BLAKE2b-256 67938f2c2075b180c12c1e9f6a09d1a985bc2036906b13dff1d8917e395f2048

See more details on using hashes here.

Provenance

The following attestation bundles were made for pathable-0.4.4.tar.gz:

Publisher: python-publish.yml on p1c2u/pathable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pathable-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for pathable-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae9e94793b6ef5a4cbe0a7ce9dbbefc1eec38df253763fd0aeeacf2762dbbc2
MD5 334edf9705b69220e660481632268209
BLAKE2b-256 7debb6260b31b1a96386c0a880edebe26f89669098acea8e0318bff6adb378fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for pathable-0.4.4-py3-none-any.whl:

Publisher: python-publish.yml on p1c2u/pathable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page