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 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


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)

Uploaded Source

Built Distribution

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

pharmapi-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for pharmapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6e1ca56c3fd6f0ace266b221015d0e363f0a78190a1c9bd302c606a7828c456a
MD5 cb39df43d76ba1b8e6e18f5ef9aa2da4
BLAKE2b-256 49cbcff6e8081f7eba96efae68186498b30113f31e74a577bf5a475303cd8de0

See more details on using hashes here.

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

Hashes for pharmapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dbc23c1f48a8039b7c186948507dc4d9f78016e979449ee2bd36f6171f6f134
MD5 51a44274eb5e4209b8f62d3a70727039
BLAKE2b-256 0f96ab966d572e44a31587936f12b7d67a4eb5e5d145c189d35507c35c722f05

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