check-digit-EAN13-0.2
توضیحات
A simple library to get check digit
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Microsoft :: Windows :: Windows 10 |
| نام فایل | check-digit-EAN13-0.2 |
| نام | check-digit-EAN13 |
| نسخه کتابخانه | 0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Muhammed gassali |
| ایمیل نویسنده | mhdgassalishalu5554@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/check-digit-EAN13/ |
| مجوز | MIT |
Get check digit number of your EAN-13 Barcode.
=================================================
Here I'm presenting a package to find check digit (system generated digit) of 12 digit number which is used
to create EAN-13 Barcode. When we used to create a barcode, the last digit always generated by our machine.In most
of the cases, barcode number want to be unique and it is difficult to find if our new barcode number is already existing in our
database without knowing this system generated digit and unfortunately I didn't find any package to find this.
That's why I came accross to build a package to fing this crazy digit.
Installing
================
pip install check-digit-EAN13
Usage
======
from check_digit_EAN13.check_digit import get_check_digit
barcode_number = 123456565456
actual_barcode_number = get_check_digit(barcode_number)
print(actual_barcode_number)
output
=================
1234565654562
exceptions
============
case 1:
You can't use less than 12 digit here
barcode_number = 123456565
actual_barcode_number = get_check_digit(barcode_number)
output
=================
sorry, please enter 12 digits
case 2:
You can't enter any character other than digits here
barcode_number = "123uu45656898895"
actual_barcode_number = get_check_digit(barcode_number)
output
=================
sorry, please enter 12 digit numbers
case 3:
If you enter more than 12 digits, package only read 12 digits
barcode_number = 65623546325436473757847549875948
actual_barcode_number = get_check_digit(barcode_number)
output
=================
6562354632541
نحوه نصب
نصب پکیج whl check-digit-EAN13-0.2:
pip install check-digit-EAN13-0.2.whl
نصب پکیج tar.gz check-digit-EAN13-0.2:
pip install check-digit-EAN13-0.2.tar.gz