CMI Python Users Meeting, 16/11/2015
....
This is what people download
These are what you find on PyPI, e.g. scikit-learn
How code is organised
import csv
csv is a module.
A 'higher level' module.
sklearn is a package.
from sklearn import preprocessing
These are the raw source code.
In Python, every script is a module.
Just write them.
Modules are just scripts - anything in the global scope of the script is importable.
__init__.py
Its a directory (folder for the heathens) full of Python scripts (or modules) with...
A little more involved - see Python Foundations Packaging Guide
You need to write a setup.py file, and use setuptools.