{"id":22941078,"url":"https://github.com/adamsky/consecrates","last_synced_at":"2025-08-12T21:31:39.472Z","repository":{"id":57610553,"uuid":"338452097","full_name":"adamsky/consecrates","owner":"adamsky","description":"Tiny but virtuous crates.io client","archived":false,"fork":false,"pushed_at":"2024-10-15T21:29:49.000Z","size":20,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-20T19:49:44.850Z","etag":null,"topics":["api","client","crates-io"],"latest_commit_sha":null,"homepage":"","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/adamsky.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-12T22:52:47.000Z","updated_at":"2024-10-21T08:24:49.000Z","dependencies_parsed_at":"2024-10-17T05:30:13.695Z","dependency_job_id":null,"html_url":"https://github.com/adamsky/consecrates","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"ffc78c0e16334d31cee65ab6b7937d9eeddef16e"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamsky%2Fconsecrates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamsky%2Fconsecrates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamsky%2Fconsecrates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamsky%2Fconsecrates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamsky","download_url":"https://codeload.github.com/adamsky/consecrates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229708830,"owners_count":18111329,"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":["api","client","crates-io"],"created_at":"2024-12-14T13:36:27.013Z","updated_at":"2024-12-14T13:36:27.573Z","avatar_url":"https://github.com/adamsky.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# consecrates\n\nTiny but virtuous [crates.io](https://crates.io) API client.\n\nThe main aim of this library is to provide an easy way to query crates\ninformation without bringing in too many dependencies.\n\nIt's loosely modeled after the\n[crates_io_api](https://crates.io/crates/crates_io_api) crate. Main differences\ninclude:\n- about 70% cut in the number of dependencies\n- no async \n- no multi-request client methods like `full_crate` or\n  `all_crates`\n- ability to use `category` and `keyword` specifiers for querying crates\n- ability to convert simple string composite queries such as\n  `api category=web keyword=crates sort=update` into valid query objects\n\n\n## Using\n\nPaste the following into your project's `Cargo.toml` file:\n\n```toml\nconsecrates = \"0.1.1\"\n```\n\nCreate a new client and issue a query: \n\n```rust,no_run\nlet client = Client::new(\"my_app (github.com/me/me_app)\");\nlet crates = client\n    .get_crates(Query {\n        string: Some(\"net\".to_string()),\n        category: Some(Category::GameDevelopment),\n        sort: Some(Sorting::RecentUpdates),\n        ..Default::default()\n    })\n    .expect(\"failed getting crates\");\nprintln!(\"{:?}\", crates);\n```\n\n\n## Crawler policy\n\nPlease consult the\n[official crawler policy](https://crates.io/policies#crawlers) before using\nthis library. Rate limiting is fixed at the lowest tolerated value. When\ncreating a client you will need to input a proper user-agent string.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamsky%2Fconsecrates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamsky%2Fconsecrates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamsky%2Fconsecrates/lists"}