Skip to main content

A drop-in pathlib clone with ESRF-specific path utilities

Project description

esrf-pathlib

esrf-pathlib is a drop-in replacement for Python’s built-in pathlib.Path, extended with ESRF-specific attributes.

It detects and interprets known ESRF data directory structures and provides high-level access to proposal names, processed data locations, and more.

Installation

pip install esrf-pathlib

Getting Started

from esrf_pathlib import ESRFPath

path = ESRFPath("/data/visitor/ma1234/id00/20250509/RAW_DATA/sample/sample_dataset")

print(path)
print("Proposal:", path.proposal)
print("Processed results:", path.processed_data_file)

Output:

<ESRFPath '/data/visitor/ma1234/id00/20250509/RAW_DATA/sample/sample_dataset' schema='esrf_v3' template='raw_dataset_path'>
Proposal: ma1234
Processed results: /data/visitor/ma1234/id00/20250509/PROCESSED_DATA/sample/sample_dataset/sample_dataset.h5

The available attributes depend on the ESRF path template matching the path.

Documentation

https://esrf-pathlib.readthedocs.io/

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

esrf_pathlib-1.0.0.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

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

esrf_pathlib-1.0.0-py3-none-any.whl (47.2 kB view details)

Uploaded Python 3

File details

Details for the file esrf_pathlib-1.0.0.tar.gz.

File metadata

  • Download URL: esrf_pathlib-1.0.0.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for esrf_pathlib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d051ef859b34704b10dda522bdb70b750d205f8b9e7300b6b02c7837efa74178
MD5 995bd7780b1343e9c536490fc5d7eb9c
BLAKE2b-256 d4a02b28bdb16c807ebd6e4a4852ac8c46b35b65e7377311210e6816faae1319

See more details on using hashes here.

File details

Details for the file esrf_pathlib-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: esrf_pathlib-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 47.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for esrf_pathlib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ffafff7008ee4e738efdf40fa3c0f2b9a4015c6ee0aa99f23440910a53282a2
MD5 362654fa64fbcf3ca7ac7ebe858db2b4
BLAKE2b-256 4812a75db21a59b5ae085277fc85eb15151d172c061848f80cc0573490f9e2d1

See more details on using hashes here.

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