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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file nifverifier-0.0.1.tar.gz.

File metadata

  • Download URL: nifverifier-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for nifverifier-0.0.1.tar.gz
Algorithm Hash digest
SHA256 024c0d56919a9b7b9b3c84bd92155a3ce41f054a24b1aa7242fb29f433030568
MD5 b7e99245791212517faa7c0b85fa540e
BLAKE2b-256 f1d0cfbe4c4ab11b12ac0ddd957f66815c4478f4cd46aeb5532c502ee7b6eb37

See more details on using hashes here.

File details

Details for the file nifverifier-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: nifverifier-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for nifverifier-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec322aec38c65b8a982a510451dc9f4417505f2cd3e643f20c7775063f5581eb
MD5 19b8e314aa315057f389ea0b0fc852cf
BLAKE2b-256 2eb7183a6f4a648a202994092ed2049b84d90a91a7a50bf3c7140904a99ccbb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page