Some Python Modules/Packages

Table Of Contents

NumPy

NumPy is the fundamental package for scientific computing with Python. NumPy Home

apt-get install python-numpy
apt-get install python3-numpy

Pygame

PySDL2 is a slim wrapper around the SDL2* libraries and can be used without further ado using Python and a binary distribution of the SDL2 libraries. Pygame Getting Started | Pygame Wiki | Pygame Home

*SDL2 (Simple DirectMedia Layer) is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games.

sudo apt-get install python-pygame
python -m pygame.examples.aliens

Note: Depending on the Linux distro, Pygame may already be installed.

Pyplot

matplotlib.org
Pyplot Tutorial

apt-get install python-matplotlib
apt-get install python3-matplotlib

Pytest

The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.

Pytest (Home)
Pytest (documentation, installation, ...)

unittest vs pytest

apt-get update
apt-get install python-pytest
apt-get install python-pytest
pytest --version
pytest-3 --version

Pillow

Pillow the friendly PIL fork. (PIL (Python Imaging Library) is a discontinued project. Do not use it.)

Pillow Home

Bottle

Bottle is a fast, simple and lightweight WSGI micro web-framework for Python.

Bottle (home)
Bottle (Wikipedia)