A collection of utilities for command-line interfaces (CLIs) in Python.
Project description
Utilities for CLI for Python Users 🐍 Utilidades para CLI para usuários Python (🇺🇸|🇧🇷)
Este repositório contém um conjunto de funções úteis para gerenciamento de terminal. Essas funções são projetadas para melhorar a experiência de desenvolvimento em Python, especialmente em projetos que envolvem manipulação de dados e análise. A documentação deste projeto está em português(🇧🇷) e inglês(🇺🇸).
🇺🇸 version
This repository contains a set of useful functions for terminal management. These functions are designed to enhance the development experience in Python, especially in projects involving data manipulation and analysis.
🚀 Description
The included functions are:
-
Beauty_terminal:
-
clean_terminal(): This function is responsible for clearing the terminal screen, using the appropriate command for the operating system in use. This helps keep the console clean and organized during script execution. -
text_separator(decorator="-", n_chars=81): This function generates a separator line that can be customized by the user. The user can specify the character to be repeated and the total number of characters in the line, allowing for a clear and organized visual presentation of console outputs.
-
-
Organize Files:
create_file_structure_data_analysis(): This function creates an organized directory structure to store data at different stages of processing. In addition to creating the necessary directories, it generates a text file that describes the created structure, facilitating the management and location of data in analysis projects.
🇧🇷 version
Este repositório contém um conjunto de funções úteis para gerenciamento de terminal. Essas funções são projetadas para melhorar a experiência de desenvolvimento em Python, especialmente em projetos que envolvem manipulação de dados e análise.
🚀 Descrição
As funções incluídas são:
-
Beauty_terminal:
-
clean_terminal(): Esta função é responsável por limpar a tela do terminal, utilizando o comando apropriado para o sistema operacional em uso. Isso ajuda a manter o console limpo e organizado durante a execução de scripts. -
text_separator(decorator="-", n_chars=81): Esta função gera uma linha de separação que pode ser personalizada pelo usuário. O usuário pode especificar o caractere a ser repetido e o número total de caracteres na linha, permitindo uma apresentação visual clara e organizada das saídas no console.
-
-
Organize Files:
create_file_structure_data_analysis(): Esta função cria uma estrutura de diretórios organizada para armazenar dados em diferentes estágios de processamento. Além de criar os diretórios necessários, ela gera um arquivo de texto que descreve a estrutura criada, facilitando o gerenciamento e a localização dos dados em projetos de análise.
📦 Instalação
pip install cli-intern
🖥️ Exemplo de uso
from cli_intern.beauty_terminal.clean_terminal import clean_terminal
from cli_intern.beauty_terminal.text_line_decorator import text_separator
from cli_intern.organize_files.create_file_structure_data_analysis import create_file_structure_data_analysis
clean_terminal()
print(text_separator())
create_file_structure_data_analysis()
📋 Prerequisites
- Python 3.0 ou superior
- pip
🔧 Project Structure
text
cli_utils/
├── beauty_terminal/
│ ├── __init__.py
│ └── clean_terminal.py
│ └── text_line_decorator.py
|
├── organize_files/
│ ├── __init__.py
│ └── create_file_structure_data_analysis.py
│
├── __init__.py
├── README.md
└── setup.py
🛠️ How to Download the Source Code
- Clone the repository:
git clone https://github.com/jonasaacampos/cli_utils - Navigate to the project directory:
cd package-template - Install the dependencies:
pip install -r requirements.txt
🤝 Contributions
Contributions are welcome! Feel free to open an issue or a pull request.
📄 License
This project is licensed under the MIT License. See the LICENSE file for more details.
Check List to publish PyPi
- Construir as distribuições:
python setup.py sdist bdist_wheel - Fazer o upload para o TestPyPI:
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* - Testar o pacote:
pip install -i https://test.pypi.org/simple/ cli_intern - Apagar as distribuições, verificar o versionamento no
setup.py - Construir as distribuições
- Verificar a documentação no
readme.md - Fazer o upload para o PyPi:
python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
📫 𝙷𝚘𝚠 𝚝𝚘 𝚛𝚎𝚊𝚌𝚑 𝚖𝚎:
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cli_intern-0.0.1.tar.gz.
File metadata
- Download URL: cli_intern-0.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c68234d378f36a07490094ae6a4611526999c35865a5d77ccf1234513ba0cf8b
|
|
| MD5 |
58b521b1f2cd37afe31d67b5260a8850
|
|
| BLAKE2b-256 |
22999e589a9d95dbd3a65171e255c2fe60349218108c6db94b96cf72de0b533e
|
File details
Details for the file cli_intern-0.0.1-py3-none-any.whl.
File metadata
- Download URL: cli_intern-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e055e1bedc0743edb2b69c492b994d64643747e50cb6e5f61062b40b414f686a
|
|
| MD5 |
587e9d547daadcda4cd5c68f03facec5
|
|
| BLAKE2b-256 |
a71ca3af227e7ee47ecbd68f894c958b3a077cc4655f847e62e857da97ddf856
|