Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# ohsome-py: A Python client for the ohsome API


> [!WARNING]
Comment thread
SlowMo24 marked this conversation as resolved.
Outdated
> The ohsome API v1 is reaching end of life in October 2026.
> This library currently only supports ohsome API v1.
> The fate of the ohsome-py library is not yet decided, a newer version MAY support ohsome-API V2.
> To move to Ohsome-API V2 independently please see the migration instructions at https://api.heigit.org/ohsome-api-staging/v2/docs.
Comment thread
SlowMo24 marked this conversation as resolved.
Outdated
Comment thread
SlowMo24 marked this conversation as resolved.
Outdated

[![status: active](https://github.com/GIScience/badges/raw/master/status/active.svg)](https://github.com/GIScience/badges#active)

The *ohsome-py* package helps you extract and analyse OpenStreetMap history data using the [ohsome API](https://docs.ohsome.org/ohsome-api/v1/) and Python. It handles queries to the [ohsome API](https://docs.ohsome.org/ohsome-api/v1/) and converts its responses to [Pandas](https://pandas.pydata.org/) and [GeoPandas](https://geopandas.org/) data frames to facilitate easy data handling and analysis.
Expand Down
11 changes: 11 additions & 0 deletions ohsome/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,19 @@
# -*- coding: utf-8 -*-

"""Ohsome API client for Python"""
import warnings

# The order of imports here must remain to prevent circular imports
from .exceptions import OhsomeException # noqa
from .response import OhsomeResponse # noqa
from .clients import OhsomeClient # noqa

warnings.warn(
message="Ohsome-API V1 is reaching end-of-life in October 2026. "
"The ohsome-py library currently only supports ohsome API v1. "
"This version of ohsome-py will stop working in October 2026. "
"The fate of the ohsome-py library is not yet decided, a newer version MAY support ohsome-API V2. "
"To move to Ohsome-API V2 independently please see the migration instructions at https://api.heigit.org/ohsome-api-staging/v2/docs.",
category=DeprecationWarning,
stacklevel=1,
)
Loading