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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d051ef859b34704b10dda522bdb70b750d205f8b9e7300b6b02c7837efa74178
|
|
| MD5 |
995bd7780b1343e9c536490fc5d7eb9c
|
|
| BLAKE2b-256 |
d4a02b28bdb16c807ebd6e4a4852ac8c46b35b65e7377311210e6816faae1319
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ffafff7008ee4e738efdf40fa3c0f2b9a4015c6ee0aa99f23440910a53282a2
|
|
| MD5 |
362654fa64fbcf3ca7ac7ebe858db2b4
|
|
| BLAKE2b-256 |
4812a75db21a59b5ae085277fc85eb15151d172c061848f80cc0573490f9e2d1
|