Skip to main content

Get fuel price from cne api

Project description

https://img.shields.io/pypi/v/cne.svg https://img.shields.io/pypi/dm/cne.svg https://img.shields.io/pypi/dm/cne.svg https://img.shields.io/badge/license-MIT-blue.svg https://codeship.com/projects/4d6ff4e0-2a72-0133-0222-622b866f1c07/status?branch=master

Get fuel price from cne api

Installation

$ pip install cne

Use

>>> import cne
>>> data = cne.get()
>>> print(data)
{'gasolina_97': 842, 'gasolina_95': 805, 'kerosene': 578, 'gasolina_93': 769, 'petroleo_diesel': 494}
>>> data = cne.get(fuel_type='gasolina_93')
>>> print(data)
769

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

cne-0.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

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