Skip to main content

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


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.3.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

gtoolkit_bridge-0.3.3-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file gtoolkit_bridge-0.3.3.tar.gz.

File metadata

  • Download URL: gtoolkit_bridge-0.3.3.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for gtoolkit_bridge-0.3.3.tar.gz
Algorithm Hash digest
SHA256 4f7a30c373a47ccf84ac8bcdf02ef183f0470bf8dbe919b6c59ce6fbda84d2cd
MD5 c5899cce977f7a83da4748aae8f60652
BLAKE2b-256 88a5865ff0cdf52f45598371f399a246b344a26fdae5f4a8550d00051863703a

See more details on using hashes here.

File details

Details for the file gtoolkit_bridge-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gtoolkit_bridge-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 089e962722ae676b470508028cfe66995a46aac717ab0b76f1db5f1c1527dcaa
MD5 b67736e51f5e99d26eb13ce9e0e3c6e6
BLAKE2b-256 30f32b8b08e4afad8d52ffb9adc74024ab734956cc74b1c4e57e731c449059da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page