Glamorous Toolkit Python Bridge
Project description
gtoolkit_bridge
Glamorous Toolkit Python Bridge
This library creates a server in Python that is accessible by Glamorous Toolkit and used to execute Python code and get results back as proxies or values.
Quick start
import gtoolkit_bridge as pb
args = pb.bridge_args()
pb.setup_bridge(args)
pb.run_bridge()
All in one
import gtoolkit_bridge as pb
pb.run_bridge_default()
Command line
$ python3 -m gtoolkit_bridge --port 9099 --pharo 0 --method msgpack --log
Output
With logging enabled (log=True).
PythonBridge starting
{'port': 9099, 'pharo': 0, 'method': 'msgpack', 'log': True}
HANDLER (MsgPackSocketPlatform): loop func
PythonBridge ready
PYTHON: Start consuming commands
HANDLER (MsgPackSocketPlatform): prim handle message
HANDLER (MsgPackSocketPlatform): loop func
HANDLER (MsgPackSocketPlatform): prim handle message
DESERIALISE (bridge): pb2r9p5j02wd68kmzj1jw6zshk2
HANDLER (MsgPackSocketPlatform): loop func
PYTHON: Executing command pb2r9p5j02wd68kmzj1jw6zshk2
PYTHON: bindings: {'pharoCommandId': 'pb2r9p5j02wd68kmzj1jw6zshk2'}
PYTHON: notify(None,'pb2r9p5j02wd68kmzj1jw6zshk2')
PYTHON: Notify pb2r9p5j02wd68kmzj1jw6zshk2
PYTHON: Finished command execution
HANDLER (MsgPackSocketPlatform): prim handle message
DESERIALISE (bridge): pb2r9p5iy4fmkbyermp1kgy58qf
HANDLER (MsgPackSocketPlatform): loop func
PYTHON: Executing command pb2r9p5iy4fmkbyermp1kgy58qf
PYTHON: bindings: {'pharoCommandId': 'pb2r9p5iy4fmkbyermp1kgy58qf'}
PYTHON: import random
notify(list(map(lambda x: random.randrange(99)+1, range(1,10))), 'pb2r9p5iy4fmkbyermp1kgy58qf')
PYTHON: Notify pb2r9p5iy4fmkbyermp1kgy58qf
PYTHON: Finished command execution
Info
feenk team (gt@feenk.com)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gtoolkit_bridge-0.2.0.tar.gz
(16.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gtoolkit_bridge-0.2.0.tar.gz.
File metadata
- Download URL: gtoolkit_bridge-0.2.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb553abf16c3a754c40679d7b2a9fc169769bfd32cbb72e2920fe96ee5fdc5cf
|
|
| MD5 |
525f370fa7b168c2e2866e2341d7dacc
|
|
| BLAKE2b-256 |
01e57a177874e0f142d150017e14e171ddfaf20a776777928de9eb04983dae55
|
File details
Details for the file gtoolkit_bridge-0.2.0-py3-none-any.whl.
File metadata
- Download URL: gtoolkit_bridge-0.2.0-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
111467f216f7e2b4b70f85b2d37022e22c47a4fc9fdc18c527458a1c08fc25b6
|
|
| MD5 |
826e4fae4c9ff96f04f5b64ba3381914
|
|
| BLAKE2b-256 |
a7d3845c1d18d5359397f4cde1680e916d9f25364abc165c17aa64ae45ea67b7
|