Skip to main content

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_dataset_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/

Metadata

Release files for esrf-pathlib 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for esrf-pathlib 1.1.0
File Size Uploaded Provenance
esrf_pathlib-1.1.0.tar.gz 35.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for esrf-pathlib 1.1.0
File Interpreter ABI Platform
esrf_pathlib-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 82.9 kB

Release files / esrf_pathlib-1.1.0.tar.gz

Download URL esrf_pathlib-1.1.0.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a66a7c11791361811a99c85805c4834cc1782afc58750e8baa88d8c8c1d7c9d7
BLAKE2b-256 checksum
How to use checksums
adfe47180b7420cfd3f7d13b8d051ab32181cd5d8ac4fcea57573deb5b968696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / esrf_pathlib-1.1.0-py3-none-any.whl

Download URL esrf_pathlib-1.1.0-py3-none-any.whl
Size 48.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
983027f6cf07c1309c8f960c8600447d7b3573baf102ccc6d340c82af1087e65
BLAKE2b-256 checksum
How to use checksums
e235d2ef0c0d5aed0c455f105320a0cf79b7cb26709049c12df76463641c9419
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for esrf-pathlib 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page