ISO 6346 Container & Chassis Check-Digit Validator — Python SDK
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.
- 🌐 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-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. |
🔗 Useful Links
- ISO 6346 Container & Chassis Check-Digit Validator Interactive Sandbox
- Stanza Developer Directory
- Source Code & Issue Tracker
📄 License
MIT © Stanza — Powered by Stanza.
Metadata
Release files for stanzaapi-container-validator 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stanzaapi_container_validator-1.0.0.tar.gz | 3.8 kB | Without provenance | Details for stanzaapi_container_validator-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stanzaapi_container_validator-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for stanzaapi_container_validator-1.0.0-py3-none-any.whl |
Total release size: 7.7 kB
Release files / stanzaapi_container_validator-1.0.0.tar.gz
| Download URL | stanzaapi_container_validator-1.0.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca0ce5ee12cd83e4d5e625395254c0f4b4d43ae11bbb9e2965f3bbf7b3338de0
|
|
BLAKE2b-256 checksum How to use checksums |
0ab0bec7c627c6d1a9f3d139fba4ee127b1b3cb45da1d3cd05a1ed14f4a65156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / stanzaapi_container_validator-1.0.0-py3-none-any.whl
| Download URL | stanzaapi_container_validator-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3926dd74821a33fc17c18eaa634fe46d54aa6b260ac8d1d7b7ccd03b01269e26
|
|
BLAKE2b-256 checksum How to use checksums |
43a1f18f65ad7689170b552de4fd3e1ffd842a068698b4107fc0e2912616a1ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for stanzaapi-container-validator 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.