Skip to main content

💊 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 Python versions License: MIT


📦 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nobetci-eczane-api 1.0.1
File Size Uploaded
nobetci_eczane_api-1.0.1.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nobetci-eczane-api 1.0.1
File Interpreter ABI Platform
nobetci_eczane_api-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page