-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stabilized sphinx, starting on populating docs
- Loading branch information
Showing
18 changed files
with
114 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,4 +70,6 @@ paradrop/*.snap | |
|
||
docs/_build | ||
docs/_static | ||
docs/_templates | ||
docs/_templates | ||
|
||
bin/*.pex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Build System | ||
==================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Developing for Paradrop | ||
==================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Installation | ||
==================================== | ||
|
||
Contents: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
quickstart | ||
build system | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
paradrop | ||
======== | ||
|
||
.. toctree:: | ||
:maxdepth: 4 | ||
|
||
paradrop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Overview | ||
==================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
paradrop.frontend package | ||
========================= | ||
|
||
Submodules | ||
---------- | ||
|
||
paradrop.frontend.stuff module | ||
------------------------------ | ||
|
||
.. automodule:: paradrop.frontend.stuff | ||
:members: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: paradrop.frontend | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
paradrop package | ||
================ | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
paradrop.frontend | ||
|
||
Submodules | ||
---------- | ||
|
||
paradrop.paradrop module | ||
------------------------ | ||
|
||
.. automodule:: paradrop.paradrop | ||
:members: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: paradrop | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Quick Start | ||
==================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# import stuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
''' | ||
Sample documentation | ||
''' | ||
|
||
def afunction(): | ||
"""This function does something... from inside frontend. | ||
:param name: The name to use. | ||
:type name: str. | ||
:param state: Current state to be in. | ||
:type state: bool. | ||
:returns: int -- the return code. | ||
:raises: AttributeError, KeyError | ||
""" | ||
print 'Just testing, thanks.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
from flask import Flask | ||
|
||
def run(): | ||
import frontend | ||
|
||
def main(): | ||
"""This function does something. | ||
:param name: The name to use. | ||
:type name: str. | ||
:param state: Current state to be in. | ||
:type state: bool. | ||
:returns: int -- the return code. | ||
:raises: AttributeError, KeyError | ||
""" | ||
app = Flask(__name__) | ||
|
||
@app.route('/') | ||
def hello_world(): | ||
return 'hello world!' | ||
|
||
#assign to eth0 dynamically (or run it ) | ||
#assign to eth0 dynamically (or run it on 80) | ||
# app.run('10.0.2.15', port = 7777) | ||
|
||
#running locally | ||
#TODO: determine if running locally or on snappy | ||
app.run(port = 7777) | ||
|
||
def main(): | ||
#I have a haunting feeling this is not the correct way of doing things | ||
print 'Starting Main' | ||
run() | ||
|
||
if __name__ == "__main__": | ||
main() | ||
|
||
''' | ||
To be clear, this works with pex. Install this package and run the following: | ||
sudo pex flask spack -o out.pex -e spack:main | ||
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
entry_points={ | ||
'console_scripts': [ | ||
'paradrop=paradrop.paradrop:main', | ||
'paradrop=paradrop:main', | ||
], | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters