Python API to access latest fuel prices in the UK
Project description
UK Fuel Prices
Pull UK Fuel Price data from sources listed here.
Example
Initialise
from uk_fuel_prices_api import UKFuelPricesApi
api = UKFuelPricesApi();
await api.get_all_endpoints_dataframe()
Search
# Search for all stations matching value
await api.search("searchstring")
# Only return first 5 results
await api.search("searchstring", 5)
Site ID
# Get single Station by known site_id
await api.get_site_id("siteid")
Nearest
# Find the nearest fuel stations to a lat,lng location
my_lat = 53.483959
my_lng = -2.244644
number_of_stations_to_return = 10
stations = api.nearest(my_lat, my_lng, number_of_stations_to_return)
display (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
uk_fuel_prices_api-0.0.1.tar.gz
(17.9 kB
view details)
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 uk_fuel_prices_api-0.0.1.tar.gz.
File metadata
- Download URL: uk_fuel_prices_api-0.0.1.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
edc9418a21b086209e4a04a6ba3dd6fbbd16cd13fd923c9c802701fca644067f
|
|
| MD5 |
97484dcad6a933ae085b8c624992d7e5
|
|
| BLAKE2b-256 |
7de83e8d5f59d7e5db75ec5981af0fceba2f72cd9434948353d7fb5a7d9394c9
|
File details
Details for the file uk_fuel_prices_api-0.0.1-py3-none-any.whl.
File metadata
- Download URL: uk_fuel_prices_api-0.0.1-py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e284721d78ada842fbe8a42068652ccc32d22f75c73f239aaaba6f09e706f64
|
|
| MD5 |
e53eedec09c43bfaf64983834a1d3bc9
|
|
| BLAKE2b-256 |
35d4a11bce45f4fa77e37dcd29a4c9b546fa326997ea7bc50ef090926bdcc7c0
|