Skip to main content

SciPathGen

Template-based path generation for data pipelines.

Generates file paths with associated metadata from a template and metadata value combinations.

Usage

from scipathgen import PathGenerator

paths = PathGenerator(
    "{subject}/trial_{trial}.mat",
    root_folder="/data/experiment",
    subject=range(3),
    trial=range(5),
)

for path, meta in paths:
    print(path, meta)
# /data/experiment/0/trial_0.mat {'subject': 0, 'trial': 0}
# /data/experiment/0/trial_1.mat {'subject': 0, 'trial': 1}
# ...

# Supports indexing and length
print(len(paths))  # 15
path, meta = paths[0]

If root_folder is omitted, paths are resolved relative to the current working directory via Path.resolve().

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scipathgen-0.1.14.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scipathgen-0.1.14-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file scipathgen-0.1.14.tar.gz.

File metadata

  • Download URL: scipathgen-0.1.14.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for scipathgen-0.1.14.tar.gz
Algorithm Hash digest
SHA256 d8b11a0f69f8c7ce2c26bb70e0c83826b3faf950cbb5f204ecd07fb775cd4b89
MD5 50a7d33ea35cef4dabb93c36622e8597
BLAKE2b-256 d09dbb0f3758db22b3e8d96aae68ff4b6c9c5e880cf37bf7affe81766d9f175a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scipathgen-0.1.14.tar.gz:

Publisher: publish.yml on mtillman14/scistack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scipathgen-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: scipathgen-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for scipathgen-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 05ed9a3717e9fca8ce0c51c0ddf9d2d12e398ec2aefd5609a3ca9181bbef8627
MD5 885d88166a4be6dad6210fba122dbbe2
BLAKE2b-256 2ac48838f4eb5c2e10b691191c823dcbf88eab34a2ad3179610b17110fbea823

See more details on using hashes here.

Provenance

The following attestation bundles were made for scipathgen-0.1.14-py3-none-any.whl:

Publisher: publish.yml on mtillman14/scistack

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.29

2 files

0.1.28

2 files

0.1.26

2 files

0.1.21

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

This release

0.1.14 This release

2 files

0.1.13

2 files

0.1.11

2 files

0.1.10

2 files

0.1.0

2 files

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