Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80634396
__init__.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, Sep 1, 19:17
Size
655 B
Mime Type
text/x-python
Expires
Tue, Sep 3, 19:17 (2 d)
Engine
blob
Format
Raw Data
Handle
20412038
Attached To
R11599 sausage-binary
__init__.py
View Options
from
sys
import
version_info
from
sausage.readconf
import
ReadConf
from
sausage.appargs
import
AppArgs
from
sausage.esclient
import
ESClient
from
sausage.display
import
Display
from
sausage.debug
import
Debug
from
sausage.logging
import
setup_logging
AppArgs
()
@Debug
(
timer
=
AppArgs
.
verbose
)
@Debug
(
prof
=
AppArgs
.
verbose
)
def
main
():
assert
version_info
>=
(
3
,
8
)
ReadConf
()
logger
=
setup_logging
(
ReadConf
.
debug
,
AppArgs
.
verbose
)
logger
.
debug
(
"START"
)
client
=
ESClient
()
client
.
set_result
()
display
=
Display
(
client
.
result
,
client
.
total
)
display
.
get_motd
(
carbon
=
AppArgs
.
response
[
"carbon"
])
logger
.
debug
(
"END"
)
Event Timeline
Log In to Comment