Metadata-Version: 2.4
Name: tinycrate
Version: 0.1.0
Summary: Add your description here
Author-email: Mike Lynch <m.lynch@sydney.edu.au>
Requires-Python: >=3.13
Requires-Dist: pytest-httpserver>=1.1.3
Requires-Dist: requests>=2.32.3
Description-Content-Type: text/markdown

# 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)
    
