Skip to main content

Wrapper for creativecommons.tankerkoenig.de API

Project description

Tankerkoenig-Python

Python wrapper for the creativecommons.tankerkoenig.de API

Note: The API is under Creative Commons (CC BY 4.0) license. It is used by many clients so please restrict API calls to the minimum. Every request requires an API key that can be requested here

Example

import tankerkoenig
from tankerkoenig import models

client = tankerkoenig.Client(api_key="00000000-0000-0000-0000-000000000002")

petrol_stations = client.list(
    lat=50.114634,
    lng=8.687657,
    rad=2,
    petrol_type=models.Petrol.DIESEL,
    sort=models.SortingMethod.DISTANCE,
)
print(petrol_stations)

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

tankerkoenig-0.0.1.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

tankerkoenig-0.0.1-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

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