No project description provided
Project description
IIIF Downgrade
A basic library for converting IIIF v3 manifests to v2.
Why on earth would one do such a thing?
Certain applications (Spotlight until very recently) expect a v2 manifest. This lets someone easily take a v3 manifest from elsewhere and convert it to v2.
Warnings and Other Notes
This only handles the simplest of use cases like images or compound works of images. IIIF Presentation v2 has a much more limited set of applications than v3. This will likely create v2 manifests that are often invalid if you give it things it can't handle.
How to Use
As a library:
from iiif_downgrade import IIIFv3toV2Converter
import json
with open("fixtures/0e9016f7-f9dd-413f-b671-f75d181cbb5e.json") as f:
data = json.load(f)
converter = IIIFv3toV2Converter(
manifest=data,
manifest_id="https://example.org/manifest/v2/123.json"
)
v2 = converter.convert()
converter.save("manifest-v2.json")
As a command line utility:
Coming soon.
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
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 iiif_downgrade-0.1.2.tar.gz.
File metadata
- Download URL: iiif_downgrade-0.1.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.12 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3acd1af8251e6d4b9fde754e2211ab66b88c2b342efe8676d0ee40bcfe2a3a88
|
|
| MD5 |
6445223559a069eef471f4895f9213f3
|
|
| BLAKE2b-256 |
79c72c8909b648dac3546c9b0ce30b0ebfc77a31e11e6ff80ef98a119fc883c0
|
File details
Details for the file iiif_downgrade-0.1.2-py3-none-any.whl.
File metadata
- Download URL: iiif_downgrade-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.12 Darwin/23.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689e321da5a1ecc747900b8b2899045c113e55e4b29e6182d50d298098797e8c
|
|
| MD5 |
8c1f04eefd769cdc0e0c327e5d21c6ca
|
|
| BLAKE2b-256 |
8c26a2a99184583305b1d2a539af10b0113d8f0e0891452440615acfb67e5696
|