Ferramentas e métodos úteis
Project description
TR0NZ0D Lib
What is?
TR0NZ0D Lib is a library created in python to facilitate the use of some tools. The project is still under development, improvements and new features will be added. The main language of the project is portuguese, translations will be added in the future.
Brief Documentation
Introduction
Installing the library can be done by running thepip install tr0nz0d
command on a terminal that has Python [3.8.x] installed.
Methods
tr0nz0d.tools
-
CPF
Tools to generate, format and validate a cpf.
-
cpf.gerar()
- Generates a mathematically valid cpf.
Returns- The plain cpf.
-
cpf.format(cpf: str)
- Formats the cpf with the divisions.
Returns- The formatted cpf.
-
cpf.gerar_formatado()
- Generates a mathematically valid cpf.
Returns- The formatted cpf.
-
cpf.validar()
- Validates the mathematical authenticity of the CPF.
Returns- True [valid] or False [invalid]
-
-
CNPJ
Tools to generate, format and validate a cnpj.
-
cnpj.gerar()
- Generates a mathematically valid cnpj.
Returns- The plain text.
-
cnpj.formatar(cnpj: str)
- Formats the cnpj with the divisions.
Returns- The formatted cnpj.
-
cnpj.gerar_formatado()
- Generates a mathematically valid cnpj.
Returns- The formatted cnpj.
-
cnpj.validar()
- Validates the mathematical authenticity of the cnpj.
Returns- True [valid] or False [invalid]
-
-
TEXT Tools to encapsulate and print text within a character set.
-
text.line_print(text: str, char_tl: str, char_md: str, char_tr: str, char_sides: str, char_bl: str, char_br: str)
- Encapsulates a single-line text within the specified characters and print it. -
text.text_print(text: str, char_tl: str, char_md: str, char_tr: str, char_sides: str, char_bl: str, char_br: str)
- Encapsulates multiline text within characters specified and print it.
-
tr0nz0d.security
-
CRIPTOGRAFIA Tools for encrypting and decrypting text.
-
criptografia.criptografar(text: str)
- Encrypts past text.
Returns- List containing the encrypted text and the key.
-
criptografia.descriptografar(text: bytes)
- Decrypts the text passed.
Returns- Decrypted literal text.
-
criptografia.descriptografar_com_chave(text: bytes, custom_key: bytes)
- Decrypts the text passed using the specific key.
Returns- Decrypted literal text.
-
criptografia.get_key()
- Returns the key used to encrypt the text.
Returns- Encryption key.
-
-
PSWD
Tools for creating complex passwords and codes.
pass.gerar(lenght: int)
- Creates a complex code of determined length.
Returns- Code created in literal text.
Change Log
0.0.8 (17/05/2021)
NEW DEPENDENCY
- cryptographyNEW TOOLS
- Tools for encryption management.- Tool for creating complex codes and passwords.
- Tool for encapsulating texts with special characters.
UPDATES
- Description file extension changed to .md- Changed the description of the library
- Updated code documentation
- Created a brief documentation in the description of the library (Official documentation still under development)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.