A lightweight RO-Crate library
Project description
tinycrate
A minimal RO-Crate library in Python with an emphasis on working transparently with crates on disk and crates over the network.
Usage
from tinycrate.tinycrate import TinyCrate
tc_from_json = TinyCrate(jsonld)
tc_from_url = TinyCrate(url)
tc_from_disk = TinyCrate(crate_path)
r = tc_from_url.root()
for entity in tc_from_url.all():
for prop.value in entity.items():
print(f"{prop}: {value}"")
if entity.type == "File":
contents = entity.fetch()
print(contents)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tinycrate-0.1.1.tar.gz
(53.1 kB
view details)
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 tinycrate-0.1.1.tar.gz.
File metadata
- Download URL: tinycrate-0.1.1.tar.gz
- Upload date:
- Size: 53.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51a3e52b392e637caa795bc15c523bbad1a8279c80aeee67cda9560809781cc3
|
|
| MD5 |
dab046865facf7eb2bb112d7b4674a88
|
|
| BLAKE2b-256 |
148f54b69b8f2353b9e92a2ee851fa6aecbecfc146929d92c3b5b3285feef852
|
File details
Details for the file tinycrate-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tinycrate-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
852921cdf831a9d9897606f4d06a76c0853aa6e9b0bc7bab0413813dd8b92409
|
|
| MD5 |
315e34d83d756f688b60928f982062f4
|
|
| BLAKE2b-256 |
4efbb8e7cd041f515a0ee546a29b292e0004546e7230515871eb513cae0d0142
|