Skip to main content

Get fuel price from cne api

Project description

https://img.shields.io/pypi/v/cne.svg?style=flat-square https://img.shields.io/pypi/dm/cne.svg?style=flat-square https://img.shields.io/pypi/wheel/cne.svg?style=flat-square https://img.shields.io/pypi/format/cne.svg?style=flat-square https://img.shields.io/pypi/pyversions/cne.svg?style=flat-square https://img.shields.io/pypi/status/cne.svg?style=flat-square https://img.shields.io/pypi/l/cne.svg?style=flat-square https://img.shields.io/travis/lgaticaq/python-cne.svg?style=flat-square https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=flat-square

Get fuel price from cne api

Installation

$ pip install cne

Use

>>> import cne
>>> data = cne.get(fuelType='gasolina_95', commune='santiago')
>>> print(data)
{
    id: 'ul1510101',
    fecha: '2015-07-24 20:29:23',
    direccion_calle: 'Barros Arana',
    direccion_numero: '3081',
    latitud: -18.458676528284,
    longitud: -70.288939476013,
    nombre_comuna: 'Arica',
    nombre_distribuidor: 'Uligas',
    tienda_conveniencia: '',
    farmacia: '',
    bano_publico: '1',
    servicios_mantencion: '',
    autoservicio: '',
    horario_atencion: 'HH',
    precio_por_combustible: {
      glp_vehicular: 393
    },
    metodos_de_pago: {
      efectivo: '1'
    }
}

Fuel types availables

gasolina_93, gasolina_95, gasolina_97, glp_vehicular, gnc, kerosene, petroleo_diesel

Communes availables

Aisén, Algarrobo, Alhué, Alto Hospicio, Ancud, Andacollo, Angol, Antofagasta, Antuco, Arauco, Arica, Buin, Bulnes, Cabildo, Cabo de Hornos, Cabrero, Calama, Calbuco, Caldera, Calera de Tango, Calera, Calle Larga, Canela, Carahue, Cartagena, Casablanca, Castro, Catemu, Cauquenes, Cañete, Cerrillos, Cerro Navia, Chaitén, Chanco, Chañaral, Chiguayante, Chile Chico, Chillán Viejo, Chillán, Chimbarongo, Cholchol, Chonchi, Chépica, Cisnes, Cobquecura, Cochamó, Cochrane, Coelemu, Coihaique, Coihueco, Colbún, Colina, Collipulli, Coltauco, Combarbalá, Concepción, Conchalí, Concón, Constitución, Contulmo, Copiapó, Coquimbo, Coronel, Corral, Cunco, Curacautín, Curacaví, Curanilahue, Curarrehue, Curepto, Curicó, Dalcahue, Diego de Almagro, Doñihue, El Bosque, El Carmen, El Monte, El Quisco, Empedrado, Ercilla, Estación Central, Florida, Freire, Fresia, Frutillar, Futrono, Galvarino, Gorbea, Graneros, Guaitecas, Hijuelas, Hualaihué, Hualañé, Hualpén, Huasco, Huechuraba, Illapel, Independencia, Iquique, Isla de Maipo, Isla de Pascua, La Cisterna, La Cruz, La Estrella, La Florida, La Granja, La Ligua, La Pintana, La Reina, La Serena, La Unión, Lago Ranco, Laja, Lampa, Lanco, Las Cabras, Las Condes, Lautaro, Lebu, Licantén, Limache, Linares, Litueche, Llaillay, Llanquihue, Lo Barnechea, Lo Espejo, Lo Prado, Lolol, Loncoche, Longaví, Lonquimay, Los Andes, Los Lagos, Los Muermos, Los Sauces, Los Vilos, Los Álamos, Los Ángeles, Lota, Lumaco, Machalí, Macul, Maipú, Malloa, Marchihue, Mariquina, María Elena, María Pinto, Maule, Maullín, Mejillones, Melipeuco, Melipilla, Molina, Monte Patria, Mostazal, Mulchén, Máfil, Nacimiento, Nancagua, Natales, Navidad, Negrete, Ninhue, Nogales, Nueva Imperial, Ñiquén, Ñuñoa, Olivar, Olmué, Osorno, Ovalle, O’Higgins, Padre Hurtado, Padre las Casas, Paillaco, Paine, Palena, Palmilla, Panguipulli, Panquehue, Papudo, Paredones, Parral, Pedro Aguirre Cerda, Pelarco, Pelluhue, Pemuco, Pencahue, Penco, Peralillo, Perquenco, Petorca, Peumo, Peñaflor, Peñalolén, Pica, Pichidegua, Pichilemu, Pinto, Pirque, Pitrufquén, Placilla, Porvenir, Pozo Almonte, Primavera, Providencia, Puchuncaví, Pucón, Pudahuel, Puente Alto, Puerto Montt, Puerto Octay, Puerto Varas, Pumanque, Punitaqui, Punta Arenas, Purranque, Purén, Putaendo, Puyehue, Queilén, Quellón, Quilicura, Quillota, Quillón, Quilpué, Quinchao, Quinta Normal, Quinta de Tilcoco, Quintero, Quirihue, Rancagua, Rauco, Recoleta, Renaico, Renca, Rengo, Requínoa, Retiro, Rinconada, Romeral, Ránquil, Río Bueno, Río Claro, Río Ibáñez, Río Negro, Saavedra, Sagrada Familia, Salamanca, San Antonio, San Bernardo, San Carlos, San Clemente, San Esteban, San Felipe, San Fernando, San Gregorio, San Ignacio, San Javier, San Joaquín, San José de Maipo, San Miguel, San Nicolás, San Pablo, San Pedro de Atacama, San Pedro de la Paz, San Rafael, San Ramón, San Vicente, Santa Bárbara, Santa Cruz, Santa Juana, Santa María, Santiago, Santo Domingo, Sierra Gorda, Talagante, Talca, Talcahuano, Taltal, Temuco, Teno, Teodoro Schmidt, Tierra Amarilla, Tiltil, Tirúa, Tocopilla, Toltén, Tomé, Traiguén, Tucapel, Valdivia, Vallenar, Valparaíso, Victoria, Vicuña, Vilcún, Villa Alegre, Villa Alemana, Villarrica, Vitacura, Viña del Mar, Yerbas Buenas, Yumbel, Yungay, Zapallar

