Core datatypes for stele1 catalogs
Project description
stele1-datatypes
Core datatypes for stele1 catalogs.
Covers Metadata, Climb, Area, Photo, Parking, and Approach.
See the stele1 spec for the data
model these implement.
Each datatype validates its input and exposes from_data / to_data for
serialization to and from plain dicts.
Use
from stele1.climb import Climb
climb = Climb.from_data({
'uuid': '550e8400-e29b-41d4-a716-446655440000',
'name': 'The Mandala',
'rating': {'difficulty': 'V12'},
})
climb.to_data() # {'uuid': ..., 'name': ..., 'rating': ...}
climb.get_name().to_data() # 'The Mandala'
Invalid input raises TypeError or ValueError.
to_data returns plain dicts.
json.dumps(climb.to_data()) produces spec-compliant output;
formatting is up to the caller.
Install
pip install stele1-datatypes
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_datatypes-0.0.1.tar.gz.
File metadata
- Download URL: stele1_datatypes-0.0.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9444746b7976a146257632d9aea15b6f1906dbbfc6bf5a7ce4862a53b023211
|
|
| MD5 |
59782e2e6256f1bf3eb9e941fe730234
|
|
| BLAKE2b-256 |
bdcb3b15f7401be9627c8db40531d295932bbff740915de66b3afd5bef52eb74
|
File details
Details for the file stele1_datatypes-0.0.1-py3-none-any.whl.
File metadata
- Download URL: stele1_datatypes-0.0.1-py3-none-any.whl
- Upload date:
- Size: 14.7 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 |
18b6a991b3ef308ffe2e03ab93b332c81a8fc133f322c3b95caec207a4835100
|
|
| MD5 |
f4b4caafea4e0b8ad5d5a47987f77448
|
|
| BLAKE2b-256 |
e9a82242bcaf44c7c06a333cda29b41debbb5d83d86c68a0c6e3c8735ae0e245
|