💊 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.
Release files for nobetci-eczane-api 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nobetci_eczane_api-1.0.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nobetci_eczane_api-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / nobetci_eczane_api-1.0.0.tar.gz
| Download URL | nobetci_eczane_api-1.0.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ce329eacd1727ef591cc19d36196679a87ff76ec21d6d55f3230b856e8d423e
|
|
BLAKE2b-256 checksum How to use checksums |
96ac09df678f028c96de5ecf355dcbbd1987ef250a4b576321139394009c26bd
|
| 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.0-py3-none-any.whl
| Download URL | nobetci_eczane_api-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55c1d10c38e8e23c569ffea348ad6c51e84e9a294e517218609d79d85d007d48
|
|
BLAKE2b-256 checksum How to use checksums |
af502bf5875b8a4a9f40cac59d44ea7fd21dc68ba31f10a16f730fdcc40c6039
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|