pyMogwai API Documentation
core
mogwaigraph
get_modern()
create the modern graph see https://tinkerpop.apache.org/docs/current/tutorials/getting-started/
Source code in mogwai/core/mogwaigraph.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
|
steps
base_steps
branch_steps
filter_steps
map_steps
modulation_steps
traversal
AnonymousTraversal
Bases: Traversal
specialized Traversal
Source code in mogwai/core/traversal.py
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 |
|
decorators
decorators
mogwai_cmd
Created on 2024-08-15
@author: wf
MogwaiCmd
Bases: WebserverCmd
command line handling for nicesprinkler
Source code in mogwai/mogwai_cmd.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
__init__()
constructor
Source code in mogwai/mogwai_cmd.py
20 21 22 23 24 25 |
|
getArgParser(description, version_msg)
override the default argparser call
Source code in mogwai/mogwai_cmd.py
27 28 29 30 31 32 33 |
|
main(argv=None)
main call
Source code in mogwai/mogwai_cmd.py
36 37 38 39 40 41 42 |
|
version
Created on 2024-08-15
@author: wf
Version
dataclass
Bases: object
Version handling for pyMogwai
Source code in mogwai/version.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
web
server
Created on 2024-08-15
@author: wf
MogwaiSolution
Bases: InputWebSolution
the Mogwai solution
Source code in mogwai/web/server.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
|
__init__(webserver, client)
Initialize the solution
Parameters:
Name | Type | Description | Default |
---|---|---|---|
webserver |
MogwaiWebServer
|
The webserver instance associated with this context. |
required |
client |
Client
|
The client instance this context is associated with. |
required |
Source code in mogwai/web/server.py
81 82 83 84 85 86 87 88 89 90 |
|
handle_upload(e)
Handle file upload
Source code in mogwai/web/server.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
|
home()
async
Provide the main content page
Source code in mogwai/web/server.py
110 111 112 |
|
login_ui()
async
login ui
Source code in mogwai/web/server.py
104 105 106 107 108 |
|
parse_file()
async
File parsing page
Source code in mogwai/web/server.py
114 115 116 117 118 119 120 121 |
|
query_graph()
async
Graph querying page
Source code in mogwai/web/server.py
123 124 125 126 127 128 129 130 131 132 133 |
|
run_query(query)
Run a Gremlin query on the graph
Source code in mogwai/web/server.py
157 158 159 160 161 162 163 164 165 166 167 168 169 |
|
setup_menu(detailed=True)
setup the menu
Source code in mogwai/web/server.py
92 93 94 95 96 97 98 99 100 101 102 |
|
MogwaiWebServer
Bases: InputWebserver
Mogwai WebServer
Source code in mogwai/web/server.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
__init__()
Constructs all the necessary attributes for the WebServer object.
Source code in mogwai/web/server.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
authenticated()
Check if the user is authenticated. Returns: True if the user is authenticated, False otherwise.
Source code in mogwai/web/server.py
68 69 70 71 72 73 74 |
|