From local to online

Notebook

Public url

nbviewer.ipython.org

Library

Command line tool

  • Python independent from other programs (system, arcgis, qgis). (conda, virtualenv)
  • Install dependencies (pip, conda)
  • Install your own package (pip + setuptools)
  • Distribute (wheel + twine)
  • Exe? Dll? (nuitka, cython)

Old tools

  • PYTHONPATH → pip
  • sys.path → pip
  • easy_install → pip
  • distribute → setuptools
  • eggs → wheel
  • python(x,y) → conda
  • PATH → activate

conda

Python distribution, for windows people and for on the cluster.

pip

Install other python modules.

virtualenv

Create a python version that is independent from your system.

setuptools

Library that you use to turn a script into a package.

wheel

Format of your package when distributing to other python people

twine

Upload package to pypi

nuitka, cython

Create python windows executables, create so/dylib/dll.

GUI

Plugin to existing GUI

  • DeltaShell
  • Paraview
  • QGis

DeltaShell

QGis

github.com/rduivenvoorde/pdokservicesplugin

Paraview

www.paraview.org/Wiki/ParaView/Python_Scripting

Website

  • Python independent from other pythons (virtualenv)
  • Web framework (pyramid)
  • Templates (mako)
  • Packaging (fpm)
  • Deploy (vagrant)

Tutorial

  1. Go to http://packaging.python.org
  2. Download sample project
  3. Adapt and make a package