{"id":23580770,"url":"https://github.com/bdamokos/mobility-db-api","last_synced_at":"2026-02-03T11:35:07.411Z","repository":{"id":269325615,"uuid":"907070242","full_name":"bdamokos/mobility-db-api","owner":"bdamokos","description":"Python package to download GTFS files through the Mobility Database API","archived":false,"fork":false,"pushed_at":"2025-01-03T10:18:05.000Z","size":851,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T02:22:56.218Z","etag":null,"topics":["api","gtfs","gtfs-schedule","mobility-data","public-transit","public-transport","public-transportation"],"latest_commit_sha":null,"homepage":"https://bdamokos.github.io/mobility-db-api/","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/bdamokos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"docs/contributing.md","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":"2024-12-22T18:15:20.000Z","updated_at":"2025-01-03T10:17:08.000Z","dependencies_parsed_at":"2025-05-06T21:06:31.069Z","dependency_job_id":"54b1cf58-3ba9-4252-ae5d-eb5e85e71920","html_url":"https://github.com/bdamokos/mobility-db-api","commit_stats":null,"previous_names":["bdamokos/mobility-db-api"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bdamokos/mobility-db-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdamokos%2Fmobility-db-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdamokos%2Fmobility-db-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdamokos%2Fmobility-db-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdamokos%2Fmobility-db-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdamokos","download_url":"https://codeload.github.com/bdamokos/mobility-db-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdamokos%2Fmobility-db-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29044430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"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":["api","gtfs","gtfs-schedule","mobility-data","public-transit","public-transport","public-transportation"],"created_at":"2024-12-27T00:12:50.209Z","updated_at":"2026-02-03T11:35:07.389Z","avatar_url":"https://github.com/bdamokos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mobility Database API Client\n\n[![PyPI version](https://badge.fury.io/py/mobility-db-api.svg)](https://badge.fury.io/py/mobility-db-api)\n[![Tests](https://github.com/bdamokos/mobility-db-api/actions/workflows/tests.yml/badge.svg)](https://github.com/bdamokos/mobility-db-api/actions/workflows/tests.yml)\n[![codecov](https://codecov.io/gh/bdamokos/mobility-db-api/branch/main/graph/badge.svg)](https://codecov.io/gh/bdamokos/mobility-db-api)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://bdamokos.github.io/mobility-db-api/)\n\nA Python client for downloading GTFS files through the [Mobility Database](https://database.mobilitydata.org/) API.\n\n## Features\n\n- Search for GTFS providers by country, name or id\n- Download GTFS datasets from hosted or direct sources\n- Track dataset metadata and changes\n- Thread-safe and process-safe operations\n- Automatic token refresh and error handling\n\n## Installation\n\n```bash\npip install mobility-db-api\n```\n\n## Quick Example\n\n```python\nfrom mobility_db_api import MobilityAPI\n\n# Initialize client (uses MOBILITY_API_REFRESH_TOKEN env var)\napi = MobilityAPI()\n\n# Search for providers in Belgium\nproviders = api.get_providers_by_country(\"BE\")\nprint(f\"Found {len(providers)} providers\")\n\n# Download a dataset\nif providers:\n    dataset_path = api.download_latest_dataset(providers[0]['id'])\n    print(f\"Dataset downloaded to: {dataset_path}\")\n```\n\n## Documentation\n\nFull documentation is available at [bdamokos.github.io/mobility-db-api](https://bdamokos.github.io/mobility-db-api/), including:\n\n- [Quick Start Guide](https://bdamokos.github.io/mobility-db-api/quickstart/)\n- [Examples](https://bdamokos.github.io/mobility-db-api/examples/)\n- [API Reference](https://bdamokos.github.io/mobility-db-api/api-reference/client/)\n- [Contributing Guide](https://bdamokos.github.io/mobility-db-api/contributing/)\n\n## Development\n\n```bash\n# Clone repository\ngit clone https://github.com/bdamokos/mobility-db-api.git\ncd mobility-db-api\n\n# Install in development mode\npip install -e \".[dev]\"\n\n# Run tests\npytest\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [Mobility Database](https://database.mobilitydata.org/) for providing the API\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdamokos%2Fmobility-db-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdamokos%2Fmobility-db-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdamokos%2Fmobility-db-api/lists"}