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

See the Official Website

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.2.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.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pharma_api_client-1.0.2.tar.gz.

File metadata

  • Download URL: pharma_api_client-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 eb5dc5083435979c0512805367ef2b416a7d214dc331eb823ea117288ba70008
MD5 c13d7145602a43f6beec701baf85d3e3
BLAKE2b-256 11884eca1e43a046f3ad1ef7b7a6fcbb758a449683dff7f84a9e5ab78ada0aee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pharma_api_client-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba3f0ec22bb446763e4f1c6c8f4690644f69d574d1f51f45074dd0b3f15a7a30
MD5 3f980c17faed02680511dcec5cfecf9f
BLAKE2b-256 042a97b7623482640406ae44e2264b28582560a45c2debafc9d66f797951daa6

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