Skip to content

Latest commit

 

History

History
77 lines (48 loc) · 1.66 KB

Python.md

File metadata and controls

77 lines (48 loc) · 1.66 KB
tags aliases cssclass type status
🖥️
language
🟧

[[Python]]

Python is the most powerful language you can still read.      -Paul Dubois


Environment & Workflow

  • [[pyenv]] - Manage python environments
  • [[virtualenv|venv]]

Pip Dependency Installation

Installing pip dependencies from setup.py files or from requirements.txt files:

# Ran in root directory where setup.py is located
pip install -e .

# For install from requirements
pip install -r requirements.txt

Create requirements.txt from current python environment:

pip freeze > requirements.txt

Pip Dependency Uninstallation

Refer to StackOverflow Post for more information on packages that are installed via VCS or from github/gitlab which have a @.

# Removes all pip packages from python environment
pip freeze | xargs pip uninstall -y

Functions

Input Parameters

Libraries

Web Dev

  • [[Flask]] - Used for backend REST API dev
  • [[gunicorn]] - WSGI HTTP Server for UNIX

Data Analysis

  • [[pandas]] - Powerful data structures for data analysis, time series, and statistics.

Testing

  • [[pytest]] - Run unit tests
  • [[tox]] - Runs tests with multiple python versions (3.7, 3.8, 3.9, etc)
  • [[logging]] - Logs info related to warnings, debug, info, & exceptions

🔗 Links to this page: [[Programming Languages]]