This python package gives you a simple method that you can validate code meli (Iranian National Code) with it.
Project description
This project is following this Unix philosophy: DOTADIW
So the project do a simple task.. validate code meli (Iranian National Code)..thats it..!
the algorithem is explained in Persian in this site
How to use it?
to install it, run:
pip install py-code-meli
>>>from py_code_meli import is_valid
>>>is_valid("0095017240")
True
>>>is_valid("0095017241")
False
Run Tests
to run the package tests, first you need to clone it and then run :
poetry install
to run the tests:
poetry run pytest
to generate valid code meli, use this link
Project details
Release history Release notifications | RSS feed
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 py_code_meli-0.1.3.tar.gz.
File metadata
- Download URL: py_code_meli-0.1.3.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-43-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51b44afdc48633d7203656188d890de2c4bed7a07db7952fdb7430bb01eef819
|
|
| MD5 |
47c2cc79d5c1695ab1d0cbc7a391a3fb
|
|
| BLAKE2b-256 |
770d6769ce44bb64679dbfdd8eadf511c653d17cda218d9052533e1b376dd34f
|
File details
Details for the file py_code_meli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: py_code_meli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.11.0-43-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c6f0d06aa64f761ebf2131f43e2abae03a568e301eaa3541d6dc0931b28eae7
|
|
| MD5 |
77ff96db0592b633906dfbd060408c2d
|
|
| BLAKE2b-256 |
6aa921b10fb6a28a543304b6fb20d8ffde04ee232d10163fe050bddeca3411bf
|