Skip to content

Instantly share code, notes, and snippets.

@AmaxJ
Created February 19, 2015 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmaxJ/a9dfdb2028455979fa5d to your computer and use it in GitHub Desktop.
Save AmaxJ/a9dfdb2028455979fa5d to your computer and use it in GitHub Desktop.
directory structure
-Libraries and webpages have unique directory structures.
Library:
<library name>
<library name>
-modules
__init__.py
#The main __init__.py imports all the things that the library requires.
#ex: https://github.com/kennethreitz/requests/blob/master/requests/__init__.py
WebPage:
<page name>
-bin
#contains scripts useful for development.
-src
#The actual source code
-libraries
#libraries that your program uses.
Libraries that your project requires should be listed in a ‘requirements.txt’ folder.
They may be installed via pip like so:
>>>pip install -r requirements.txt
everything listed in requirements gets installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment