No project description provided
Project description
This package is python extension module for rust crate ouch_connect_nonblocking
Installation
micromamba create --name ouch_pypi_env --yes python=3.10
micromamba run --name ouch_pypi_env pip install --index-url https://test.pypi.org/simple/ ouch-connect==5.0.1rc1
micromamba run --name ouch_pypi_env pip install markdown-code-runner
micromamba run --name ouch_pypi_env markdown-code-runner ./bindings/python/readme.md
Usage
import logging
from time import sleep
from ouch_connect import (
CltAuto,
SvcAuto,
LoggerCallback,
)
logging.basicConfig(format="%(levelname)s %(asctime)-15s %(threadName)s %(name)s %(filename)s:%(lineno)d %(message)s")
logging.getLogger().setLevel(logging.INFO)
log = logging.getLogger(__name__)
callback = LoggerCallback(logging.NOTSET)
addr = "127.0.0.1:8081"
usr = "dummy"
pwd = "dummy"
session = ""
sequence = 0
clt_max_hbeat_interval = 2.5
svc_max_hbeat_interval = 2.5
max_connections = 1
connect_timeout = 1.0
io_timeout = 0.1
with (
SvcAuto(
addr,
callback,
usr,
pwd,
session,
clt_max_hbeat_interval,
svc_max_hbeat_interval,
max_connections,
io_timeout,
name="svc-ouch",
) as svc,
CltAuto(
addr,
callback,
usr,
pwd,
session,
sequence,
clt_max_hbeat_interval,
svc_max_hbeat_interval,
connect_timeout,
io_timeout,
name="clt-ouch",
) as clt,
):
assert clt.is_connected() and svc.is_connected()
log.info(f"svc: {svc}")
log.info(f"clt: {clt}")
clt.send({"Dbg": {"text": "Hello from Clt"}})
svc.send({"Dbg": {"text": "Hello from Svc"}})
sleep(0.5)
log.info("********** awaiting receipt of Dbg messages **********")
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 Distributions
Built Distributions
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 ouch_connect-5.0.1rc1-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: ouch_connect-5.0.1rc1-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 677.0 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c98237d75340135962db4d4310c7cecc3323828d07565bd818d72d95a157b4d
|
|
| MD5 |
cb8787bca4ee37d98a561b7a327fb2ad
|
|
| BLAKE2b-256 |
8b32eae14e7ef450e91fad9f4daf7d6fdc45a99634ddffbc83d222441201be1b
|
File details
Details for the file ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2409d4f236205f5862c2eb715fe3bb754ff8f26239f943a3fc5c54a1bc81f5fb
|
|
| MD5 |
b1eee661cdfb9dd952b48daea1da72cd
|
|
| BLAKE2b-256 |
afc944ddb7ac34bc67b32c85bbce9f55d04d4b6b4dc04e68dc7fae28359c2e4e
|
File details
Details for the file ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2140f791317187a9684cc83aa2a9cd5f06ae83a7dba1612b1fb7aab54577a8f5
|
|
| MD5 |
414b0d4fc33790d4f7c436a407794016
|
|
| BLAKE2b-256 |
2daa23cc72bc5364cfba3f15d964493ac12c9d5eba976788b8a4f0b94f26955a
|
File details
Details for the file ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72e60517b17dea5cda31c93ad3beaa59f5984c6608cdf9c5f91ed7ba17986fb6
|
|
| MD5 |
585e45d777ae5f8e35c83b6b16615829
|
|
| BLAKE2b-256 |
5e1d1debd5486f30f39a357e42b821887c97cf073587432d630f46ee35692aa7
|
File details
Details for the file ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d312ef662cb5ded8812041bc3c5fea520a5c8bb35dc24006bd4bd1d16313efd
|
|
| MD5 |
d7f759ae80d5184db1ca5b2277aa37ce
|
|
| BLAKE2b-256 |
af944e3fb3dfc27a51baeec071c1e1771b060c1643cc65164ad26d88819a419a
|
File details
Details for the file ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: ouch_connect-5.0.1rc1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfdc6de8940d80d503e7f5ba58d660b16009675db41dd2871f0a0a811d7f825b
|
|
| MD5 |
601b9285a8c0708dbf364a7ad3244a9d
|
|
| BLAKE2b-256 |
5c67c7465f1d6be7245ea3b9479e2c2664819d67407bac9298f16abba43b8024
|
File details
Details for the file ouch_connect-5.0.1rc1-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: ouch_connect-5.0.1rc1-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 876.8 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be7fb6bd9ebdcf2c9addbf19b1961cf7d0b0b8a93cd12da5052378bb35dca363
|
|
| MD5 |
f6e261d9feb5d4d69239649c65450217
|
|
| BLAKE2b-256 |
a36ed086ef51b28effe12e2091ce31f441c2fd85fcc261e4bb23b823870a43c0
|
File details
Details for the file ouch_connect-5.0.1rc1-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: ouch_connect-5.0.1rc1-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 875.1 kB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61a8d383eb8b6692e15c948108c91f66aae50be3a33034a4b37a7765bf19c7da
|
|
| MD5 |
d3f5d5b5b97f50e66ec5bc46a65af96a
|
|
| BLAKE2b-256 |
f6995d892dc533ee52ad29d6238210dc7d992116fca7e78b4159d878745f17a2
|