Skip to main content

Module for making and verifying KID numbers

Project description

KID util

Build Status

Development moved to PyPi package norwegian-numbers: GitHub PyPi

Simple utils to generate and verify KID numbers with either MOD10 or MOD11.


To install from PyPi as a module in your environment:

pip install kid-util

To install from source as a module in your environment:

python install

Code usage from installation

Example code usages after installation:

>>> import kid
>>> kid.make('1234')
>>> kid.make('1234', mode='MOD11')
>>> kid.verify('12344')
>>> kid.verify('12343', mode='MOD11')

Running from command line

Generating KID from integer string:

$ python -m kid -g 2345678
$ python -m kid -m mod11 -g 2345678

Verifying KID from string:

$ python -m kid -v 23456783
$ python -m kid -v 23456788
$ python -m kid -m mod11 -v 23456788
$ python -m kid -m mod11 -v 23456783

Testing from source

To run the tests:

python -m unittest discover

Or if you have tox:



The distribution was created by the following commands:

python sdist bdist_wheel
python -m twine upload dist/*

Project details

Download files

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

Files for kid-util, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size kid_util-1.0.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size kid-util-1.0.1.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page