Simple package to verify and generate NIF numbers in Portugal
Project description
NIF PT Verify and Create python package
This is a simple package to verify and create new NIF (Número Identificação Fiscal) in Portugal.
You can install the package using pip
pip install nifverifier
The solo contributor for this package is the geek, gentle, innocent and kind-hearted CharlieBrown
How to use this package:
from nifverifier import am_i_a_dead_ass_valid_nif, generate_dead_ass_valid_nif
invalid_nif = "123123123"
valid_nif = "216860180"
am_i_a_dead_ass_valid_nif(invalid_nif) # false
am_i_a_dead_ass_valid_nif(valid_nif) # true
# Lets generate a valid NIF
# Valid initials values are: "1, 2, 3, 5, 6, 8, 9"
generate_dead_ass_valid_nif(initial_value=1)
generate_dead_ass_valid_nif(initial_value=4) # Raise exception
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
nifverifier-0.0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for nifverifier-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec322aec38c65b8a982a510451dc9f4417505f2cd3e643f20c7775063f5581eb |
|
MD5 | 19b8e314aa315057f389ea0b0fc852cf |
|
BLAKE2b-256 | 2eb7183a6f4a648a202994092ed2049b84d90a91a7a50bf3c7140904a99ccbb1 |