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.3.tar.gz
(60.9 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.3.tar.gz.
File metadata
- Download URL: tinycrate-0.1.3.tar.gz
- Upload date:
- Size: 60.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc4a0de3331e12ed247bd6370ba982c9729635ca6bd30c8f8401860e16b4c17d
|
|
| MD5 |
b20ef53d3babf5fc86f2eed60ebbc6df
|
|
| BLAKE2b-256 |
8925e02e801591585d67d3b79257b0f5d713ceff1df6c36dd9f6d03182359ac6
|
File details
Details for the file tinycrate-0.1.3-py3-none-any.whl.
File metadata
- Download URL: tinycrate-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1db3ba9c80a7fc00283cceb75fd61c9a207851d7a6ee97c5ffac25836349274d
|
|
| MD5 |
bb630e57a167f47774be641f0578ee4f
|
|
| BLAKE2b-256 |
bb17a8a177242b3daaf4d3e34589e9e4231cf7602c3c4cf057600127a960e4bf
|