Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

FDA & EU MDR Medical Device UDI Decoder — Python SDK

PyPI version Python Versions License: MIT Stanza API

Parse GS1-128, HIBCC Modulo-43, and ICCBBA ISBT 128 medical device barcodes for FDA 21 CFR 801 & EU MDR compliance.

Official, zero-dependency Python 3.8+ client library for FDA & EU MDR Medical Device UDI Decoder, built on the Stanza Micro-API Network. Intended for enterprise data pipelines, backend verification, and sub-5ms edge compute.


📦 Installation

pip install stanzaapi-udi-decoder

🚀 Quickstart

import os
from stanzaapi_udi_decoder import UdiDecoderClient

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

# Execute deterministic validation
response = client.parse("+H12345678901/$$3260101")

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

📄 Example Response

{
  "success": true,
  "data": {
    "valid": true,
    "issuing_agency": "HIBCC",
    "di": "H12345678901",
    "lot": "3260101"
  }
}

⚙️ 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/udi-decoder" Public edge API base URL.
timeout int 15 Request timeout in seconds.

🔗 Useful Links

📄 License

MIT © Stanza — Powered by Stanza.

About

FDA & EU MDR Medical Device UDI Decoder (GS1, HIBCC, ICCBBA) (python client)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages