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-0.7.1.tar.gz (32.9 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-0.7.1-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: esrf_pathlib-0.7.1.tar.gz
  • Upload date:
  • Size: 32.9 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.7.1.tar.gz
Algorithm Hash digest
SHA256 4cc4c730febf9ba17e1f1b683592bd595b2816e9268f0504cb4c75bff1416991
MD5 ebdf0845889a6988b3d35e0897dc27d4
BLAKE2b-256 f9a23f72ff9e79200e004ad866324621cea053beedd71314aa1ba0c25c80e128

See more details on using hashes here.

File details

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

File metadata

  • Download URL: esrf_pathlib-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 46.1 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-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9a5b81b2d6afa89ed0eb93705b741a283cee3db879bb368102642d609d1e7ff
MD5 1e4f7451e8dcc0cad49988a7d33cf27f
BLAKE2b-256 7bce821d16707260c9922866ae7411d05c848f185d929c98211a3226900fb71a

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