vai-jobspec-tools
Utilities for VoxelAI jobspec containers
Installation
pip install vai-jobspec-tools
API
from __future__ import annotations
import contextlib
import logging
from pathlib import Path
from typing import Iterator
def configure_logger(
logger: logging.Logger,
*,
verbosity: int = 0,
level: int | None = None,
):
"""Configure a logger with a level and custom stream handler."""
...
@contextlib.contextmanager
def optional_temporary_directory(workdir: str | Path | None = None) -> Iterator[Path]:
"""Create a temporary directory if one is not provided."""
...
def prepare_dst_uri(
uri: str,
subject_id: str,
session_id: str,
pipeline_name: str,
pipeline_version: str,
job_id: str,
*,
create: bool = True,
) -> str:
"""Generate a URI scoped to a particular subject, session, pipeline, version and job"""
...
def lowercase_alnum(s: str) -> str:
"""Transform a string so that it contains only lowercase alphanumeric characters."""
...
Metadata
Release files for vai-jobspec-tools 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vai_jobspec_tools-2.1.0.tar.gz | 3.1 kB | Without provenance | Details for vai_jobspec_tools-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vai_jobspec_tools-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for vai_jobspec_tools-2.1.0-py3-none-any.whl |
Total release size: 6.4 kB
Release files / vai_jobspec_tools-2.1.0.tar.gz
| Download URL | vai_jobspec_tools-2.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0ce6388eda86981cb22fbfcc53bb8006409172a925da6e6e6a0c4e6e7183e2e
|
|
BLAKE2b-256 checksum How to use checksums |
db098e8a1747240dbdeda74b998274c2691493aab05fb2c8ee05fd9942e7e252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.12.1 Linux/6.2.0-1018-azure
|
Release files / vai_jobspec_tools-2.1.0-py3-none-any.whl
| Download URL | vai_jobspec_tools-2.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1fed670bbe6dd10e38483ccdcb66f0015a62c8715a8132a9b1bf63cf4e3fe519
|
|
BLAKE2b-256 checksum How to use checksums |
c9ee73c31707a1eea4be728b4b909b6dfec2f1b6095dd43c2bbafd48f2748018
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.12.1 Linux/6.2.0-1018-azure
|
Security for vai-jobspec-tools 2.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.