pathbase 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pathbase/__init__.py
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pathbase
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Lightweight bidirectional filesystem path templates for Python.
|
|
5
|
+
Author-email: Ryan Galloway <ryan@rsgalloway.com>
|
|
6
|
+
License: BSD-3-Clause
|
|
7
|
+
Keywords: filesystem,path,template,parsing,formatting,pipeline,vfx
|
|
8
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
|
+
Classifier: Topic :: Utilities
|
|
24
|
+
Requires-Python: >=3.8
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest; extra == "dev"
|
|
28
|
+
Requires-Dist: flake8==7.1.1; extra == "dev"
|
|
29
|
+
Requires-Dist: mccabe==0.7.0; extra == "dev"
|
|
30
|
+
Requires-Dist: isort==5.13.2; extra == "dev"
|
|
31
|
+
Requires-Dist: black==24.8.0; extra == "dev"
|
|
32
|
+
Provides-Extra: test
|
|
33
|
+
Requires-Dist: pytest; extra == "test"
|
|
34
|
+
|
|
35
|
+
# pathbase
|
|
36
|
+
|
|
37
|
+
`pathbase` is a lightweight, dependency-free Python library for bidirectional
|
|
38
|
+
filesystem path templates.
|
|
39
|
+
|
|
40
|
+
## Status
|
|
41
|
+
|
|
42
|
+
This repository is currently a minimal v0 scaffold.
|
|
43
|
+
|
|
44
|
+
## Planned Direction
|
|
45
|
+
|
|
46
|
+
The core idea is a single template that can both format and parse paths:
|
|
47
|
+
|
|
48
|
+
```python
|
|
49
|
+
from pathbase import Template
|
|
50
|
+
|
|
51
|
+
template = Template(
|
|
52
|
+
"/shows/{show}/shots/{sequence}/{shot}/"
|
|
53
|
+
"{shot}_{task}_v{version:03d}.{frame:04d}.exr"
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
path = template.apply_fields(
|
|
57
|
+
show="bigbuckbunny",
|
|
58
|
+
sequence="bbb",
|
|
59
|
+
shot="0150",
|
|
60
|
+
task="plate",
|
|
61
|
+
version=1,
|
|
62
|
+
frame=1001,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
fields = template.parse(path)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Pathbase is intended to remain focused on path formatting and parsing rather
|
|
69
|
+
than environment loading, filesystem mutation, or pipeline orchestration.
|
|
70
|
+
|
|
71
|
+
## Installation
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pip install -U pathbase
|
|
75
|
+
```
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
pathbase/__init__.py,sha256=UMN_7BzT7a6MY7Lt4ncoHS1MVSpTogl2rEYD7-rEtW4,106
|
|
2
|
+
pathbase-0.0.1.dist-info/METADATA,sha256=8999t-ut7oaSreDXL-P3Wuqgnf0wPo_5WQ3d8kB18QI,2245
|
|
3
|
+
pathbase-0.0.1.dist-info/WHEEL,sha256=BNRMDyzLkkcmlv0J8ppDQkk2VED33SesJDynr9ED1gc,91
|
|
4
|
+
pathbase-0.0.1.dist-info/top_level.txt,sha256=jVBiZj8_8uwLmTIbieES9j8ySkr7LS2GmDPQELJ7Yp8,9
|
|
5
|
+
pathbase-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pathbase
|