Python

Streamlined Python 3 development โ€” virtual environments, pip management, and linting.


Aliases

py

  • Description: Python 3 shorthand
  • Usage: py <script.py>
  • Example: py main.py
py main.py
# Hello, World!

venv

  • Description: Create a virtual environment in ./venv
  • Usage: venv
  • Example: venv
venv
# Created virtual env in ./venv

pyact

  • Description: Activate the virtual environment (Linux/Mac)
  • Usage: pyact
  • Example: pyact
pyact
# (venv) maruf@machine:~/project$

pi

  • Description: Install a pip package
  • Usage: pi <pkg>
  • Example: pi requests

pif

  • Description: Freeze requirements to requirements.txt
  • Usage: pif
  • Example: pif
pif
# Saved: requests==2.31.0
#        fastapi==0.110.0

pir

  • Description: Install all packages from requirements.txt
  • Usage: pir
  • Example: pir

pylint

  • Description: Run the ruff linter on current directory
  • Usage: pylint
  • Example: pylint
pylint
# All checks passed. โœ“

-- Part of the Python module of Aliaskit --

โญ Star Aliaskit on GitHub ยท ๐Ÿ“– Back to Manual