Skip to main content

A Python package that allows you to view fuel prices in Turkey based on cities.

Project description

Opet

Güncel yakıt fiyatlarını https://www.opet.com.tr/ üzerinden almanıza sağlar.

Kullanım

Aşağıdaki komut ile paketi kurabilirsiniz.

pip install opet

Projeyi isterseniz aşağıdaki şekilde bir kütüphane olarak kullanabilirsiniz, veya opet-cli üzerinden terminalden kullanabilirsiniz.

client = OpetApiClient()

print(client.get_provinces())
print(client.get_price("55"))

get_last_update

En son güncellemenin ne zaman olduğunu görebilirsiniz.

get_provinces

Sistemde yakıt fiyatlarını çekmek için kullanabileceğiniz il ve kodlarını getirir.

price

Parametre olarak vereceğiniz il kodu ile o ildeki yakıt fiyatlarına ulaşabilirsiniz.

opet-cli

Terminal üzerinden plaka kodu parametresi geçerek yakıt fiyatlarını json formatında görebilirsiniz.

opet-cli --il 34

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

opet-0.0.9.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

opet-0.0.9-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file opet-0.0.9.tar.gz.

File metadata

  • Download URL: opet-0.0.9.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for opet-0.0.9.tar.gz
Algorithm Hash digest
SHA256 ccab7148e75790db0e793aa4bfa32ceff834c81cd655c9cac02036325c6fb56c
MD5 f82bf0331b04859bf7c134c91baca65c
BLAKE2b-256 5f96443df449955c3a94577fead7eedc7f2c079c9f63b6dd2f257e7f53f9592d

See more details on using hashes here.

File details

Details for the file opet-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: opet-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for opet-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 35e4f04c779d99d84dd01a68a9d5ce54a2cdebb66b44635dbfa2865bdc83f7cd
MD5 acbed180232087b3493956cabff4af32
BLAKE2b-256 685e2d0110ab71a5f177182146ab3baf4917245f004ed0f5e12ac68b43724380

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