Skip to main content

CodeMelli

pypi version build status docs code coverage MIT License

Python package to validate/generate iranian national ID

Usage

>>> import codemelli

# Validate a real codemelli
>>> codemelli.validator(2833411839)
True

# Validate a fake codemelli
>>> codemelli.validator(3235632189)
False

# Generate a random valid codemelli
>>> codemelli.generator()
6615365987

# Generate a random codemelli with a defined city code
>>> codemelli.generator(223)
2239832630

# Lookup city and state of a valid codemelli
>>> codemelli.lookup(2239832630)
{'city': 'بندرترکمن', 'state': 'گلستان'}

Metadata

Release files for codemelli 0.1.2

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

Source distribution (sdist)

Source distribution for codemelli 0.1.2
File Size Uploaded Provenance Actions
codemelli-0.1.2.tar.gz 18.0 kB Without provenance Details for codemelli-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for codemelli 0.1.2
File Interpreter ABI Platform Actions
codemelli-0.1.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for codemelli-0.1.2-py2.py3-none-any.whl

Total release size: 29.0 kB

Release files / codemelli-0.1.2.tar.gz

Download URL codemelli-0.1.2.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4df99605fc64338c425ddf1c1a92817fc5fc8377cd7a89e4cf7565ae105f4a23
BLAKE2b-256 checksum
How to use checksums
1576c5e88ba4953ecac83c6fe987f713f7313efbc86c5bbe55b6817230bbfc8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1

Release files / codemelli-0.1.2-py2.py3-none-any.whl

Download URL codemelli-0.1.2-py2.py3-none-any.whl
Size 10.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
65eb43287a1e099adf9dfb302aaf164682ac32d62f6af61e4da10323ebb0a6ac
BLAKE2b-256 checksum
How to use checksums
2c3225bf02b24b8bf49425e62ab60e169b419d7b3a4bb183b051f0a03e7365c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.1

Security for codemelli 0.1.2

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

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