{"id":13936176,"url":"https://github.com/DinoTools/python-overpy","last_synced_at":"2025-07-19T21:31:57.084Z","repository":{"id":24598972,"uuid":"28007455","full_name":"DinoTools/python-overpy","owner":"DinoTools","description":"Python Wrapper to access the Overpass API","archived":false,"fork":false,"pushed_at":"2025-06-23T17:58:27.000Z","size":295,"stargazers_count":253,"open_issues_count":25,"forks_count":59,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-06-23T18:47:24.430Z","etag":null,"topics":["openstreetmap","overpass-api","python","python3","wrapper"],"latest_commit_sha":null,"homepage":"https://python-overpy.readthedocs.io/","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/DinoTools.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","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":"2014-12-14T20:45:15.000Z","updated_at":"2025-04-25T03:24:04.000Z","dependencies_parsed_at":"2022-07-10T11:16:25.907Z","dependency_job_id":"5cdc9945-6aeb-436a-9ed9-2eede3a20da7","html_url":"https://github.com/DinoTools/python-overpy","commit_stats":{"total_commits":292,"total_committers":16,"mean_commits":18.25,"dds":"0.16095890410958902","last_synced_commit":"6b4f39e1dcc40a53b46d8a04aad32ea802cce1c2"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/DinoTools/python-overpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoTools%2Fpython-overpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoTools%2Fpython-overpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoTools%2Fpython-overpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoTools%2Fpython-overpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DinoTools","download_url":"https://codeload.github.com/DinoTools/python-overpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DinoTools%2Fpython-overpy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266019657,"owners_count":23864916,"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":["openstreetmap","overpass-api","python","python3","wrapper"],"created_at":"2024-08-07T23:02:26.275Z","updated_at":"2025-07-19T21:31:52.064Z","avatar_url":"https://github.com/DinoTools.png","language":"Python","readme":"Python Overpass Wrapper\n=======================\n\nA Python Wrapper to access the Overpass API.\n\nHave a look at the `documentation`_ to find additional information.\n\n.. image:: https://img.shields.io/pypi/v/overpy.svg\n    :target: https://pypi.python.org/pypi/overpy/\n    :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/l/overpy.svg\n    :target: https://pypi.python.org/pypi/overpy/\n    :alt: License\n\n.. image:: https://github.com/DinoTools/python-overpy/actions/workflows/ci.yml/badge.svg?branch=master\n    :target: https://github.com/DinoTools/python-overpy/actions/workflows/ci.yml?query=branch%3Amaster+\n\n.. image:: https://coveralls.io/repos/DinoTools/python-overpy/badge.png?branch=master\n    :target: https://coveralls.io/r/DinoTools/python-overpy?branch=master\n\nFeatures\n--------\n\n* Query Overpass API\n* Parse JSON and XML response data\n* Additional helper functions\n\nInstall\n-------\n\n**Requirements:**\n\nSupported Python versions:\n\n* Python \u003e= 3.7\n* PyPy3\n\n**Install:**\n\n.. code-block:: console\n\n    $ pip install overpy\n\nExamples\n--------\n\nAdditional examples can be found in the `documentation`_ and in the *examples* directory.\n\n.. code-block:: python\n\n    import overpy\n\n    api = overpy.Overpass()\n\n    # fetch all ways and nodes\n    result = api.query(\"\"\"\n        way(50.746,7.154,50.748,7.157) [\"highway\"];\n        (._;\u003e;);\n        out body;\n        \"\"\")\n\n    for way in result.ways:\n        print(\"Name: %s\" % way.tags.get(\"name\", \"n/a\"))\n        print(\"  Highway: %s\" % way.tags.get(\"highway\", \"n/a\"))\n        print(\"  Nodes:\")\n        for node in way.nodes:\n            print(\"    Lat: %f, Lon: %f\" % (node.lat, node.lon))\n\n\nHelper\n~~~~~~\n\nHelper methods are available to provide easy access to often used requests.\n\n.. code-block:: python\n\n    import overpy.helper\n\n    # 3600062594 is the OSM id of Chemnitz and is the bounding box for the request\n    street = overpy.helper.get_street(\n        \"Straße der Nationen\",\n        \"3600062594\"\n    )\n\n    # this finds an intersection between Straße der Nationen and Carolastraße in Chemnitz\n    intersection = overpy.helper.get_intersection(\n        \"Straße der Nationen\",\n        \"Carolastraße\",\n        \"3600062594\"\n    )\n\n\nLicense\n-------\n\nPublished under the MIT (see LICENSE for more information)\n\n.. _`documentation`: http://python-overpy.readthedocs.org/\n","funding_links":[],"categories":["Python","[](#table-of-contents) Table of contents","Command line tools (Overpass Turbo and Overpass API)","Libraries"],"sub_categories":["[](#tools)Tools","Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDinoTools%2Fpython-overpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDinoTools%2Fpython-overpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDinoTools%2Fpython-overpy/lists"}