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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pathable-0.4.3.tar.gz
Algorithm Hash digest
SHA256 5c869d315be50776cc8a993f3af43e0c60dc01506b399643f919034ebf4cdcab
MD5 af246636f9d93fca61d1bd5182c9c0f5
BLAKE2b-256 9dede0e29300253b61dea3b7ec3a31f5d061d577c2a6fd1e35c5cfd0e6f2cd6d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pathable-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cdd7b1f9d7d5c8b8d3315dbf5a86b2596053ae845f056f57d97c0eefff84da14
MD5 bd5bbc4fc38b3caf17be179b69030b48
BLAKE2b-256 5b0aacfb251ba01009d3053f04f4661e96abf9d485266b04a0a4deebc702d9cb

See more details on using hashes here.

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