![]() |
Bridges-Python-3.0.2
3.0.2
Bridges(PythonAPI)
|
This is a class for handling calls to the BRIDGES server to transmit JSON to the server and subsequent visualization.
It is not intended for external use
Public Member Functions | |
| def | __init__ (self, key, username, assignment) |
| Connector object constructor. More... | |
| def | set_server (self, server) |
| Set the server based on a keyword for url. More... | |
| def | set_server_url (self, server_url) |
| def | get_server_url (self) |
| def | post (self, url, data) |
| def | prepare (self, url) |
Public Attributes | |
| key | |
| username | |
| assignment | |
| server_url | |
Static Public Attributes | |
| string | server_url_live = "http://bridges-cs.herokuapp.com" |
| string | server_type = "application" |
| string | server_url_clone = "http://bridges-clone.herokuapp.com" |
| string | server_url_local = "http://127.0.0.1:3000" |
| string | server_url_game = "http://bridges-games.herokuapp.com" |
| string | key = "" |
| string | username = "" |
| int | pattern_found = 0 |
| bool | debug = False |
| def bridges.connector.Connector.__init__ | ( | self, | |
| key, | |||
| username, | |||
| assignment | |||
| ) |
Connector object constructor.
| key | is the user_key |
| username | is students username |
| assignment | is the assignment number for the assignment |
| def bridges.connector.Connector.get_server_url | ( | self | ) |
| def bridges.connector.Connector.post | ( | self, | |
| url, | |||
| data | |||
| ) |
| def bridges.connector.Connector.prepare | ( | self, | |
| url | |||
| ) |
| def bridges.connector.Connector.set_server | ( | self, | |
| server | |||
| ) |
Set the server based on a keyword for url.
| server | is one of the three string keywords('live', 'clone', 'local') that is passed to change the server that the bridges visualization will be sent to |
| def bridges.connector.Connector.set_server_url | ( | self, | |
| server_url | |||
| ) |
| bridges.connector.Connector.assignment |
|
static |
|
static |
| bridges.connector.Connector.key |
|
static |
|
static |
| bridges.connector.Connector.server_url |
|
static |
|
static |
|
static |
|
static |
|
static |
| bridges.connector.Connector.username |
1.8.13