Skip to main content

Build Status PyPI - Downloads Coverage Status Codacy Badge

pyeasysocket

Python TCP and UDP sockets made easy.

install

pip install pyeasysocket

quick start

Create a TCPReceiver:

from pyeasysocket.udp import UDPReceiver
from pyeasysocket.tcp import TCPReceiver

receiver_udp = UDPReceiver('localhost', 8001)
receiver = TCPReceiver('localhost', 8000)
try:
    # run background thread for receive
    receiver.start()
    # wait for data
    received_data = receiver.data
finally:
    receiver.join() # closes the background thread

Or use the advantage of a with statement with the guarantee that the connection will be closed.

import time
from pyeasysocket.tcp import TCPReceiver, TCPClient

client = TCPClient('localhost', 8000)
with TCPReceiver('localhost', 8000) as receiver:
    client.send('test')
    time.sleep(0.2) # only for timing purpose
    received_data = receiver.data # test

issue tracker

https://github.com/SlashGordon/pyeasysocket/issuese

Metadata

Release files for pyeasysocket 1.0.0

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

Built distribution (wheel)

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

Release files / pyeasysocket-1.0.0-py3-none-any.whl

Download URL pyeasysocket-1.0.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b868bb1112b9c6cc944165e139c0053f94a0ff8c3b40c7d8878bfd4c6cf4a2d9
BLAKE2b-256 checksum
How to use checksums
172fd64ebc1dc98bada82d6eb3a63cff91b5da3b5962d3b237ae02e9c854fde9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.7

Security for pyeasysocket 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

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