{"id":49696962,"url":"https://github.com/offenesdresden/dvbpy","last_synced_at":"2026-05-08T01:55:07.795Z","repository":{"id":24211395,"uuid":"27603138","full_name":"offenesdresden/dvbpy","owner":"offenesdresden","description":"🚋 Query Dresden's public transport system for current bus- and tramstop data in python","archived":false,"fork":false,"pushed_at":"2026-04-14T06:37:28.000Z","size":1196,"stargazers_count":57,"open_issues_count":3,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-05-08T01:54:32.276Z","etag":null,"topics":["dresden","dvb","public-transportation","vvo"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/dvb/","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/offenesdresden.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":"2014-12-05T17:49:34.000Z","updated_at":"2026-04-14T06:37:24.000Z","dependencies_parsed_at":"2023-12-21T18:58:51.750Z","dependency_job_id":null,"html_url":"https://github.com/offenesdresden/dvbpy","commit_stats":{"total_commits":42,"total_committers":8,"mean_commits":5.25,"dds":0.7142857142857143,"last_synced_commit":"d006349a357248859bcae042dbefbae71c46ef7f"},"previous_names":["kiliankoe/dvbpy"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/offenesdresden/dvbpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offenesdresden%2Fdvbpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offenesdresden%2Fdvbpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offenesdresden%2Fdvbpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offenesdresden%2Fdvbpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/offenesdresden","download_url":"https://codeload.github.com/offenesdresden/dvbpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offenesdresden%2Fdvbpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32763518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"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":["dresden","dvb","public-transportation","vvo"],"created_at":"2026-05-08T01:55:03.929Z","updated_at":"2026-05-08T01:55:07.780Z","avatar_url":"https://github.com/offenesdresden.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dvbpy\n\nAn unofficial Python module for querying Dresden's public transport system (VVO/DVB).\n\nWant something like this for another language? Look [here](https://github.com/kiliankoe/vvo#libraries).\n\n```shell\npip install dvb\n```\n\n```python\nfrom dvb import Client\n\nclient = Client(user_agent=\"my-app/1.0 (me@example.com)\")\n```\n\nAll API access goes through a `Client` instance, which requires a `user_agent` string identifying your project and providing contact details.\n\n## Find stops\n\n```python\nclient.find(\"Helmholtzstraße\")\n```\n\n```python\n[\n    Stop(id='33000742', name='Helmholtzstraße', city='', coords=Coords(lat=51.03, lng=13.73)),\n    Stop(id='36030083', name='Helmholtzstr', city='Chemnitz', coords=Coords(lat=50.83, lng=12.93)),\n    ...\n]\n```\n\n## Monitor a stop\n\n```python\nclient.monitor(\"Helmholtzstraße\", limit=2)\n```\n\n```python\n[\n    Departure(\n        id='voe:11003: :H:j26',\n        line='3',\n        direction='Wilder Mann',\n        scheduled=datetime(2025, 2, 22, 14, 41),\n        real_time=datetime(2025, 2, 22, 14, 43, 50),\n        state='Delayed',\n        platform=Platform(name='1', type='Platform'),\n        mode='Tram',\n        occupancy='ManySeats',\n    ),\n    ...\n]\n```\n\nStop names are automatically resolved to IDs. You can also pass a numeric stop ID directly.\n\n## Plan a route\n\n```python\nclient.route(\"Helmholtzstraße\", \"Postplatz\")\n```\n\n```python\n[\n    Route(\n        duration=11,\n        interchanges=0,\n        price='2,30',\n        fare_zones='TZ 10 (Dresden)',\n        cancelled=False,\n        legs=[\n            PartialRoute(\n                duration=11,\n                line='3',\n                mode='Tram',\n                direction='Btf Trachenberge',\n                stops=[...],\n            )\n        ],\n        session_id='367417461:efa4',\n    ),\n    ...\n]\n```\n\nUse the `session_id` to paginate with `client.earlier_later()`.\n\n## Map pins\n\nSearch for stops, POIs, and other points of interest within a bounding box.\n\n```python\nclient.pins(51.04, 13.70, 51.05, 13.72, pin_types=(\"Stop\", \"Platform\"))\n```\n\n```python\n[\n    Pin(id='33000028', name='Hauptbahnhof', city='Dresden', coords=Coords(...), type='Stop'),\n    Pin(id='pf:1234', name='Hauptbahnhof Gleis 3', city='Dresden', coords=Coords(...), type='Platform'),\n    ...\n]\n```\n\n## Lines at a stop\n\n```python\nclient.lines(\"33000742\")\n```\n\n```python\n[\n    Line(name='3', mode='Tram', directions=['Dresden Wilder Mann', 'Dresden Coschütz']),\n    Line(name='66', mode='CityBus', directions=['Dresden Lockwitz']),\n    ...\n]\n```\n\n## Route changes\n\n```python\nclient.route_changes()\n```\n\n```python\n[\n    RouteChange(\n        id='511595',\n        title='Dresden - Mengsstraße, Vollsperrung',\n        description='\u003cp\u003e...\u003c/p\u003e',\n        type='Scheduled',\n        validity_periods=[ValidityPeriod(begin=..., end=...)],\n        lines=['428296'],\n    ),\n    ...\n]\n```\n\n## Trip details\n\nGet all stops for a specific departure (using the ID and time from a monitor response).\n\n```python\ndeparture = client.monitor(\"Helmholtzstraße\")[0]\nclient.trip_details(trip_id=departure.id, time=departure.scheduled, stop_id=\"33000742\")\n```\n\n## Reverse geocoding\n\n```python\nclient.address(51.04373, 13.70320)\n```\n\n```python\nStop(id='33000144', name='Tharandter Straße', city='Dresden', coords=Coords(...))\n```\n\n## Raw responses\n\nAll methods accept `raw=True` to get the unprocessed API response as a dict:\n\n```python\nclient.monitor(\"Helmholtzstraße\", raw=True)\n# Returns the raw JSON dict from the WebAPI\n```\n\n## Error handling\n\n```python\nfrom dvb import Client, APIError, ConnectionError\n\nclient = Client(user_agent=\"my-app/1.0 (me@example.com)\")\n\ntry:\n    client.monitor(\"Helmholtzstraße\")\nexcept ConnectionError:\n    print(\"Network error or timeout\")\nexcept APIError:\n    print(\"API returned an error\")\n```\n\n## Migrating from 2.x\n\ndvb 3.0 introduces a `Client` class that requires a `user_agent` string. This helps the DVB/VVO identify API consumers and provides them with a way to reach out if needed.\n\n- All functions have moved from `dvb.function()` to `client.function()` on a `Client` instance\n- `import dvb` + `dvb.monitor(...)` → `from dvb import Client` + `Client(user_agent=\"...\").monitor(...)`\n- All method signatures remain the same\n\n## Migrating from 1.x\n\ndvb 2.0 was a complete rewrite with breaking changes:\n\n- All functions return frozen dataclasses instead of dicts/lists\n- Functions raise `APIError`/`ConnectionError` instead of printing errors and returning `None`\n- Migrated from legacy widget/EFA endpoints to the VVO WebAPI\n- Removed `poi_coords()` (use `find()`), `interchange_prediction()`, `city`/`eduroam`/`deparr` parameters\n- `route()` uses `arrival=True/False` instead of `deparr=\"arr\"/\"dep\"`, `pins()` uses `pin_types=(\"Stop\",)` instead of `pintypes=\"stop\"`\n- Dropped `numpy`\n- Requires Python \u003e= 3.10\n\n## Development\n\n```bash\nuv sync --group dev\nuv run ruff check .\nuv run ruff format --check .\nuv run mypy dvb/\nuv run pytest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffenesdresden%2Fdvbpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffenesdresden%2Fdvbpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffenesdresden%2Fdvbpy/lists"}