Basic opinionated Python code technique guide. For lower level naming and structure, see https://github.com/amontalenti/elements-of-python-style
Install deps with pip
managed by virtualenv
, this decouples the VM from the runtime. Try not to target the latest VM release, this prevents your code from being trivially installable on existing Ubuntu and Centos systems. Use tox
and py.test
(see below) to confirm that decoupling.
Immutable, named lightweight composite containers for your data. Removes magic numbers from your code.