Skip to main content

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=4) # Raise exception

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 nifverifier, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size nifverifier-0.0.1-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size nifverifier-0.0.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page