Metadata-Version: 2.1
Name: py-code-meli
Version: 0.1.3
Summary: This python package gives you a simple method that you can validate code meli (Iranian National Code) with it.
Home-page: https://github.com/rabbitix/py_code_meli
License: MIT
Keywords: python,code meli,code_meli
Author: ali
Author-email: lmntrix.afr@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Project-URL: Repository, https://github.com/rabbitix/py_code_meli
Description-Content-Type: text/markdown

[![PyPI version](https://badge.fury.io/py/py-code-meli.svg)](https://badge.fury.io/py/py-code-meli)


This project is following this Unix philosophy:  [DOTADIW](https://en.wikipedia.org/wiki/Unix_philosophy#Do_One_Thing_and_Do_It_Well)


____

So the project do a simple task.. validate code meli (Iranian National Code)..thats it..!



the algorithem is explained in Persian in [this site](http://www.aliarash.com/article/codemeli/codemeli.htm)

___
## How to use it?

to install it, run:
>`pip install py-code-meli`

```python
>>>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](http://mellicode.azmads.com/Home/Index?id=0)**
