Skip to main content

networkinglib

Python Networking Module

How to use

TCP Client

Opening socket and connecting to server

from networkinglib import tcp
socket = tcp.connect('127.0.0.1', 7777)
if not socket: print("Could not connect!")

Sending packet

socket.send("Hello Server!")

Receiving Packets

print(socket.receive())

Closing connection

socket.close()

UDP Client

Opening socket

from networkinglib import udp
socket = udp.open()
if not socket: print("An unexpected error occured!")

Sending packet

socket.send("Hello Server!", "127.0.0.1", 7777)
# or
socket.send("Hello Server!", "127.0.0.1:7777")

Receiving Packets

msg, source_address, source_port = socket.receive()
print('Received:\n', msg, 'From:\n', source_address + ':' + str(source_port))

Closing connection

socket.close()

Metadata

Release files for networkinglib 0.2.7

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

Source distribution (sdist)

Source distribution for networkinglib 0.2.7
File Size Uploaded Provenance Actions
networkinglib-0.2.7.tar.gz 2.8 kB Without provenance Details for networkinglib-0.2.7.tar.gz

Built distribution (wheel)

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

Total release size: 6.0 kB

Release files / networkinglib-0.2.7.tar.gz

Download URL networkinglib-0.2.7.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
20d0b654a7d5e6f6cecb4e4d0134859d3b326d1e5cb5fa0472b6f6d748eb832c
BLAKE2b-256 checksum
How to use checksums
299ed4562ffe938ca94c98a90ff74f163223d3dc1d02e73cbc139bb150f1bbf5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / networkinglib-0.2.7-py3-none-any.whl

Download URL networkinglib-0.2.7-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c03f6ab3ed2e6635a7c72d9909405615a3f30520c8487afef3f775565405faa4
BLAKE2b-256 checksum
How to use checksums
6fcfb9b2063c8419ab649238966f255841c5fb3539ede981c7b2d4b763c5ff7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Security for networkinglib 0.2.7

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