{"id":24228790,"url":"https://github.com/blacha/cotar-rs","last_synced_at":"2026-06-07T00:32:26.238Z","repository":{"id":94086141,"uuid":"458689908","full_name":"blacha/cotar-rs","owner":"blacha","description":"Cloud optimised tar files","archived":false,"fork":false,"pushed_at":"2024-04-24T21:06:33.000Z","size":127,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T11:47:23.453Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-02-13T02:30:33.000Z","updated_at":"2024-04-24T21:06:36.000Z","dependencies_parsed_at":"2024-04-24T22:22:42.114Z","dependency_job_id":null,"html_url":"https://github.com/blacha/cotar-rs","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcotar-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcotar-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcotar-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fcotar-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacha","download_url":"https://codeload.github.com/blacha/cotar-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241809591,"owners_count":20023783,"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":"2025-01-14T11:32:55.051Z","updated_at":"2025-12-03T00:01:59.871Z","avatar_url":"https://github.com/blacha.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cotar\n\nRust based [cotar](https://github.com/linz/cotar) reader\n\n## CLI\n\nCommands:\n- `index` Create a tar index for a tar\n- `validate` Validate tar index\n- `from-mbtiles` Create a tar from a mbtiles archive\n\nExamples\nCreate a tar index and validate it\n\ncreate `topographic.tar.index`\n\n```\ncotar index topographic.tar\n```\n\nvalidate the new index\n\n```\ncotar validate topographic.tar topographic.tar.index\n```\n\nConvert a mbtiles to a tar\n\n```\ncotar from-mbtiles topographic.mbtiles topographic.tar\n\ncotar index topographic.tar # creates topographic.tar.index\n```\n\n## Library\n\n```rust\nuse cotar;\n\nlet mut ct = cotar::Cotar::from_tar(\"example.tar.co\").expect(\"Failed to ::from_tar()\");\nlet file_name = \"tiles/8/247/108.pbf.gz\";\n\nlet file_info = ct.info(file_name).expect(\"Failed to .info()\");\nprintln!(\"ct.info('{}') {:?}\", file_name, file_info);\n// CotarIndexEntry { hash: 121498119488259422, offset: 7080448, size: 68 }\n\nlet file_data = ct.get(file_name).expect(\"Failed to .get()\");\nprintln!(\"ct.get('{}') {:?}\", file_name, file_data);\n// [26, 66, 120 ... ]\n```\n\n### Building\n\n```\ncargo build --release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Fcotar-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacha%2Fcotar-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Fcotar-rs/lists"}