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.8.tar.gz
(16.2 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.8.tar.gz.
File metadata
- Download URL: gtoolkit_bridge-0.2.8.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db7b822e89da71aa82a19c2285c8fd4bfe2f3bbc59d80656b2d85b1ebe1b66ee
|
|
| MD5 |
b6bdae8647a16be5b1b6608191833d56
|
|
| BLAKE2b-256 |
124dec59ca225476afc65fa81533564de2b94e62736e0aaa545bc14b731177f3
|
File details
Details for the file gtoolkit_bridge-0.2.8-py3-none-any.whl.
File metadata
- Download URL: gtoolkit_bridge-0.2.8-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f813d0d9d1282ec806b1a06dc7595c9fc790a41392e43357d3272f81610bd95
|
|
| MD5 |
13cedf23efe69fc85883c2cb2b28e8b1
|
|
| BLAKE2b-256 |
348ac033132cd017ab9935055045e2b6c8e0490be24e6274db3999c6192e605f
|