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.3.2.tar.gz
(16.5 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.3.2.tar.gz.
File metadata
- Download URL: gtoolkit_bridge-0.3.2.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a710da8822adaf6fbd26ebf47c0ee750306bcf5fc3f109f45c3500b69b3c31c
|
|
| MD5 |
b28809f1c9c6434b615907d4d3828c35
|
|
| BLAKE2b-256 |
e3358fec67a221c335eac3d42f6d380be8a109750da5034d1516bb37a1bf2fee
|
File details
Details for the file gtoolkit_bridge-0.3.2-py3-none-any.whl.
File metadata
- Download URL: gtoolkit_bridge-0.3.2-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b863d1b75d245ff29dc2da7ee0d8851a230bfa93e5a95e7f36efbb82faa43e
|
|
| MD5 |
e8cc3a63d743c01407c02af3a86f8aef
|
|
| BLAKE2b-256 |
89b46033ad2f1de02f026ed8186db9c27babc8cc77b6adfa100791db491e0ec9
|