Skip to main content

ISO Container

PyPI Python License

A Python package based on ISO 6346 Container Codes.
This package provides functionalities to search for container information using ISO codes and to validate container numbers.

Installation

Install the package using pip:

pip install iso-container

Usage

Search Container Information

You can retrieve detailed container information using an ISO code:

from iso_container import get_container_info

# Example usage
container_info = get_container_info('22GP')
print(container_info)
# -> {'class': '20 GENERAL PURPOSE CONTAINER', 'type': 'STANDARD DRY', 'length': 20, 'height': 8.5}

Validate Container Numbers

Validate whether a container number is compliant with the ISO 6346 standard:

from iso_container import validate_container

# Example usage
is_valid = validate_container('CSQU3054383')
print('Valid Container Number' if is_valid else 'Invalid Container Number')
# -> Valid Container Number

API Reference

Function Returns
get_container_info(code) A dict with container details, or None if the code is unknown. The lookup is case-insensitive.
validate_container(number) True if the 11-character number passes the ISO 6346 check-digit rule, otherwise False.

Dataset

The dataset used in this package is derived from the ISO-Container-Codes repository, processed to enhance usability.

License

This project is licensed under the MIT License.

Metadata

Release files for iso-container 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iso-container 1.1.0
File Size Uploaded
iso_container-1.1.0.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iso-container 1.1.0
File Interpreter ABI Platform
iso_container-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / iso_container-1.1.0.tar.gz

Download URL iso_container-1.1.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fd85464a15677d6dd316ce455b7da362d065463a0e80e3b3e86ccaecd995bbcf
BLAKE2b-256 checksum
How to use checksums
3cc2ea133d9b9af57449b5a64d0da66a8cb184935931197216f161541c6cbe62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release files / iso_container-1.1.0-py3-none-any.whl

Download URL iso_container-1.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80fba549fad93dac54c76df00f050028c5ec4311525885fd37e0fc8b01ffe9d4
BLAKE2b-256 checksum
How to use checksums
160d0a916e91f87e89d057f0dd624713026f508fe8221e5eec7c34effc24a921
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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