{"id":28858420,"url":"https://github.com/qedsoftware/edit-distance","last_synced_at":"2026-02-05T08:02:12.844Z","repository":{"id":298707016,"uuid":"1000121748","full_name":"qedsoftware/edit-distance","owner":"qedsoftware","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-30T10:17:49.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-22T10:29:15.735Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/qedsoftware.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":"2025-06-11T09:45:53.000Z","updated_at":"2025-06-30T10:17:54.000Z","dependencies_parsed_at":"2025-06-30T09:21:35.543Z","dependency_job_id":null,"html_url":"https://github.com/qedsoftware/edit-distance","commit_stats":null,"previous_names":["qedsoftware/edit-distance"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qedsoftware/edit-distance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedsoftware%2Fedit-distance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedsoftware%2Fedit-distance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedsoftware%2Fedit-distance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedsoftware%2Fedit-distance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qedsoftware","download_url":"https://codeload.github.com/qedsoftware/edit-distance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedsoftware%2Fedit-distance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29116450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-06-20T02:39:48.333Z","updated_at":"2026-02-05T08:02:12.828Z","avatar_url":"https://github.com/qedsoftware.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# edit-distance\n\nedit-distance is a Python package that provides an implementation of the Optimal String Alignment (OSA) algorithm for calculating edit distances. The package leverages C++ extensions via Cython for improved performance.\n\n## Features\n\n- Calculate edit distances using the OSA algorithm.\n- Enables custom weights for each edit operation.\n- Find all edit paths resulting in the minimal OSA distance between strings.\n- High-performance implementation using C++ and Cython.\n- Easy integration into Python projects.\n\n## Installation\n\nEnsure you have a C++ compiler installed. Then, clone the repository and install the package using:\n\n```sh\npip install .\n```\n\nAlternatively, call `setup.py` directly:\n\n```sh\npython setup.py build_ext --inplace\npython setup.py install\n```\n\nFor more details on the setup, see [setup.py](setup.py).\n\n## Usage\n\nAfter installation, you can import and use the module in your Python code:\n\n```python\nimport editdistance.osa\n\n# Example usage:\nstr1 = \"kitten\"\nstr2 = \"sitting\"\ndistance = editdistance.osa.calculate_distance(str1, str2, swap_weight=0.1)\nprint(f\"The edit distance between '{{}}' and '{{}}' is {{}}\".format(str1, str2, distance))\n```\n\nSee examples located in [examples](examples/osa_example.py) directory.\n\n## Running Tests\n\nThe test suite is located in the [tests](tests/tests_osa.py) directory. To run the tests, execute:\n\n```sh\npython -m unittest discover -v\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqedsoftware%2Fedit-distance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqedsoftware%2Fedit-distance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqedsoftware%2Fedit-distance/lists"}