{"id":20122184,"url":"https://github.com/naviqore/public-transit-client","last_synced_at":"2025-09-21T03:31:29.582Z","repository":{"id":253678949,"uuid":"843430104","full_name":"naviqore/public-transit-client","owner":"naviqore","description":"Client to access the public transit service API endpoints.","archived":false,"fork":false,"pushed_at":"2024-11-04T08:13:53.000Z","size":155,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-13T19:41:36.627Z","etag":null,"topics":["client","isoline-routing","public-transport","routing"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/public-transit-client/","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/naviqore.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":"2024-08-16T13:52:18.000Z","updated_at":"2024-10-09T21:20:32.000Z","dependencies_parsed_at":"2024-08-26T17:29:25.122Z","dependency_job_id":"7077b4fe-a8ef-40e8-ab64-09e8c3f77404","html_url":"https://github.com/naviqore/public-transit-client","commit_stats":null,"previous_names":["naviqore/public-transit-client"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naviqore%2Fpublic-transit-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naviqore%2Fpublic-transit-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naviqore%2Fpublic-transit-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naviqore%2Fpublic-transit-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naviqore","download_url":"https://codeload.github.com/naviqore/public-transit-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233706561,"owners_count":18717294,"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":["client","isoline-routing","public-transport","routing"],"created_at":"2024-11-13T19:35:30.670Z","updated_at":"2025-09-21T03:31:24.306Z","avatar_url":"https://github.com/naviqore.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Public Transit Client\n\nClient to access the [Public Transit Service](https://github.com/naviqore/public-transit-service) API endpoints.\n\nIt is designed to interact seamlessly with the service, offering easy-to-use methods to query\ntransit information and connections.\n\n## Installation\n\nTo install the package, you can use pip:\n\n```sh\npip install public-transit-client\n```\n\n## Usage\n\nHere's a basic example of how to use the client:\n\n```python\nfrom public_transit_client.client import PublicTransitClient\n\nclient = PublicTransitClient(\"http://localhost:8080\")\nresponse = client.get_stop(\"NANAA\")\nprint(response)\n```\n\nSee the integration tests for more examples.\n\n## Testing\n\nThis project uses pytest for both unit and integration testing. The tests are organized into separate folders to ensure\nclarity and separation of concerns.\n\n### Unit Tests\n\nUnit tests are designed to test individual components in isolation. To run the unit tests, simply execute:\n\n```sh\npoetry run pytest -m unit\n```\n\n### Integration Tests\n\nIntegration tests ensure that the components work together as expected in a more realistic environment. These tests\nrequire the service to be running, usually within a Docker container.\n\n**Step 1: Start the Docker Compose Environment**\n\nFirst, start the necessary services using Docker Compose:\n\n```sh\ndocker compose up -d\n```\n\n**Step 2: Run Integration Tests**\n\nOnce the services are up and running, execute the integration tests with:\n\n```sh\npoetry run pytest -m integration\n```\n\n### Coverage\n\nTo analyze the test coverage run:\n\n```sh\npoetry run pytest --cov=public_transit_client\n```\n\n## License\n\nThis project is licensed under the MIT License - see\nthe [LICENSE](https://github.com/naviqore/public-transit-client/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaviqore%2Fpublic-transit-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaviqore%2Fpublic-transit-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaviqore%2Fpublic-transit-client/lists"}