bsn-0.0.2
توضیحات
This package can be used to test whether a number is a bsn (Burger Service Number, Dutch Social Security Number), but it can also generate the numbers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bsn-0.0.2 |
| نام | bsn |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Marc Enthoven |
| ایمیل نویسنده | marc_enthoven@hotmail.com |
| آدرس صفحه اصلی | https://github.com/marcenthoven/bsn |
| آدرس اینترنتی | https://pypi.org/project/bsn/ |
| مجوز | - |
# bsn
Generate or validate bsn (burger service nummer, dutch social security number)
A bsn (burger service number, dutch social security number) is used in Netherlands to identify a person for governmental organisations. The numbers are subject to an algorithm.
## Verification algorithm
mod(sum(Position_of_digit * digit),11) = 0
whereas the first position should be considered as negative
## Example
Consider the following number: 319072356
```
(9 x 3) + (8 x 1) + (7 x 9) + (6 x 0) + (5 x 7) + (4 x 2) + (3 x 3) + (2 x 5) + (-1 x 6) = 154
154 mod 11 = 0
```
## Initiate the module and create instance
```
import bsn
a = bsn.bsn()
```
### Validate number
```
a.validate_bsn(number)
```
### Generate n numbers
```
a.generate_bsn(n)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
نحوه نصب
نصب پکیج whl bsn-0.0.2:
pip install bsn-0.0.2.whl
نصب پکیج tar.gz bsn-0.0.2:
pip install bsn-0.0.2.tar.gz