An open API service indexing awesome lists of open source software.

https://github.com/jcmdsbr/cnpj-validtor

Basic learning concepts in python applied in CNPJ algorithmBasic learning concepts in python applied in CNPJ algorithm
https://github.com/jcmdsbr/cnpj-validtor

cnpj-validator python

Last synced: about 2 months ago
JSON representation

Basic learning concepts in python applied in CNPJ algorithmBasic learning concepts in python applied in CNPJ algorithm

Awesome Lists containing this project

README

        

# The CNPJ Validator :sunglasses:

Basic learning concepts in python applied in CNPJ algorithm

## Give a Star! :star:
If you liked the project, please give a star ;)

## You need some of the fallowing tools :exclamation:

- Visual Studio Code or PyCharm
- Python 2+

## Description :books:

- Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. [Redirect to official documentation](https://docs.python.org/3/tutorial/index.html)

### CNPJ Algorithm :bulb:

The CNPJ is composed of fourteen digits, divided into three blocks:

- the first, which represents the registration number itself;
- the second, located after the bar, which represents a unique code for the head office or branch;
- the third, represented by the two values called check digits (DV).
- The check digits (DV) are created from the first twelve. The calculation is done in two steps using the division module 11.