{"id":19982968,"url":"https://github.com/veryfi/veryfi-rust","last_synced_at":"2025-09-09T01:38:17.165Z","repository":{"id":45413789,"uuid":"437926843","full_name":"veryfi/veryfi-rust","owner":"veryfi","description":"Rust module for communicating with the Veryfi OCR API","archived":false,"fork":false,"pushed_at":"2023-03-16T15:09:13.000Z","size":5023,"stargazers_count":6,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-04T05:33:10.704Z","etag":null,"topics":["api","api-rest","invoice","invoice-parser","ocr","ocr-library","receipt","rust","sdk"],"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/veryfi.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,"zenodo":null}},"created_at":"2021-12-13T15:32:19.000Z","updated_at":"2024-07-18T17:18:25.000Z","dependencies_parsed_at":"2025-05-04T05:42:57.234Z","dependency_job_id":null,"html_url":"https://github.com/veryfi/veryfi-rust","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/veryfi/veryfi-rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veryfi","download_url":"https://codeload.github.com/veryfi/veryfi-rust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-rust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274232032,"owners_count":25245856,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","api-rest","invoice","invoice-parser","ocr","ocr-library","receipt","rust","sdk"],"created_at":"2024-11-13T04:13:44.217Z","updated_at":"2025-09-09T01:38:17.124Z","avatar_url":"https://github.com/veryfi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"https://docs.rs/veryfi/1.0.0/veryfi/\n\n\u003cimg src=\"https://user-images.githubusercontent.com/30125790/212157461-58bdc714-2f89-44c2-8e4d-d42bee74854e.png#gh-dark-mode-only\" width=\"200\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/30125790/212157486-bfd08c5d-9337-4b78-be6f-230dc63838ba.png#gh-light-mode-only\" width=\"200\"\u003e\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![code coverage](.github/reports/badges/plastic.svg)](.github/reports/badges/plastic.svg)\n\n**Veryfi** is a Rust module for communicating with the [Veryfi OCR API](https://veryfi.com/api/)\n\n## Installation\nAdd to your cargo.tml\n```toml\nveryfi = \"1.0.0\"\n```\n\n## Getting Started\n\n### Obtaining Client ID and user keys\nIf you don't have an account with Veryfi, please go ahead and register here: [https://hub.veryfi.com/signup/api/](https://hub.veryfi.com/signup/api/)\n\n### Rust API Client Library\nThe **Veryfi** library can be used to communicate with Veryfi API. All available functionality is described here DOC\n\nBelow is the sample script using **Veryfi** to OCR and process data from a document:\n\n### Process a document.\n\n```rust\nuse veryfi::client::create_client;\nuse serde_json::{from_str, Map, Value};\n\nfn main() {\n    let client_id = \"your_client_id\".to_string();\n    let client_secret = \"your_client_secret\".to_string();\n    let username = \"your_username\".to_string();\n    let api_key = \"your_api_key\".to_string();\n    \n    let client = create_client(client_id, client_secret, username, api_key);\n    let categories = vec![\"Advertising \u0026 Marketing\", \"Automotive\"];\n    let file_path = \"path_to_your_file\";\n    let delete_after_processing = true;\n    let additional_parameters = Map::new();\n    \n    let response = client.process_document(file_path, categories, delete_after_processing, additional_parameters);\n    print!(\"{}\", response); // to print\n    let json_response: Value = from_str(\u0026*response).unwrap();\n    // ...\n}\n```\n\n### Update a document\n\n```rust\nuse veryfi::client::create_client;\nuse serde_json::{from_str, Map, Value};\n\nfn main() {\n    let client_id = \"your_client_id\".to_string();\n    let client_secret = \"your_client_secret\".to_string();\n    let username = \"your_username\".to_string();\n    let api_key = \"your_api_key\".to_string();\n\n    let client = create_client(client_id, client_secret, username, api_key);\n    let document_id = \"your_document_id\".to_string();\n    let mut parameters = Map::new();\n    let notes = \"your_notes\";\n    parameters.insert(\"notes\".to_string(), Value::from(notes.clone()));\n\n    let response = client.update_document(document_id, parameters);\n    print!(\"{}\", response); // to print\n    let json_response: Value = from_str(\u0026*response).unwrap();\n    // ...\n}\n```\n\n## Need help?\nIf you run into any issue or need help installing or using the library, please contact support@veryfi.com.\n\nIf you found a bug in this library or would like new features added, then open an issue or pull requests against this repo!\n\nTo learn more about Veryfi visit https://www.veryfi.com/\n\n## Tutorial\n\n\nBelow is an introduction to the Rust SDK.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveryfi%2Fveryfi-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-rust/lists"}