GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - StanzaAPI/pharma-dscsa-python: FDA DSCSA & EU FMD Drug Serialization API (python client)

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src/stanzaapi_pharma_dscsa
src/stanzaapi_pharma_dscsa
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

FDA DSCSA & EU FMD Drug Serialization API — Python SDK

PyPI version Python Versions License: MIT Stanza API

US FDA DSCSA 4-element & EU FMD 2D DataMatrix barcode parser, Modulo-10 check digit validator, and NDC-to-GTIN converter in sub-5ms.

Official, zero-dependency Python 3.8+ client library for FDA DSCSA & EU FMD Drug Serialization API, built on the Stanza Micro-API Network. Intended for enterprise data pipelines, backend verification, and sub-5ms edge compute.

  • 🌐 Live Web Playground: Test your inputs online
  • 📚 API Documentation: View full schema on Stanza
  • ⚡ Platform Overview: Explore the Stanza Developer Network

📦 Installation

pip install stanzaapi-pharma-dscsa

🚀 Quickstart

import os
from stanzaapi_pharma_dscsa import PharmaDscsaClient

# Initialize client (api_key optional for local evaluation)
client = PharmaDscsaClient(
    api_key=os.getenv("STANZA_API_KEY")
)

# Execute deterministic validation
response = client.parse("(01)00300012345678(21)100000000001(17)261231(10)LOT12345")

if response.get("success"):
    print("Verification Success:", response["data"])
else:
    print("Validation Error:", response.get("error"), response.get("code"))

📄 Example Response

{
  "success": true,
  "data": {
    "gtin": "00300012345678",
    "serial_number": "100000000001",
    "expiration_date": "2026-12-31",
    "lot_number": "LOT12345"
  }
}

⚙️ Client Options

Parameter Type Default Description
api_key Optional[str] os.getenv("STANZA_API_KEY") Your Stanza API Key. Required for production quotas.
base_url Optional[str] "https://api.stanzaapi.com/pharma-dscsa" Public edge API base URL.
timeout int 15 Request timeout in seconds.

🔗 Useful Links

  • FDA DSCSA & EU FMD Drug Serialization API Interactive Sandbox
  • Stanza Developer Directory
  • Source Code & Issue Tracker

📄 License

MIT © Stanza — Powered by Stanza.

About

FDA DSCSA & EU FMD Drug Serialization API (python client)

stanzaapi.com/tools/pharma-dscsa

Topics

api-clientdscsaepcisfdafmdgs1healthcarepharmaceuticalpythonrest-apisdkserializationsgtinstanzaapi

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.