Difference between revisions of "Python Resources"

From Simson Garfinkel
Jump to navigationJump to search
m
m
Line 68: Line 68:
===Printed Materials===
===Printed Materials===
* [http://diveintopython3.org/ Dive Into Python 3] (book)
* [http://diveintopython3.org/ Dive Into Python 3] (book)
==Building Web Applications==
You basically have two options:
* cgi module (slow)
* Some sort of [https://en.wikipedia.org/wiki/Web_Server_Gateway_Interface Web Server Gateway Interface] (WSGI)
WSGI options:
* Flask (can run on Apache with Passenger, but needs its own domain name)
Examples and resources:
* https://github.com/MichaelPereira/webhooks-demo-application
* https://mattcarrier.com/flask-dreamhost-setup/
* https://help.dreamhost.com/hc/en-us/articles/215769578-Passenger-overview


==Python Installation==
==Python Installation==

Revision as of 14:49, 24 September 2017

Numerical Analysis

  • numpy - numeric analysis in python (needed for matplotlib)
  • tabulate - create tables easily
  • jupyter notebook

Graphing, Graphics and Games

Graphing

Python Graphics (mostly with graphics.py)

Alternative:

Image Manipulation

Use Pillow, the Python2/3 fork of Python Image Library (PIL)

On Mac, install with:

   % sudo port install py27-Pillow py33-Pillow

Links:

Games

Python GUI Options

I need to write some programs that use GUI.

  • tkinter - built in
  • pyqt
  • wxwidgets
  • wikibooks has a page on Python Program/GUI Programming options
  • Uses FLTK, the Fast Light Toolkit

Resources for Tkinter

Python Training

I've seen these and highly recommend them:

Printed Materials

Building Web Applications

You basically have two options:

WSGI options:

  • Flask (can run on Apache with Passenger, but needs its own domain name)

Examples and resources:

Python Installation

If you are using a Mac, you almost certainly want to ditch Apple's python implementation and instead install your own from:

If you want everybody to be able to use your GUI, you probably want to write it in Tkinter (Python's Tcl/Tk bindings). If you want to actually enjoy what you are writing, you want to use wxpython.

On the Mac, you can install matplotlib with this command using MacPorts::

 % sudo port install py-matplotlib py-ipython