Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93792083
bd_zeo_server.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 1, 13:18
Size
564 B
Mime Type
text/x-python
Expires
Tue, Dec 3, 13:18 (2 d)
Engine
blob
Format
Raw Data
Handle
22705532
Attached To
R3127 blackdynamite
bd_zeo_server.py
View Options
#!/usr/bin/env python
import
BlackDynamite
as
BD
# First we need to set the python headers and
# to import the blackdynamite modules
# Then you have to create a generic black dynamite parser
# and parse the system (including the connection parameters and credentials)
parser
=
BD
.
bdparser
.
BDParser
()
parser
.
register_params
(
group
=
"bd_zeo_server"
,
params
=
{
"spawn_server"
:
bool
},
defaults
=
{
"spawn_server"
:
True
},
help
=
{
"spawn_server"
:
"Start a server listening on a given port"
}
)
params
=
parser
.
parseBDParameters
()
base
=
BD
.
base
.
Base
(
**
params
)
Event Timeline
Log In to Comment