Skip to main content

Installation

pip install ddecon

Usage/Examples

sync

import os

from ddecon import ECON

if __name__ == "__main__":
    econ = ECON(
        os.getenv("econ_ip"), int(os.getenv("econ_port")), os.getenv("econ_password")
    )
    econ.connect()
    econ.message("Hello World")
    while True:
        message = econ.read()
        if message is None:
            continue
        print(message.decode()[:-3])

async

import asyncio
import os

from ddecon import AsyncECON


async def send_hello(econ):
    count = 0
    while True:
        count += 1
        await econ.message(f"Hello, world!, {count}")
        await asyncio.sleep(5)


async def main():
    econ = AsyncECON(
        os.getenv("econ_ip"), int(os.getenv("econ_port")), os.getenv("econ_password")
    )
    await econ.connect()
    asyncio.create_task(send_hello(econ))
    while True:
        message = await econ.read()
        if message is None:
            continue
        print(message.decode()[:-3])


asyncio.run(main())

Release files for ddecon 0.2.2

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

Source distribution (sdist)

Source distribution for ddecon 0.2.2
File Size Uploaded
ddecon-0.2.2.tar.gz 4.0 kB Details

Built distribution (wheel)

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

Total release size: 9.0 kB

Release files / ddecon-0.2.2.tar.gz

Download URL ddecon-0.2.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
490858f9061b966bccd271e92fbd6887c71c55e58d741daa7d86a1d28afbad64
BLAKE2b-256 checksum
How to use checksums
d172790bd14a79e98fd2a662597a789730fd3151361c8ef9eca1bc16032aaf4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / ddecon-0.2.2-py3-none-any.whl

Download URL ddecon-0.2.2-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f65fddf651638c71ec2a79334ee134f88041e68f045299321c796ac0b6091e84
BLAKE2b-256 checksum
How to use checksums
7d68f68fe7f879ab8690260335e39c7a91cf52de62b6410f24c9ef22da57aa15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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