Skip to main content

ISO 6346 Container & Chassis Check-Digit Validator — Python SDK

PyPI version Python Versions License: MIT Stanza API

MOD-11 check digit validator and ISO 6346 size/type decoder for intermodal shipping containers, chassis, and trailers.

Official, zero-dependency Python 3.8+ client library for ISO 6346 Container & Chassis Check-Digit Validator, built on the Stanza Micro-API Network. Intended for enterprise data pipelines, backend verification, and sub-5ms edge compute.


📦 Installation

pip install stanzaapi-container-validator

🚀 Quickstart

import os
from stanzaapi_container_validator import ContainerValidatorClient

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

# Execute deterministic validation
response = client.validate("MSKU0123456")

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,
    "owner_code": "MSK",
    "category": "U",
    "serial_number": "012345",
    "check_digit": 6
  }
}

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

📄 License

MIT © Stanza — Powered by Stanza.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stanzaapi_container_validator-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

stanzaapi_container_validator-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file stanzaapi_container_validator-1.0.0.tar.gz.

File metadata

File hashes

Hashes for stanzaapi_container_validator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ca0ce5ee12cd83e4d5e625395254c0f4b4d43ae11bbb9e2965f3bbf7b3338de0
MD5 405c1ede001dc95cde9d1eb7fd12c96a
BLAKE2b-256 0ab0bec7c627c6d1a9f3d139fba4ee127b1b3cb45da1d3cd05a1ed14f4a65156

See more details on using hashes here.

File details

Details for the file stanzaapi_container_validator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stanzaapi_container_validator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3926dd74821a33fc17c18eaa634fe46d54aa6b260ac8d1d7b7ccd03b01269e26
MD5 07e0947741ba81e4ce178b80ab921f57
BLAKE2b-256 43a1f18f65ad7689170b552de4fd3e1ffd842a068698b4107fc0e2912616a1ba

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page