manbearpig is a super-serial python application structure / layout example.
/{{ project }}
|-- bin
| -- runnable_something
|-- docs
| -- ??
|-- {{ project }}
| -- __init__.py
| -- something.py
| -- submodule
| -- __init__.py
|-- tests
| -- __init__.py
| -- context.py
| -- test_something.py
|-- Makefile
|-- LICENSE.txt
|-- README.md
|-- requirements-dev.txt
|-- requirements.txt
`-- setup.py
Find this runnable structure under {{ project }}.
Project executables go here 😬
Your reusable source code lives here.
Your tests live here 🔥
Handy shortcuts to get stuff done 😸 for example:
install:
pip install -r requirements.txt
install-dev:
pip install -r requirements-dev.txt
test:
py.test tests
You could then do: $ make test
to run your tests.
Lawyer up! Checkout choosealicense.com as a handy starting point.
You're reading one now. Hopefully I don't have to explain how useful they are ☕
All your dev requirements, try to version them when you can.
All your application requirements, again, try to version them when you can.
Handy tip: $ pip freeze > requirements.txt
Your setup file if you need one.