Skip to main content

A library to fetch Python version deprecation dates from endoflife.date.

Project description

Python Deprecation Dates

A Python library to fetch and display Python version deprecation dates using data from the endoflife.date API.

Features:

  • Fetch Python version end-of-life dates
  • Get the latest Python version
  • Support for custom request settings, including proxies and headers

Installation: Install the library using pip:

pip install python-deprecation-dates

Usage:

Basic Usage: from python_deprecation_dates import PythonEOLAPI

Create an API client

api_client = PythonEOLAPI()

Get all deprecation dates

deprecation_dates = api_client.get_deprecation_dates() print(deprecation_dates)

Get the latest Python version

latest_version = api_client.get_latest_version() print(f"The latest Python version is: {latest_version}")

Setting Proxies: You can configure proxies using the request_settings parameter:

from python_deprecation_dates import PythonEOLAPI

Define proxy settings

request_settings = { "proxies": { "http": "http://proxy.example.com:8080", "https": "http://proxy.example.com:8080" } }

Create an API client with proxy settings

api_client = PythonEOLAPI(request_settings=request_settings)

Fetch deprecation dates through the proxy

deprecation_dates = api_client.get_deprecation_dates() print(deprecation_dates)

Custom Headers: Add custom headers for requests:

from python_deprecation_dates import PythonEOLAPI

Define request settings with headers

request_settings = { "headers": { "User-Agent": "python-deprecation-dates/1.0" } }

Create an API client with custom headers

api_client = PythonEOLAPI(request_settings=request_settings)

Fetch deprecation dates with custom headers

deprecation_dates = api_client.get_deprecation_dates() print(deprecation_dates)

Contributing: Contributions are welcome! Please follow the contribution guidelines and ensure tests pass before submitting a pull request.

License: This library is licensed under the MIT License. See the LICENSE file for details. """

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-deprecation-dates-0.2.4.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_deprecation_dates-0.2.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file python-deprecation-dates-0.2.4.tar.gz.

File metadata

File hashes

Hashes for python-deprecation-dates-0.2.4.tar.gz
Algorithm Hash digest
SHA256 ccdf8100c3a677e962670cde83a336effb236977910c5ffa558a48d21d47d2f8
MD5 2bea2f42d8b8720e92b6d33b1cbfe753
BLAKE2b-256 efe5098440f33c9adcbda76ef87bca755430fa4d5bc3175602f716a3dfcf4380

See more details on using hashes here.

File details

Details for the file python_deprecation_dates-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for python_deprecation_dates-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b7c165b4425051f819fffeda55be84a9de640f53da6139976e217036b5a57268
MD5 e3c1a176b4b83407e234ecfa599c20a8
BLAKE2b-256 24b89a1caa1e84bb541aa64a9dd9e8a12f4462785b44da31986ed7f254c700a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page