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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stanzaapi_container_validator-1.0.0.tar.gz.
File metadata
- Download URL: stanzaapi_container_validator-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca0ce5ee12cd83e4d5e625395254c0f4b4d43ae11bbb9e2965f3bbf7b3338de0
|
|
| MD5 |
405c1ede001dc95cde9d1eb7fd12c96a
|
|
| BLAKE2b-256 |
0ab0bec7c627c6d1a9f3d139fba4ee127b1b3cb45da1d3cd05a1ed14f4a65156
|
File details
Details for the file stanzaapi_container_validator-1.0.0-py3-none-any.whl.
File metadata
- Download URL: stanzaapi_container_validator-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3926dd74821a33fc17c18eaa634fe46d54aa6b260ac8d1d7b7ccd03b01269e26
|
|
| MD5 |
07e0947741ba81e4ce178b80ab921f57
|
|
| BLAKE2b-256 |
43a1f18f65ad7689170b552de4fd3e1ffd842a068698b4107fc0e2912616a1ba
|