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/

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.1.0.tar.gz (35.0 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.1.0-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for esrf_pathlib-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a66a7c11791361811a99c85805c4834cc1782afc58750e8baa88d8c8c1d7c9d7
MD5 ec7d79a91ac1bf4e344fd3cd21c04f4b
BLAKE2b-256 adfe47180b7420cfd3f7d13b8d051ab32181cd5d8ac4fcea57573deb5b968696

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for esrf_pathlib-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 983027f6cf07c1309c8f960c8600447d7b3573baf102ccc6d340c82af1087e65
MD5 54d50b9ced24058c454703fbdd973d2d
BLAKE2b-256 e235d2ef0c0d5aed0c455f105320a0cf79b7cb26709049c12df76463641c9419

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.0

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

1 file

0.5.0

1 file

0.4.1

1 file

0.4.0

1 file

0.3.0

1 file

0.2.0

1 file

0.1.0

1 file

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