Skip to content

Commit

Permalink
docs: add deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JEPooley committed Mar 8, 2024
1 parent 2d89623 commit 07bf9f2
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [1.2.10] - 2024/03/08

### Changed
- ⚠ PACKAGE DEPRECATED

## [1.2.9] - 2023/10/04

### Changed
Expand Down
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# osdatahub <!-- omit in toc -->


> **Important Notice**:
>
> - This Python package is no longer actively maintained and will not receive updates.
> - It may become incompatible with future OS Data Hub APIs.

[![GitHub issues](https://img.shields.io/github/issues/OrdnanceSurvey/osdatahub)](https://github.com/OrdnanceSurvey/osdatahub/issues)
[![Python package](https://github.com/OrdnanceSurvey/osdatahub/actions/workflows/python-package.yml/badge.svg)](https://github.com/OrdnanceSurvey/osdatahub/actions/workflows/python-package.yml)
<a href="https://codeclimate.com/github/dchirst/osdatahub/maintainability"><img src="https://api.codeclimate.com/v1/badges/471fd53dbb22e9e28546/maintainability" /></a>

> Coding in JavaScript?
> `osdatahub` has a sibling package for JavaScript developers with similar functionality, [check it out here](https://github.com/OrdnanceSurvey/osdatahub-js).

`osdatahub` is a python package from Ordnance Survey (OS) that makes it easier to interact with OS data via
the [OS Data Hub APIs](https://osdatahub.os.uk/).
Expand Down Expand Up @@ -41,15 +46,16 @@ the [OS Data Hub Explorer](https://labs.os.uk/public/data-hub-explorer/).

- [Setup](#setup)
- [Quick Start](#quick-start)
- [NGD API](#ngd-api)
- [Features API](#features-api)
- [Places API](#places-api)
- [Names API](#names-api)
- [Linked Identifiers API](#linked-identifiers-api)
- [Downloads API](#downloads-api)
- [NGD API](#ngd-api)
- [Features API](#features-api)
- [Places API](#places-api)
- [Names API](#names-api)
- [Linked Identifiers API](#linked-identifiers-api)
- [Downloads API](#downloads-api)
- [Tutorials](#tutorials)
- [Proxies](#proxies)
- [Contribute](#contribute)
- [Support](#support)


# Setup
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = osdatahub
version = 1.2.9
version = 1.2.10
author = OS Rapid Prototyping
author_email = [email protected]
classifiers =
Expand Down
11 changes: 10 additions & 1 deletion src/osdatahub/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import os
import json
import warnings

message = """
> **Important Notice**:
>
> - The osdatahub Python package is no longer actively maintained and will not receive updates.
> - It may become incompatible with future OS Data Hub APIs.
"""
warnings.warn(message, DeprecationWarning)

os.environ["_OSDATAHUB_PROXIES"] = json.dumps({})

Expand All @@ -9,7 +18,7 @@ def set_proxies(proxies):
def get_proxies():
return json.loads(os.environ["_OSDATAHUB_PROXIES"])

__version__ = "1.2.9"
__version__ = "1.2.10"

from osdatahub.extent import Extent
from osdatahub.FeaturesAPI import FeaturesAPI
Expand Down
Empty file.

0 comments on commit 07bf9f2

Please sign in to comment.