-
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.
- Loading branch information
Showing
14 changed files
with
181 additions
and
69 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Internal Documentation | ||
====================== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
paradrop.backend | ||
paradrop.frontend | ||
|
||
Submodules | ||
---------- | ||
|
||
paradrop.paradrop module | ||
------------------------ | ||
|
||
.. automodule:: paradrop.paradrop | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: paradrop | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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,22 @@ | ||
paradrop.backend package | ||
======================== | ||
|
||
Submodules | ||
---------- | ||
|
||
paradrop.backend.connection module | ||
---------------------------------- | ||
|
||
.. automodule:: paradrop.backend.connection | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: paradrop.backend | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
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
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 was deleted.
Oops, something went wrong.
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 +1,2 @@ | ||
from .paradrop import main | ||
|
||
from .paradrop import 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
''' | ||
Testing package documetation | ||
''' |
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 @@ | ||
|
||
class BackendConnection: | ||
def __init__(self): | ||
''' | ||
More docs testing | ||
''' | ||
pass |
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 +1 @@ | ||
# import stuff | ||
# 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
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,39 @@ | ||
from flask import Flask | ||
''' | ||
Core module. Contains the entry point into Paradrop and establishes all other modules. | ||
Does not implement any behavior itself. | ||
''' | ||
|
||
from flask import Flask | ||
import frontend | ||
|
||
|
||
def main(): | ||
"""This function does something. | ||
""" | ||
This function does something. Right now what its doing is demonstrating | ||
a docstring with sphinxy additions. | ||
:param name: The name to use. | ||
:type name: str. | ||
:param state: Current state to be in. | ||
:type state: bool. | ||
:returns: int -- the return code. | ||
: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 on 80) | ||
# 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) | ||
# running locally | ||
# TODO: determine if running locally or on snappy | ||
app.run(port=7777) | ||
|
||
# Just playing with anaconda autocomplete | ||
frontend.stuff.afunction() | ||
|
||
if __name__ == "__main__": | ||
main() |