A Python client for the pharmaApi
Project description
PharmaAPI Python Client
A Python client library for the PharmaAPI - search and retrieve pharmaceutical data from French and US databases.
Installation
pip install pharma-api-client
Quick Start
from pharma_api_client import PharmaAPIClient
# Initialize client
client = PharmaAPIClient("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 & Examples
Requirements
- Python 3.7+
- requests
- pandas
License
MIT License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pharma_api_client-1.0.3.tar.gz.
File metadata
- Download URL: pharma_api_client-1.0.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65c7879a832f023e47f3a472523cafc922dbdaad690f258af9bf1bdd585ca0ca
|
|
| MD5 |
89b24de654faad7bad557982c6b540c2
|
|
| BLAKE2b-256 |
c47a5ff0b0ec3a88188d1d72eca28061fecb64ea7aedc6fd368b39026cafb83b
|
File details
Details for the file pharma_api_client-1.0.3-py3-none-any.whl.
File metadata
- Download URL: pharma_api_client-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7db0011d4916c84a7320bda88e4416059eb6f9a4925e7a59fff65fc76f592b88
|
|
| MD5 |
b64ca951dc9b96d84513da977ee624e9
|
|
| BLAKE2b-256 |
4a371dd73cb15e3757bee8b64385e14bb4152be6a13d40f89493bcf7981640a1
|