Distributors availables

ABASTIBLE, APEX, ATT, AUTOGASCO, BALTOLU, CAVE, CHILIN, COC, COMBUSTIBLES AMADE, COMBUSTIBLES JCD, COMERCIAL MAQUI, COPEC, CUSTOM SERVICE, Combustible Alhue, Combustibles Endless.com, Combustibles Ortiz, Coopeserau, Cremaschi, DELPA, ECCO, ECOGREEN LTDA., EL HUIQUE, ENERSUR S.A., FACAZ, HN, HOLA!, J Allel, JLC, LIDER S.A., LIPIGAS, PETROBRAS, PETROJAC, PETRONEXT, Puma Verde, Rafael Letelier Yañez y Cia Ltda, SERVICENTRO LEAL, SERVICENTRO SAN MIGUEL, SERVICENTROS RABALME, SESA, SHELL, SINHEL, SOCORRO, SUAREZ COMBUSTIBLES, SURENERGY, Sin Bandera, TERPEL, Uligas, VIVA COMBUSTIBLES

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.1.4.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

cne-0.1.4-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cne-0.1.4.tar.gz.

File metadata

  • Download URL: cne-0.1.4.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cne-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6d3813cabb4ff08ac092b68f3481410b64bb3e18c6d635239aae95f3678ecc65
MD5 05c33196b8a633859e15ad5a1e02a0c6
BLAKE2b-256 524772d5b6813cd365e597d764e87e2e6e1085cf22811d21c1f1f92d40fb979b

See more details on using hashes here.

File details

Details for the file cne-0.1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cne-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 843a550c5f63f62dfe509ca361252172d7576a3917543fc1c3b365b15e9a8faa
MD5 b5ae21173303cc527f465a3e768baed9
BLAKE2b-256 0e7a7101c6c644b87cb6df0edb35d73c7ed8730126e70463c75f1a513f211d0d

See more details on using hashes here.

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