💊 Nöbetçi Eczane API - Resmi Python SDK
Türkiye ve KKTC genelindeki tüm güncel nöbetçi eczane verilerine, il/ilçe sorgularına ve koordinat bazlı en yakın eczane konumlarına programatik erişim sağlayan resmi Python SDK (PyPI).
📦 Kurulum
pip install nobetci-eczane-api
🔑 Hızlı Başlangıç
import os
from nobetci_eczane_api import EczaneAPI, EczaneAPIError
api = EczaneAPI(api_key=os.getenv("ECZANE_API_KEY", "SENIN_API_ANAHTARIN"))
try:
# 1. İstanbul'daki (34) nöbetçi eczaneleri çek
istanbul = api.get_sentry_by_city(34, limit=50)
print("İstanbul Nöbetçileri:", istanbul.get("data"))
# 2. Kadıköy'deki (440) nöbetçi eczaneleri çek
kadikoy = api.get_sentry_by_district("istanbul", "kadikoy")
print("Kadıköy Nöbetçileri:", kadikoy.get("data"))
# 3. Konumunuza en yakın 5 nöbetçi eczane
en_yakin = api.get_nearby(lat=41.0082, lon=28.9784, is_sentry=True, limit=5)
print("En Yakın Eczaneler:", en_yakin.get("data"))
except EczaneAPIError as e:
print(f"Hata [{e.status_code}]: {e}")
📄 Lisans
Bu paket MIT Lisansı altında sunulmaktadır.
Metadata
Release files for nobetci-eczane-api 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nobetci_eczane_api-1.0.1.tar.gz | 4.2 kB | Without provenance | Details for nobetci_eczane_api-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nobetci_eczane_api-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for nobetci_eczane_api-1.0.1-py3-none-any.whl |
Total release size: 9.3 kB
Release files / nobetci_eczane_api-1.0.1.tar.gz
| Download URL | nobetci_eczane_api-1.0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec9f9d6755ba11a09ea2ce2e370dd4cb9f8a43b40fdc8ddf886780c2a0d605e2
|
|
BLAKE2b-256 checksum How to use checksums |
2804475131f2327b76cf8b4bb567361f409d2d3068336a792390aa214f77ee6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / nobetci_eczane_api-1.0.1-py3-none-any.whl
| Download URL | nobetci_eczane_api-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82339305b9dc9adbe4a66fcf799b9ba702eec7e50445f5157688bf5143a2cc7a
|
|
BLAKE2b-256 checksum How to use checksums |
8e16a2b768bda29807c3635a4283451427cf7bbfc9d8119791b915073a271cb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for nobetci-eczane-api 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.