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.2.tar.gz
(60.3 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.2.tar.gz.
File metadata
- Download URL: tinycrate-0.1.2.tar.gz
- Upload date:
- Size: 60.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ed3c720643f1bd967c6ded8658496ba8319669215a10a7eb1515a596320474c
|
|
| MD5 |
c05cee60797de041a7aa50033736afd9
|
|
| BLAKE2b-256 |
1f40ede4d6566efc7fbc6b87d3d8a43fd8f4cfe50befeb9053425e19b49ff4bc
|
File details
Details for the file tinycrate-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tinycrate-0.1.2-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 |
28c74950c9759c99d49aa3e8f3d6e12ca347c7b313cb234ae3c988e04857ab0c
|
|
| MD5 |
830dd2cbe68dde5cf1c9cedccffeb784
|
|
| BLAKE2b-256 |
aa7bd6ba447136d8c9e0a43c2e95e903245c61cb427748cc897f8c304c68711a
|