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.4.tar.gz
(16.6 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.4.tar.gz.
File metadata
- Download URL: gtoolkit_bridge-0.3.4.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf27b927fd3f8c0e01a88308d0920c025b14598bef32ec30f7fd03970489cac6
|
|
| MD5 |
605ae616c063b18e7c4f3f174c90fe4d
|
|
| BLAKE2b-256 |
416f030a29255d74304dad3a9b6e0089e60ea33b6a955ad8df55385437de485b
|
File details
Details for the file gtoolkit_bridge-0.3.4-py3-none-any.whl.
File metadata
- Download URL: gtoolkit_bridge-0.3.4-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df27257fa91ab4e3c754d93e23e68c055e0946c25f48ad6a3b184a40e457b7b0
|
|
| MD5 |
d742dbe03ec4d7e8402796c39445fd94
|
|
| BLAKE2b-256 |
2acff3972a03e1a8b28aea5e7aa9969df93fd9eb7ec0b688cb9f4e07fac6bf6c
|