Functions to validate National Metering Identifiers (NMIs)
Project description
NMI-Checksum
A library to validate National Metering Identifiers (NMIs)
The validation rules are as per the National Metering Identifier Procedure.
Usage
from nmicheck import nmi_checksum
checksum = nmi_checksum("QAAAVZZZZZ")
print(checksum) # 3
from nmicheck import checksum_valid
print(checksum_valid("QAAAVZZZZZ3")) # True
print(checksum_valid("QAAAVZZZZZ0")) # False
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nmicheck-0.1.0.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nmicheck-0.1.0.tar.gz.
File metadata
- Download URL: nmicheck-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a8054c05658e1cb9c74486c15e1f77af9c3da902e930c67d42b90306ba1874a
|
|
| MD5 |
d0f2e1b5fbdfcc9020157326cc6683a1
|
|
| BLAKE2b-256 |
0e7ef65f28398f3220e098bbff28b116a11786a91c5575f774e7830fcfb4b61c
|
File details
Details for the file nmicheck-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nmicheck-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0abb42d0e75c02aade4225e190836f5f35a2269a4fc4db888f2082e005dbf05
|
|
| MD5 |
df45229f6c607a53ce399e1e9a0ae78e
|
|
| BLAKE2b-256 |
1d389c88c3f037dcfe232f297ca418a0164a4ff86792e68edc5cef4cb1911aec
|