Domain vocabulary enums for file format classification — path types, structures, content, and analysis categories
Project description
Path Format Attributes
Domain vocabulary enums for file format classification — path types, structures, content, and analysis categories.
Part of the path-format ecosystem: attributes (this package) · vcti-python-path-format (framework) · vcti-python-path-format-descriptors (format plugins)
This package is the shared taxonomy — it defines the classification dimensions that format descriptors and identification rules use. It lives in its own repository so that vocabulary changes are deliberate and reviewed across all formats. See docs/ecosystem.md for how the three repos work together, and docs/extending.md for how to add new members and enums.
Installation
pip install vcti-path-format-attributes>=1.1.0
In pyproject.toml dependencies
dependencies = [
"vcti-path-format-attributes>=1.1.0",
]
Quick Start
from vcti.pathformat.attribute import (
AnalysisType,
Attribute,
FileContent,
FileStructure,
PathType,
)
# Use as metadata keys and values for format descriptors
attrs = {
Attribute.PATH_TYPE: PathType.FILE,
Attribute.STRUCTURE: FileStructure.HDF5,
Attribute.CONTENT: FileContent.SOLVER_OUTPUTS,
Attribute.ANALYSIS_TYPE: AnalysisType.STRUCTURAL,
}
# Enum values are lowercase strings — usable with vcti-lookup rules
# Rule(Attribute.STRUCTURE.value, "==", FileStructure.HDF5.value)
# Lookup by value (useful for deserialization)
structure = FileStructure("hdf5")
assert structure is FileStructure.HDF5
Enums
Attribute
Attribute names for format descriptor metadata:
| Member | Value |
|---|---|
PATH_TYPE |
"path_type" |
SOLVER |
"solver" |
GENERATOR |
"generator" |
STRUCTURE |
"structure" |
CONTENT |
"content" |
ANALYSIS_TYPE |
"analysis_type" |
SOLUTION_TYPE |
"solution_type" |
PathType
| Member | Value |
|---|---|
FILE |
"file" |
DIR |
"dir" |
FileStructure
| Member | Value |
|---|---|
ASCII |
"ascii" |
BINARY |
"binary" |
HDF5 |
"hdf5" |
JSON |
"json" |
CSV |
"csv" |
FileContent
| Member | Value |
|---|---|
MESH |
"mesh" |
SOLVER_INPUTS |
"solver_inputs" |
SOLVER_OUTPUTS |
"solver_outputs" |
FILTERED_DATA |
"filtered_data" |
SURFACE_3D_MODEL |
"surface_3d_model" |
SURFACE_3D_VIEWS |
"surface_3d_views" |
AnalysisType
| Member | Value |
|---|---|
STRUCTURAL |
"structural" |
THERMAL |
"thermal" |
FLUID |
"fluid" |
CRASH |
"crash" |
Extending
To add a new member or a new enum, see docs/extending.md.
All members use auto_enum_value() — values are always lowercase strings
derived from the member name.
Dependencies
- vcti-enum (>=1.0.3) — value-generated string enums
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 vcti_path_format_attributes-1.1.0.tar.gz.
File metadata
- Download URL: vcti_path_format_attributes-1.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df454c7c413683eec33c52ed0966c4ec1f42bdfdfae162da7815321fe97179ad
|
|
| MD5 |
5121af2c529c049bb6d5a88e64ef5f42
|
|
| BLAKE2b-256 |
f95c89e454604e6b33f705095ab2980b34aed92b433a3b59f1699a3b9a8e48eb
|
Provenance
The following attestation bundles were made for vcti_path_format_attributes-1.1.0.tar.gz:
Publisher:
publish.yml on vcollab/vcti-python-path-format-attributes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcti_path_format_attributes-1.1.0.tar.gz -
Subject digest:
df454c7c413683eec33c52ed0966c4ec1f42bdfdfae162da7815321fe97179ad - Sigstore transparency entry: 1189816115
- Sigstore integration time:
-
Permalink:
vcollab/vcti-python-path-format-attributes@08c520cae71ba140c6dcbc4f175a2c022979c9ef -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vcollab
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08c520cae71ba140c6dcbc4f175a2c022979c9ef -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file vcti_path_format_attributes-1.1.0-py3-none-any.whl.
File metadata
- Download URL: vcti_path_format_attributes-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d9cf172ff521649fa27bca3cec09b4154bf93f97806d5c20089014eece1f8c5
|
|
| MD5 |
e9861f1232a76bb6a6cabafd647d01c7
|
|
| BLAKE2b-256 |
42961e0e92b86d7bdc7b6f8e379af8e419e91328c5e8e26827e3d234ee5183d4
|
Provenance
The following attestation bundles were made for vcti_path_format_attributes-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on vcollab/vcti-python-path-format-attributes
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vcti_path_format_attributes-1.1.0-py3-none-any.whl -
Subject digest:
6d9cf172ff521649fa27bca3cec09b4154bf93f97806d5c20089014eece1f8c5 - Sigstore transparency entry: 1189816164
- Sigstore integration time:
-
Permalink:
vcollab/vcti-python-path-format-attributes@08c520cae71ba140c6dcbc4f175a2c022979c9ef -
Branch / Tag:
refs/heads/main - Owner: https://github.com/vcollab
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@08c520cae71ba140c6dcbc4f175a2c022979c9ef -
Trigger Event:
workflow_dispatch
-
Statement type: