Skip to main content

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

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bsn-0.0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

bsn-0.0.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file bsn-0.0.2.tar.gz.

File metadata

  • Download URL: bsn-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for bsn-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7cf89af5e11abcc04c10fcfdc660eaf1d9c8fd3e9e0c74ebf643ed90ab16c0a1
MD5 b635329f5bf069516c954a90b9f31ee1
BLAKE2b-256 4584b08b3b4362fdefea21ff3a36f0a730dc3a4a6e45882aa229356aa3e1d858

See more details on using hashes here.

File details

Details for the file bsn-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: bsn-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for bsn-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00c9e87dc205c2f1fb491681215018dad99c1a35ddb845245ed229968149c96c
MD5 f2ad3173ded193e7e58d7459127f62cd
BLAKE2b-256 e7f09f480e5ad8ba066049c384fb37af8605d906200bfec2c021b7a8c10cd72b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page