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("Proposal:", path.proposal)
print("Processed results:", path.processed_data_path)

Output:

Proposal: ma1234
Processed results: /data/visitor/ma1234/id00/20250509/PROCESSED_DATA

The available attributes depend on the version of the ESRF data schema matched by 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-0.6.0.tar.gz (11.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for esrf_pathlib-0.6.0.tar.gz
Algorithm Hash digest
SHA256 d8589936e8407a606210fed324e2ee97ab7896cf9314f67c06064ecb000d7687
MD5 4d931dcb9772f41578886f8dfa22086c
BLAKE2b-256 77634171e017e9de05147ef0e9f8b7c312557e2b4d78808679da38093e9bc27d

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