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())

Metadata

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 Provenance Actions
ddecon-0.2.2.tar.gz 4.0 kB Without provenance Details for ddecon-0.2.2.tar.gz

Built distribution (wheel)

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

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

Security for ddecon 0.2.2

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