Skip to content

Instantly share code, notes, and snippets.

@danabauer
Last active March 17, 2021 14:25
Show Gist options
  • Select an option

  • Save danabauer/e9796c52eeacc03048d759f4c2610c77 to your computer and use it in GitHub Desktop.

Select an option

Save danabauer/e9796c52eeacc03048d759f4c2610c77 to your computer and use it in GitHub Desktop.
ways to structure python projects
https://coderwall.com/p/lt2kew/python-creating-your-project-structure
+ bin
- project
+ project
- main.py
+ lib
+ tests
http://as.ynchrono.us/2007/12/filesystem-structure-of-python-project_21.html
Project/
|-- bin/
| |-- project
|
|-- project/
| |-- test/
| | |-- __init__.py
| | |-- test_main.py
| |
| |-- __init__.py
| |-- main.py
|
|-- setup.py
|-- README
https://python-guide-pt-br.readthedocs.io/en/latest/writing/structure/
README.rst
LICENSE
setup.py
requirements.txt
sample/__init__.py
sample/core.py
sample/helpers.py
docs/conf.py
docs/index.rst
tests/test_basic.py
tests/test_advanced.py
https://learnpythonthehardway.org/book/ex46.html
skeleton/
NAME/
__init__.py
bin/
docs/
setup.py
tests/
NAME_tests.py
__init__.py
https://gehrcke.de/2014/02/distributing-a-python-command-line-application/
python-cmdline-bootstrap/
├── docs
├── test
├── bootstrap
│ ├── __init__.py
│ ├── __main__.py
│ ├── bootstrap.py
│ └── stuff.py
├── bootstrap-runner.py
├── LICENSE
├── MANIFEST.in
├── README.rst
└── setup.py
https://jeffknupp.com/blog/2013/08/16/open-sourcing-a-python-project-the-right-way/
|- LICENSE
|- README.md
|- TODO.md
|- docs
| |-- conf.py
| |-- generated
| |-- index.rst
| |-- installation.rst
| |-- modules.rst
| |-- quickstart.rst
| |-- sandman.rst
|- requirements.txt
|- sandman
| |-- __init__.py
| |-- exception.py
| |-- model.py
| |-- sandman.py
| |-- test
| |-- models.py
| |-- test_sandman.py
|- setup.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment