Metadata-Version: 2.1
Name: pharma-api-client
Version: 0.1.0
Summary: A Python client for the PharmaAPI
Home-page: https://github.com/yourusername/pharma-api-client
Author: Your Name
Author-email: Your Name <your.email@example.com>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/pharma-api-client
Project-URL: Documentation, https://pharma-api-client.readthedocs.io
Project-URL: Repository, https://github.com/yourusername/pharma-api-client
Keywords: pharmaceutical,api,drug,medicine,healthcare
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENCE
Requires-Dist: requests>=2.25.0
Requires-Dist: pandas>=1.2.0
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: pytest-cov>=2.0; extra == "dev"
Requires-Dist: black>=21.0; extra == "dev"
Requires-Dist: flake8>=3.9; extra == "dev"

# PharmaAPI Python Client

A Python client library for the PharmaAPI - search and retrieve pharmaceutical data from French and US databases.

## Installation
```bash
pip install pharma-api-client
```

## Quick Start
```python
from pharma_api_client import PharmaAPIClient

# Initialize client
client = PharmaAPIClient(
    base_url="https://api.pharmadb.example.com",
    api_key="your-api-key"
)

# Search for products
response = client.search_by_ingredient("aspirin", limit=10)

# Convert to pandas DataFrame
df = response.to_df()
print(df.head())

# Clean up
client.close()
```

## Features

- 🔍 Search by name, ingredient, dosage form, strength
- 💊 Get product details by CIS ID or RxNorm code
- 💰 Access pricing information (French and US)
- 🔬 Professional tier: ATC codes, NDC lookup, US product names
- 📊 Easy DataFrame conversion with `.to_df()`
- 🛡️ Type hints and comprehensive error handling

## Documentation

See the [tutorial notebook](examples/tutorial.ipynb) for detailed examples.

## Requirements

- Python 3.7+
- requests
- pandas

## License

MIT License
