Metadata-Version: 2.4
Name: nobetci-eczane-api
Version: 1.0.0
Summary: Türkiye ve KKTC güncel nöbetçi eczane verilerine REST API üzerinden erişim sağlayan resmi Python SDK.
Project-URL: Homepage, https://eczaneler.org/nobetci-eczane-api
Project-URL: Documentation, https://eczaneler.org/nobetci-eczane-api
Project-URL: Repository, https://github.com/mehmeterdogan/nobetci-eczane-api
Project-URL: Bug Tracker, https://github.com/mehmeterdogan/nobetci-eczane-api/issues
Author-email: Mehmet Erdoğan <contact@eczaneler.org>
License-Expression: MIT
Keywords: eczane-api,eczaneler,nobetci-eczane,nobetci-eczane-api,pharmacy-api,turkey-pharmacy
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.8
Requires-Dist: requests>=2.25.0
Description-Content-Type: text/markdown

# 💊 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)**.

[![PyPI version](https://img.shields.io/pypi/v/nobetci-eczane-api.svg?style=flat-square&color=dc2626)](https://pypi.org/project/nobetci-eczane-api/)
[![Python versions](https://img.shields.io/pypi/pyversions/nobetci-eczane-api.svg?style=flat-square)](https://pypi.org/project/nobetci-eczane-api/)
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat-square)](LICENSE)

---

## 📦 Kurulum

```bash
pip install nobetci-eczane-api
```

---

## 🔑 Hızlı Başlangıç

```python
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ı](LICENSE) altında sunulmaktadır.
