Skip to main content

python-simpleprotocol

A small socket wrapper

Used for sending code, subcode, parameters.

Code: Integer

Subcode: Integer

Params: Array of strings

Only has basic use, as shown in this example:

Server:


import simpleprotocol

server = simpleprotocol.SimpleServer(port=8080)

while True:
    handler = server.accept()
    handler.send(0)
    print(handler.get())
    handler = server.accept()
    handler.send(1)
    print(handler.get())


Client:


import simpleprotocol

socket = simpleprotocol.SimpleProtocol()

if socket.get().code:
    socket.send(1, 0, ["That sounds good!"])
else:
    socket.send(1, 1, ["Oh dear, that's not right..."])

Metadata

Release files for simpleprotocol 1.0.1

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

Source distribution (sdist)

Source distribution for simpleprotocol 1.0.1
File Size Uploaded Provenance Actions
simpleprotocol-1.0.1.tar.gz 2.9 kB Without provenance Details for simpleprotocol-1.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 7.5 kB

Release files / simpleprotocol-1.0.1.tar.gz

Download URL simpleprotocol-1.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
52b97447a1e534b37f8d6f5507d91f6623e611f52ab391283f0cb0b721665538
BLAKE2b-256 checksum
How to use checksums
7d33708e9fbda9bb64e97998070ce945c84f132e4a2430b143bb3f9b440dfb54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

Release files / simpleprotocol-1.0.1-py3-none-any.whl

Download URL simpleprotocol-1.0.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a631990d6fc9a96b3da4fccfb2a54ff1e6970305f415c4996da438db83f450d
BLAKE2b-256 checksum
How to use checksums
87bfe48e248090bc9f5d054ad353e77c80371fc5d0b5b2eb3ea8d73b59293c8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.6.9

Security for simpleprotocol 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files 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