Skip to main content

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

pharma_api_client-1.0.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pharma_api_client-1.0.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for pharma_api_client-1.0.3.tar.gz
Algorithm Hash digest
SHA256 65c7879a832f023e47f3a472523cafc922dbdaad690f258af9bf1bdd585ca0ca
MD5 89b24de654faad7bad557982c6b540c2
BLAKE2b-256 c47a5ff0b0ec3a88188d1d72eca28061fecb64ea7aedc6fd368b39026cafb83b

See more details on using hashes here.

File details

Details for the file pharma_api_client-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pharma_api_client-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7db0011d4916c84a7320bda88e4416059eb6f9a4925e7a59fff65fc76f592b88
MD5 b64ca951dc9b96d84513da977ee624e9
BLAKE2b-256 4a371dd73cb15e3757bee8b64385e14bb4152be6a13d40f89493bcf7981640a1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page