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 pharmapi
Quick Start
from pharmapi import PharmaAPIClient
# Initialize client
client = PharmaAPIClient(api_key="your-api-key")
# Search for products
response = client.search_by_ingredient("indapamide", 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pharmapi-1.0.0.tar.gz
(5.3 kB
view details)
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 pharmapi-1.0.0.tar.gz.
File metadata
- Download URL: pharmapi-1.0.0.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 |
6e1ca56c3fd6f0ace266b221015d0e363f0a78190a1c9bd302c606a7828c456a
|
|
| MD5 |
cb39df43d76ba1b8e6e18f5ef9aa2da4
|
|
| BLAKE2b-256 |
49cbcff6e8081f7eba96efae68186498b30113f31e74a577bf5a475303cd8de0
|
File details
Details for the file pharmapi-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pharmapi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 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 |
4dbc23c1f48a8039b7c186948507dc4d9f78016e979449ee2bd36f6171f6f134
|
|
| MD5 |
51a44274eb5e4209b8f62d3a70727039
|
|
| BLAKE2b-256 |
0f96ab966d572e44a31587936f12b7d67a4eb5e5d145c189d35507c35c722f05
|