Skip to main content

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)

Metadata

Release files for gtoolkit_bridge 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gtoolkit_bridge 0.4.0
File Size Uploaded Provenance Actions
gtoolkit_bridge-0.4.0.tar.gz 16.5 kB Without provenance Details for gtoolkit_bridge-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gtoolkit_bridge 0.4.0
File Interpreter ABI Platform Actions
gtoolkit_bridge-0.4.0-py3-none-any.whl Python 3 none any Details for gtoolkit_bridge-0.4.0-py3-none-any.whl

Total release size: 42.8 kB

Release files / gtoolkit_bridge-0.4.0.tar.gz

Download URL gtoolkit_bridge-0.4.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b685238722520208ec1bb82a0c6cfbab84eb27ece948242cb6bc8678956b7e46
BLAKE2b-256 checksum
How to use checksums
dc426df1d6aff3767c2d008523a1d3c8bfdd01c72a6461532b4e01275c679296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release files / gtoolkit_bridge-0.4.0-py3-none-any.whl

Download URL gtoolkit_bridge-0.4.0-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4232227753ce5899fd13751d300f30a2746dca23dabe40cb399e3292df8d6148
BLAKE2b-256 checksum
How to use checksums
551fab2f3eb28691bae318116a3624481b3040f1f217ea62be742fa03dfd15c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Security for gtoolkit_bridge 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page