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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-deprecation-dates-0.2.4.tar.gz.
File metadata
- Download URL: python-deprecation-dates-0.2.4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ccdf8100c3a677e962670cde83a336effb236977910c5ffa558a48d21d47d2f8
|
|
| MD5 |
2bea2f42d8b8720e92b6d33b1cbfe753
|
|
| BLAKE2b-256 |
efe5098440f33c9adcbda76ef87bca755430fa4d5bc3175602f716a3dfcf4380
|
File details
Details for the file python_deprecation_dates-0.2.4-py3-none-any.whl.
File metadata
- Download URL: python_deprecation_dates-0.2.4-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7c165b4425051f819fffeda55be84a9de640f53da6139976e217036b5a57268
|
|
| MD5 |
e3c1a176b4b83407e234ecfa599c20a8
|
|
| BLAKE2b-256 |
24b89a1caa1e84bb541aa64a9dd9e8a12f4462785b44da31986ed7f254c700a2
|