Documentation for the endoflife.date API. The API is currently in Alpha. Additional information about the API can be found on the endoflife.date wiki
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.0.1
- Package version: 0.10.1-pre.0
- Generator version: 7.4.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://github.com/oapicf/endoflife.date-api-clients
Python 3.7+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/oapicf/endoflife.date-api-clients.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/oapicf/endoflife.date-api-clients.git
)
Then import the package:
import endoflifedate
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import endoflifedate
Execute pytest
to run the tests.
Please follow the installation procedure and then run the following:
import endoflifedate
from endoflifedate.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://endoflife.date
# See configuration.py for a list of all supported configuration parameters.
configuration = endoflifedate.Configuration(
host = "https://endoflife.date"
)
# Enter a context with an instance of the API client
with endoflifedate.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = endoflifedate.DefaultApi(api_client)
try:
# All Products
api_response = api_instance.get_api_all_json()
print("The response of DefaultApi->get_api_all_json:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->get_api_all_json: %s\n" % e)
All URIs are relative to https://endoflife.date
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | get_api_all_json | GET /api/all.json | All Products |
DefaultApi | get_api_product_cycle_json | GET /api/{product}/{cycle}.json | Single cycle details |
DefaultApi | get_api_product_json | GET /api/{product}.json | Get All Details |
Endpoints do not require authorization.