{"id":18977945,"url":"https://github.com/becheran/vgn","last_synced_at":"2025-04-19T17:35:59.479Z","repository":{"id":62587366,"uuid":"238553865","full_name":"becheran/vgn","owner":"becheran","description":"Python API for the Verkehrsverbund Grossraum Nuernberg (VGN)","archived":false,"fork":false,"pushed_at":"2024-10-30T23:59:39.000Z","size":6018,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T10:51:18.887Z","etag":null,"topics":["async","nuremberg","public-transport","python-api","rest-client","vgn"],"latest_commit_sha":null,"homepage":null,"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/becheran.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"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}},"created_at":"2020-02-05T21:38:41.000Z","updated_at":"2024-10-30T23:56:05.000Z","dependencies_parsed_at":"2024-11-08T15:35:13.705Z","dependency_job_id":"7870dd60-5384-469e-947f-5f7523732af1","html_url":"https://github.com/becheran/vgn","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.3928571428571429,"last_synced_commit":"908159ff05ba3e3c53d154685164a5de5b2b94a4"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becheran%2Fvgn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becheran%2Fvgn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becheran%2Fvgn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/becheran%2Fvgn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/becheran","download_url":"https://codeload.github.com/becheran/vgn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249235071,"owners_count":21235143,"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":["async","nuremberg","public-transport","python-api","rest-client","vgn"],"created_at":"2024-11-08T15:31:28.436Z","updated_at":"2025-04-16T11:31:34.652Z","avatar_url":"https://github.com/becheran.png","language":"Python","readme":"# VGN\n\n[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![Version](https://img.shields.io/pypi/v/vgn)\n[![PyPI download month](https://img.shields.io/pypi/dm/vgn.svg)](https://pypi.python.org/pypi/vgn/)\n[![Python versions](https://img.shields.io/pypi/pyversions/vgn.svg)](https://img.shields.io/pypi/pyversions/vgn)\n[![Documentation Status](https://readthedocs.org/projects/vgn/badge/?version=stable)](https://vgn.readthedocs.io/en/stable/?badge=stable)\n[![Build Status](https://gitlab.com/becheran/vgn_ci_job/badges/master/pipeline.svg)](https://gitlab.com/becheran/vgn_ci_job/pipelines)\n\nAsynchronous Python API for the *Verkehrsverbund Grossraum Nuernberg (VGN)*.\n\nUses the official [REST-API](https://start.vag.de/dm/) to query realtime public transport information for Nuremberg.\n\nWith the python 3.7 feature [asyncio tasks](https://docs.python.org/3/library/asyncio-task.html) fast and non-blocking queries are possible.\n\n[Read the docs](https://vgn.readthedocs.io/en/stable/) for more information.\n\nConsider installing `cchardet` and  `aiodns` via pip for speedup (see the [aiohttp documentation](https://docs.aiohttp.org/en/stable/)).\n\n## Example\n\n``` python\nimport vgn\nimport asyncio\n\n\nasync def main():\n    async with vgn.VGNClient() as vgn_client:\n        res = await asyncio.gather(\n            vgn_client.api_version(),\n            vgn_client.departure_schedule(704),\n            vgn_client.departure_schedule_for_line(704, \"U2\"),\n            vgn_client.rides(vgn.TransportType.BUS, 30),\n        )\n\n    print(f'Api version: {res[0]}')\n    print(f'Departures at plaerrer in nbg: {res[1]}')\n    print(f'Departures of underground line 2 at plaerrer in nbg: {res[2]}')\n    print(f'Bus departures in the next 30 minutes: {res[3]}')\n\nif __name__ == '__main__':\n    asyncio.run(main())\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbecheran%2Fvgn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbecheran%2Fvgn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbecheran%2Fvgn/lists"}