Skip to content

Latest commit

Β 

History

History
48 lines (31 loc) Β· 1.54 KB

File metadata and controls

48 lines (31 loc) Β· 1.54 KB

🐍 Python

DevKit includes helpers to manage Python virtual environments and dependencies with ease.
Easily create, activate, and maintain your environment β€” plus automate requirements updates.

πŸ“‘ Table of Contents


🐍 Virtual Environment Commands

  • python-environment-create β€” Creates a new ./venv and activates it.
  • python-environment-activate β€” Activates the ./venv if available.
  • python-environment-is-active β€” Checks if the current environment is active.
  • python-environment-delete β€” Deletes the ./venv.
  • python-environment-setup β€” Deletes, recreates, activates ./venv, and installs dependencies.

🐚 Python Shell

  • python-shell [env] β€” Activates environment, sets Django settings, and opens the Django shell.
    (Supports local, dev, prod, test)

πŸ“¦ Pip Dependency Management

  • pip-install [--main|--test] β€” Installs dependencies from requirements.txt and/or requirements-test.txt.
  • pip-update [--main|--test] β€” Updates installed packages and regenerates the pinned requirements files.

🧩 Python Aliases

  • python β€” Points to python3.
  • pip β€” Points to pip3.

πŸ’‘ Tip:
Use python-environment-setup for a full clean start:
fresh environment + dependencies installed.