Skip to main content

Wrapper para pip que automatiza a instalação, remoção e gerenciamento de dependências em arquivos de requirements.

Project description

pipg - Wrapper para Pip

pipg é um wrapper para pip que facilita a instalação e remoção de pacotes Python, mantendo automaticamente arquivos de dependências organizados.

🚀 Funcionalidades

  • Instala um ou mais pacotes com pipg install <pacote1> <pacote2> ... [--group <prod|dev|test>].
  • Remove um ou mais pacotes com pipg uninstall <pacote1> <pacote2> ....
  • Atualiza automaticamente o arquivo de dependências correto (requirements.txt, requirements-dev.txt, requirements-test.txt).
  • Remove pacotes desinstalados de todos os arquivos de requirements.
  • Mensagens coloridas para melhor visualização dos status.

📚 Instalação

Para instalar o pipg:

pip install pipg

Ou, para instalar localmente:

pip install .

🛠 Uso

✅ Instalar um ou mais pacotes

pipg install fastapi uvicorn requests --group dev

Isso instalará os pacotes fastapi, uvicorn e requests e os registrará em requirements-dev.txt. Se --group não for especificado, os pacotes serão registrados em requirements.txt.

❌ Desinstalar um ou mais pacotes

pipg uninstall fastapi uvicorn requests

Isso removerá fastapi, uvicorn e requests do ambiente e também de todos os arquivos de requirements (requirements.txt, requirements-dev.txt, requirements-test.txt).

🏢 Estrutura do Projeto

pipg/
│── pipg/
│   │── __init__.py
│   │── cli.py
│   │── package_manager.py
│   │── requirements_manager.py
│   │── utils.py
│── setup.py
│── README.md
│── pyproject.toml

🤝 Contribuição

  1. Faça um fork do repositório.
  2. Crie uma branch para sua feature (git checkout -b minha-feature).
  3. Faça commit das suas alterações (git commit -m 'Adiciona nova feature').
  4. Faça push para a branch (git push origin minha-feature).
  5. Abra um Pull Request.

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

pipg-0.3.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

pipg-0.3.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pipg-0.3.0.tar.gz.

File metadata

  • Download URL: pipg-0.3.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for pipg-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5f8c87da635395f52d9f044adc4378bcb1ed281fd0020f8b5b7bf8dc80685d54
MD5 be069eaab1bd76e1045b32b60d93520f
BLAKE2b-256 b0159365e8a3408f84ff0dd53e8f18551cc87ca980da4d2dc9bd2f233742a2b0

See more details on using hashes here.

File details

Details for the file pipg-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: pipg-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.8

File hashes

Hashes for pipg-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f441645aa5318bcaf1962f1ec44f05164858ca37587574df50ed1dde667148a1
MD5 d9b814d224a79504633883e5de0cf3dc
BLAKE2b-256 82db5858ee6f7b8eff324756764f894528c506c34d78795fa74ffa465e475933

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