This simple project is an example repo for Python3 projects.
my_project
├── README.md
├── main.py
├── my_project
│ ├── __init__.py
│ ├── module_one.py
│ └── module_two.py
├── requirements.txt
└── tests
├── __init__.py
└── test_module_two.py
Clone the repo and then create a vitual environment. Install Packages using requirements.txt file.
# assuming virtualenv is activated and is of python3
pip install -r requirements.txt
Keep the business logic within my_project/my_project/ and import required functions/classes into main.py. main.py is used to run the file.
python main.py
Tests are bult using nose. To run them use nosetests.
/my_project (master)ᐅ nosetests tests
Note: This is not for production.(work in progress)