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.0.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.0.tar.gz.
File metadata
- Download URL: gtoolkit_bridge-0.3.0.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 |
1ddf1fb5fe47335d556bd5e3672202c3fcfad82add30625417c0faf5588a7312
|
|
| MD5 |
4dc47ed9ed5a3b0d0b8a895f16c34d8b
|
|
| BLAKE2b-256 |
80b6eeb647c90d23e48d7dbf531c21cabdee7cf64f0ccce8242cd66fa1b4e775
|
File details
Details for the file gtoolkit_bridge-0.3.0-py3-none-any.whl.
File metadata
- Download URL: gtoolkit_bridge-0.3.0-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 |
2aa0f71bcb44ad73866b98c9d193dfebdb377013868d067eefa87ca04f26b27f
|
|
| MD5 |
827227346797adb9f8cd6a15cde8cf2a
|
|
| BLAKE2b-256 |
7fe45c84ca05fa42adc6e04294d3fb9c30c8ce0953ab271905db0d527fa4e24a
|