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
- Host: GitHub
- URL: https://github.com/jcmdsbr/cnpj-validtor
- Owner: jcmdsbr
- Created: 2021-03-28T22:41:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-03T18:06:56.000Z (about 4 years ago)
- Last Synced: 2025-01-27T07:30:10.844Z (4 months ago)
- Topics: cnpj-validator, python
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.