Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adham Hashibon
force-bdss
Commits
ed97fdcf
Commit
ed97fdcf
authored
7 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Preparation for release 0.1.0
parent
dddde7bf
No related branches found
No related tags found
1 merge request
!104
Release 0.1.0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGES.rst
+7
-0
7 additions, 0 deletions
CHANGES.rst
README.rst
+3
-2
3 additions, 2 deletions
README.rst
setup.py
+1
-1
1 addition, 1 deletion
setup.py
utils/zmq_ui_server.py
+0
-44
0 additions, 44 deletions
utils/zmq_ui_server.py
with
11 additions
and
47 deletions
CHANGES.rst
0 → 100644
+
7
−
0
View file @
ed97fdcf
FORCE BDSS Changelog
--------------------
Release 0.1.0
-------------
- Initial release. Implements basic functionality of the BDSS and its plugin system.
This diff is collapsed.
Click to expand it.
README.rst
+
3
−
2
View file @
ed97fdcf
FORCE BDSS
FORCE BDSS
----------
----------
This repository contains the implementation of the Business Decision System. It is implemented
This repository contains the implementation of the Business Decision System.
under the FORCE project (Horizon 2020/NMBP-23-2016/721027).
It is implemented under the FORCE project (Horizon 2020/NMBP-23-2016/721027).
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
ed97fdcf
import
os
import
os
from
setuptools
import
setup
,
find_packages
from
setuptools
import
setup
,
find_packages
VERSION
=
"
0.1.0
.dev2
"
VERSION
=
"
0.1.0
"
# Read description
# Read description
...
...
This diff is collapsed.
Click to expand it.
utils/zmq_ui_server.py
deleted
100644 → 0
+
0
−
44
View file @
dddde7bf
import
zmq
# Socket to talk to server
context
=
zmq
.
Context
()
sub_socket
=
context
.
socket
(
zmq
.
SUB
)
sub_socket
.
bind
(
"
tcp://*:12345
"
)
sub_socket
.
setsockopt
(
zmq
.
SUBSCRIBE
,
""
.
encode
(
"
utf-8
"
))
sub_socket
.
setsockopt
(
zmq
.
LINGER
,
0
)
sync_socket
=
context
.
socket
(
zmq
.
REP
)
sync_socket
.
setsockopt
(
zmq
.
LINGER
,
0
)
sync_socket
.
bind
(
"
tcp://*:12346
"
)
poller
=
zmq
.
Poller
()
poller
.
register
(
sub_socket
)
poller
.
register
(
sync_socket
)
WAITING
=
0
RECEIVING
=
1
state
=
WAITING
while
True
:
events
=
dict
(
poller
.
poll
())
if
sync_socket
in
events
:
data
=
sync_socket
.
recv_string
()
print
(
"
received
"
,
data
)
if
data
.
startswith
(
"
HELLO
\n
"
):
sync_socket
.
send_string
(
data
)
state
=
RECEIVING
elif
data
.
startswith
(
"
GOODBYE
\n
"
):
sync_socket
.
send_string
(
data
)
state
=
WAITING
else
:
print
(
"
unknown request
"
,
data
)
if
sub_socket
in
events
:
if
state
==
RECEIVING
:
string
=
sub_socket
.
recv_string
()
split_data
=
string
.
split
(
"
\n
"
)
print
(
split_data
)
else
:
print
(
"
data while waiting. discarding
"
)
string
=
sub_socket
.
recv_string
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment