{"id":22290765,"url":"https://github.com/mberry/iiif","last_synced_at":"2025-03-25T21:33:23.063Z","repository":{"id":62440514,"uuid":"243146711","full_name":"mberry/iiif","owner":"mberry","description":"A rust client for the International Image Interoperability Framework","archived":false,"fork":false,"pushed_at":"2022-08-20T09:23:32.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-01T23:11:52.116Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mberry.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-26T02:09:37.000Z","updated_at":"2022-10-09T14:35:32.000Z","dependencies_parsed_at":"2022-11-01T21:53:23.438Z","dependency_job_id":null,"html_url":"https://github.com/mberry/iiif","commit_stats":null,"previous_names":["mitchellberry/iiif"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mberry%2Fiiif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mberry%2Fiiif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mberry%2Fiiif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mberry%2Fiiif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mberry","download_url":"https://codeload.github.com/mberry/iiif/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236406009,"owners_count":19143666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T17:14:03.979Z","updated_at":"2025-01-30T18:47:25.690Z","avatar_url":"https://github.com/mberry.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IIIF\n\nA rust client for the International Image Interoperability Framework.\n\nFor now only contains the Image API.\n\n### Install\n```toml\n[dependencies]\niiif = \"0.1.1\"\n```\n\n### Usage\n\nA convenience fetch function is provided and will create a new client for each\nrequest, it is advised to create a reusable client and\npass that to the request function for multiple requests.\n\n##### Fetch and write to file\n```rust\nlet api = Image::new(\"https://ids.lib.harvard.edu/ids/iiif\");\napi.identifier(\"25286607\");\nlet response = api.fetch()\n                  .await\n                  .unwrap();\n\n// Write to foo.jpg\nresponse.write_to_file(\"foo.jpg\")\n        .await\n        .expect(\"Writing file to disk\");\n```\n\n##### Reusable client requests\n```rust\nlet client = Client::new();\nlet base = \"https://ids.lib.harvard.edu/ids/iiif\";\nlet mut images: Vec\u003cBytes\u003e = Vec::new();\n\n// Iterate through some images\nlet ids = [\"25286607\", \"25286608\", \"25286609\"];\nfor id in ids {\n  let mut api = Image::new(base);\n  api.identifier(id);\n  let response = api.request(\u0026client)\n                    .await\n                    .unwrap();\n  images.push(response.image);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmberry%2Fiiif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmberry%2Fiiif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmberry%2Fiiif/lists"}