{"id":18926701,"url":"https://github.com/leocov-dev/cedar-detect-python","last_synced_at":"2026-03-15T08:30:15.709Z","repository":{"id":244942426,"uuid":"816775519","full_name":"leocov-dev/cedar-detect-python","owner":"leocov-dev","description":"example python bindings for cedar-detect","archived":false,"fork":false,"pushed_at":"2024-06-18T19:52:02.000Z","size":4982,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T18:43:00.622Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leocov-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2024-06-18T11:35:34.000Z","updated_at":"2024-06-18T19:52:05.000Z","dependencies_parsed_at":"2024-06-18T13:46:05.514Z","dependency_job_id":"57129bcb-6986-41a2-8d87-789cdbfcedac","html_url":"https://github.com/leocov-dev/cedar-detect-python","commit_stats":null,"previous_names":["leocov-dev/cedar-detect-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocov-dev%2Fcedar-detect-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocov-dev%2Fcedar-detect-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocov-dev%2Fcedar-detect-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocov-dev%2Fcedar-detect-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leocov-dev","download_url":"https://codeload.github.com/leocov-dev/cedar-detect-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239922621,"owners_count":19718988,"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-11-08T11:16:53.804Z","updated_at":"2026-03-15T08:30:15.662Z","avatar_url":"https://github.com/leocov-dev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cedar-Detect Python Bindings\n\n\u003e This project is a work in progress and not fully developed\n\nThis repository builds python bindings for the [cedar-detect](https://github.com/smroid/cedar-detect) rust library.\n\n## Example\n\n```shell\npip install cedar-detect-python\n```\n\n```python\nimport numpy as np\nfrom PIL import Image\n\nimport cedar_detect\n\nif __name__ == '__main__':\n    img = 'hale_bopp.jpg'\n    with Image.open(img) as img:\n        img = img.convert(mode='L')\n    \n    summary = cedar_detect.algorithm.summarize_region_of_interest(\n        img.width,\n        img.height,\n        np.asarray(img, dtype=np.uint8).flatten(),\n        10, 10, 256, 256, 0.01, 0.01,\n    )\n```\n\n## Local Development\n\nRequirements:\n\n- Rust `1.79+`\n- Python `3.7+`\n- [Hatch](https://hatch.pypa.io/latest/install/)\n  - Install `hatch` following the procedure for your operating system.\n\nSetup the project locally for development. \nThis will create a `.venv/` directory in the repository root.\n```shell\nhatch run setup\n```\n\nRun tests\n\n```shell\nhatch test\n```\n\nRun a release build to create wheels in the `dist/` directory\n\n```shell\nhatch build -t wheel\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleocov-dev%2Fcedar-detect-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleocov-dev%2Fcedar-detect-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleocov-dev%2Fcedar-detect-python/lists"}