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.5.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.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for python-deprecation-dates-0.2.5.tar.gz
Algorithm Hash digest
SHA256 4334fcd67929e692a3b271ae0ec219a98e000872c33ec9cce6d4a99d5f30f279
MD5 f15f042ae5406f86f3b140b22284e094
BLAKE2b-256 77b9077a87b5d44af6465cb73ed0994046de57ea2f6a2f8e82ec2fcc2259a738

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_deprecation_dates-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1eb83aac4e9f8f5162a4062aa5de9435a695ff1ec73f95cd37ef3fda7ca13c98
MD5 57b00f83ad13643e6f0735fe68960271
BLAKE2b-256 0ded7ddc72637e86789673090b95b4cab49b1240a90e01bb475569a5ad1d0c2f

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