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=1)
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.

Source Distribution

nifverifier-0.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

nifverifier-0.0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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