{"id":46442310,"url":"https://github.com/tomrss/py-osrm-client","last_synced_at":"2026-03-05T22:04:55.213Z","repository":{"id":213672480,"uuid":"734389593","full_name":"tomrss/py-osrm-client","owner":"tomrss","description":"Python client for OSRM api","archived":false,"fork":false,"pushed_at":"2025-11-30T12:38:04.000Z","size":34,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-02T02:19:16.849Z","etag":null,"topics":["client","osrm","osrm-api"],"latest_commit_sha":null,"homepage":"","language":"Python","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/tomrss.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-21T15:00:57.000Z","updated_at":"2025-11-30T12:37:23.000Z","dependencies_parsed_at":"2023-12-23T14:39:14.724Z","dependency_job_id":null,"html_url":"https://github.com/tomrss/py-osrm-client","commit_stats":null,"previous_names":["tomrss/py-osrm-client"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/tomrss/py-osrm-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomrss%2Fpy-osrm-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomrss%2Fpy-osrm-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomrss%2Fpy-osrm-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomrss%2Fpy-osrm-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomrss","download_url":"https://codeload.github.com/tomrss/py-osrm-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomrss%2Fpy-osrm-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30152004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T21:15:50.531Z","status":"ssl_error","status_checked_at":"2026-03-05T21:15:11.173Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["client","osrm","osrm-api"],"created_at":"2026-03-05T22:04:54.586Z","updated_at":"2026-03-05T22:04:55.198Z","avatar_url":"https://github.com/tomrss.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py-osrm-client\n![build](https://github.com/tomrss/py-osrm-client/actions/workflows/build.yml/badge.svg)\n![publish](https://github.com/tomrss/py-osrm-client/actions/workflows/publish.yml/badge.svg)\n[![PyPI version](https://badge.fury.io/py/py-osrm-client.svg)](https://badge.fury.io/py/py-osrm-client)\n\nSimple and typed Python client for [OSRM](https://project-osrm.org/) api.\n\n## Requirements\n\n- [requests](https://pypi.org/project/requests/)\n- [aiohttp](https://pypi.org/project/aiohttp/)\n\n\n## Installation\n\n```shell\npip install py-osrm-client\n```\n\n## Usage\n\nAsync client:\n\n```python\nimport asyncio\nfrom osrm import OsrmAsyncClient\n\nasync def example():\n    async with OsrmAsyncClient() as osrm:\n        coordinates = [(0.1, 0.2), (0.3, 0.4)]\n        trip = await osrm.trip(coordinates)\n        print(trip)\n\nasyncio.run(example())\n```\n\n\nSync client:\n\n```python\nfrom osrm import OsrmClient\n\nwith OsrmClient() as osrm:\n    coordinates = [(0.1, 0.2), (0.3, 0.4)]\n    trip = osrm.trip(coordinates)\n    print(trip)\n```\n\nBy default the clients will refer to the OSRM demo server at [https://router.project-osrm.org](https://router.project-osrm.org). \nTo use another OSRM server:\n\n```python\nasync with OsrmAsyncClient(base_url='https://my-custom-osrm-server.com') as osrm:\n    # use client\n```\n\nRefer to [OSRM api documentation](https://project-osrm.org/docs/v5.24.0/api/) for more details\nabout OSRM services and options.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomrss%2Fpy-osrm-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomrss%2Fpy-osrm-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomrss%2Fpy-osrm-client/lists"}