Python - Tipps und Tricks

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche

Tipps und Tricks zu Python.

A Programming Environment - The Pythonic Way...

  • An IDE, e.g. ipython :-)
  • SW installer: pip (easy_install)
  • "Virtual Environment"
  • Program documentation: PyDoc (plus separate doc generator?)
  • Test environment: Tox - generic virtualenv management and test command line tool
  • Fabric (für Aufsetzen der Arbeitsumgebung, Deployment etc.): http://fabric.readthedocs.org/
  • (Type validation? https://github.com/williame/obiwan )

To connect to PostgreSQL from Python:

Verschiedenes / Code-schnipsel: