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.5.tar.gz
(62.2 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.5.tar.gz.
File metadata
- Download URL: tinycrate-0.1.5.tar.gz
- Upload date:
- Size: 62.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77000044048c8f097416bf9f9d87299d661cf90e6c7c505bdf27ef2e0745d9c2
|
|
| MD5 |
c222588d21ade42166046ff30c814317
|
|
| BLAKE2b-256 |
dc0654d337009d9e2820e982a37e7573cb057ecc495c2625ee1fd692de2b05ab
|
File details
Details for the file tinycrate-0.1.5-py3-none-any.whl.
File metadata
- Download URL: tinycrate-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3ff9ddda2e7395c1d993b2d3f1d8cd9e2d88b20321e6f979d0720a7696c0353
|
|
| MD5 |
c6be38cfec9ea8ecdffd0eb6dcc906a9
|
|
| BLAKE2b-256 |
bfafa50500471c8330c2e819ec93721f876d671e771c0fa64b91314b418490ad
|