This package helps you use gremlinpython,
when you can't use asyncio.
Problem
In some settings, e.g. an eventlet
web server with monkey patching, you may run into errors if you try to run code
that relies on Python's asyncio framework.
(Demonstration here.)
If you want to use gremlinpython in such a setting, then you need an
alternative to the built-in AiohttpTransport class.
Solution
This package provides the WebsocketClientTransport class. It relies on the popular
websocket-client package,
which runs without asyncio.
Usage
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
from wsc_grempy_transport.transport import websocket_client_transport_factory
remote = DriverRemoteConnection(
'ws://localhost:8182/gremlin',
transport_factory=websocket_client_transport_factory)
Development
The WebsocketClientTransport class is very rudimentary. It is essentially
just a wrapper for the websocket.WebSocket class, and could probably benefit
from some error checking to make it more robust.
Contributions are welcome!
Release files for wsc-grempy-transport 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wsc-grempy-transport-0.1.0.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wsc_grempy_transport-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / wsc-grempy-transport-0.1.0.tar.gz
| Download URL | wsc-grempy-transport-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be32e2e98973c25392498a61f519ec49d581bdaa9e448abd1b2f975d30f0ad58
|
|
BLAKE2b-256 checksum How to use checksums |
cdb040edd4d8f7baf89a86645ddbe40ab71dc13cbc7aac80cb147c76af75cda0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.3
|
Release files / wsc_grempy_transport-0.1.0-py3-none-any.whl
| Download URL | wsc_grempy_transport-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c24d1c0d164057935e5fe1dc8a74bc8c0cf937dac2cd5528d612b00d416a0b1
|
|
BLAKE2b-256 checksum How to use checksums |
69c79616d42a557de84acfeefd9963677f2c3681c6725356fde23a9a1ab076aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.3
|