eoq3autobahnws - Websocket domain client and host using autobahn
A domain server makes a local domain accessible via a WS port.
A domain host connects to a remote domain using WS.
client and server are based on autobahn: https://autobahn.readthedocs.io/en/latest/index.html
Usage
Define serialization and timeouts
config = Config()
config.remoteCmdTxSerializer = "TXT" #or JSO
config.remoteCmdRxSerializers = ["TXT","JSO"] #or e.g. ["TXT"]
config.remoteFrmTxSerializer = "TXT" #or JSO
config.remoteFrmRxSerializer = "TXT" #or JSO
config.connectTimeout = 40
Host
Imports:
from eoq3autobahnws.autobahnwsdomainhost import AutobahnWsDomainHost
Create an SSL factory (optional):
def ServerSslFactory(sslFactoryArgs:dict):
return CreateSelfSignedServerSslContext("ssl/certificate.pem", "ssl/key.pem", "ILS-admin")
Creating a TCP host domain that provides acces to another domain "localDomain", e.g. DomainWithMdb:
server = AutobahnWsDomainHost(localDomain, True, '127.0.0.1', 5141, nWorkers=N_THREADS, config=config) #no ssh
server = AutobahnWsDomainHost(localDomain, True, '127.0.0.1', 5141, sslContextFactory=ServerSslFactory, nWorkers=N_THREADS, config=config) #with ssh
Client
Imports:
from eoq3autobahnws.autobahnwsdomainclient import AutobahnWsDomainClient
from eoq3autobahnws.util.ssl import CreateClientSslContextForSelfSignedServerCert
Create an SSL factory (optional):
def ClientSslFactory(domainFactoryArgs:dict):
return CreateClientSslContextForSelfSignedServerCert("ssl/certificate.pem")
Connecting to a remote domain:
domain = AutobahnWsDomainClient('127.0.0.1',5141) #no ssl
domain = AutobahnWsDomainClient('127.0.0.1',5141,sslContextFactory=ClientSslFactory) #with ssl
Examples
See
- pyeoq/Examples/Eoq3/BasicWebsocketServer.py and
- pyeoq/Examples/Eoq3/BasicWebsocketDomain.py
Documentation
For more information see EOQ3 documentation: https://eoq.gitlab.io/doc/eoq3/
Author
2024 Bjoern Annighoefer
Metadata
Release files for eoq3autobahnws 2.9.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| eoq3autobahnws-2.9.5.tar.gz | 9.9 kB | Without provenance | Details for eoq3autobahnws-2.9.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eoq3autobahnws-2.9.5-py3-none-any.whl | Python 3 | none | any | Details for eoq3autobahnws-2.9.5-py3-none-any.whl |
Total release size: 22.1 kB
Release files / eoq3autobahnws-2.9.5.tar.gz
| Download URL | eoq3autobahnws-2.9.5.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f228e0595adda9bbfda4eb4de0550dc8e49dc4b72f123d945f7a1c410fcb01ae
|
|
BLAKE2b-256 checksum How to use checksums |
d500de4d58a7a7f8384fdba3b506d06f341da27870abf7916a9ab2244868ccea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / eoq3autobahnws-2.9.5-py3-none-any.whl
| Download URL | eoq3autobahnws-2.9.5-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28dbcb7b14453219aeae509b5d42c238462ec3d7f00093d7a3617fb9445dc1c2
|
|
BLAKE2b-256 checksum How to use checksums |
f1ef3315188268527cda33d879317b911f4ab14465a7ac711248b046edb25893
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for eoq3autobahnws 2.9.5
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.