Filesystem interface for stele1 catalogs
Project description
stele1-filesystem
Filesystem interface for stele1 catalogs.
Reads and writes catalogs on disk. Each catalog is a directory; records are individual JSON files organized by datatype.
Exposes primitives: get, set, list, remove. Higher-level operations (queries, traversals, indexing) are left to consumers.
Use
from stele1.filesystem import Catalog
catalog = Catalog('/path/to/catalog.stele1.d')
if not catalog.exists():
catalog.create()
for uuid in catalog.climb_uuids():
climb = catalog.get_climb_by_uuid(uuid)
climb.get_name().to_data() # 'The Mandala'
Each datatype (Climb, Area, Photo, Parking, Approach) has matching
{type}_uuids(), get_{type}_by_uuid(uuid), set_{type}({type}), and
remove_{type}_by_uuid(uuid) methods.
Photos additionally support get_photo_image_by_uuid and
set_photo_image_by_uuid for the associated image file.
See stele1-datatypes for the datatypes returned by the getters.
Install
pip install stele1-filesystem
License
MIT
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 stele1_filesystem-0.0.1.tar.gz.
File metadata
- Download URL: stele1_filesystem-0.0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1f1cc44ef0bce62a8fd3cd5175bdec8ea8124b87113700c08ba37bd3eb6f003
|
|
| MD5 |
d270f3b2b7d8c6902c2cdc90845123e3
|
|
| BLAKE2b-256 |
6b2c6db502356ac34b22113a5c5f8d753ae3ae5b36298886f049a0efeea91e97
|
File details
Details for the file stele1_filesystem-0.0.1-py3-none-any.whl.
File metadata
- Download URL: stele1_filesystem-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8b6fa930245a2b192a7723b263dfef9bb60999bf14f80de3a03725f73b51d4
|
|
| MD5 |
6dd198425ef24b2497fc36acaba01fe4
|
|
| BLAKE2b-256 |
630cbb15320d9e34bce639776ff56565fb6603372f2023380b2f1c59f2950f1d
|