PetrolPrices Python SDK
Project description
PetrolPrices Python
An SDK to easily work with the PetrolPrices API
Install
Via Pip
pip install petrolprices-sdk
Usage
from petrolprices import PetrolPrices, FuelType, SortMethod
petrolprices = PetrolPrices(api_token="your-token")
nearby = petrolprices.search(
latitude=123,
longitude=456,
fuel_type=FuelType.Unleaded,
sort_method=SortMethod.Cheapest
)
Available Methods | Description |
---|---|
petrolprices.search(...) |
Retrieve a SearchEntriesCollection dict with details about nearby fuel stations. |
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
hatch shell
hatch run test
Security
If you discover any security related issues, please email security@voke.dev instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Treeware
You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.
It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees here.
Read more about Treeware at treeware.earth.
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
Built Distribution
File details
Details for the file petrolprices_sdk-0.2.2.tar.gz
.
File metadata
- Download URL: petrolprices_sdk-0.2.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a185924509f616cba0e3ef0c742ab6a18bc5d72a0fad84543ec24d8c328ec62 |
|
MD5 | 0c77b590dd1fce2e063f00ce3b3f1d96 |
|
BLAKE2b-256 | 4d9ef0a4804646a8c609d79ce2d6146008eaff02bb0783148ed4b83bd0cc388f |
File details
Details for the file petrolprices_sdk-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: petrolprices_sdk-0.2.2-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdf31f0e7fa425708bba87bf4a3cc73c088699c07da3ce282ef89e99f1e41ef0 |
|
MD5 | 1ab672083331637d246267de2c49b690 |
|
BLAKE2b-256 | 174570a1ae98b13ab4a2da8082f8bf1e2c98025951eb77ca87bc9471546e8027 |