Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tinycrate-0.1.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for tinycrate-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fc4a0de3331e12ed247bd6370ba982c9729635ca6bd30c8f8401860e16b4c17d
MD5 b20ef53d3babf5fc86f2eed60ebbc6df
BLAKE2b-256 8925e02e801591585d67d3b79257b0f5d713ceff1df6c36dd9f6d03182359ac6

See more details on using hashes here.

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

Hashes for tinycrate-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1db3ba9c80a7fc00283cceb75fd61c9a207851d7a6ee97c5ffac25836349274d
MD5 bb630e57a167f47774be641f0578ee4f
BLAKE2b-256 bb17a8a177242b3daaf4d3e34589e9e4231cf7602c3c4cf057600127a960e4bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page