Skip to main content

PetrolPrices Python SDK

Project description

PetrolPrices Python

Latest Version on PyPi Software License Build Status Buy us a tree

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

petrolprices_sdk-0.2.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

petrolprices_sdk-0.2.2-py3-none-any.whl (5.1 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