Simple socket server-client for interprocess communications without security
Project description
Unencrypted Socket
Simple socket server-client for interprocess communications without security
Hierarchy
unencryptedsocket
|---- SS
'---- SC
Example
python
# You can transmit objects as long as
# both sides have access to their classes
from unencryptedsocket import *
# server
def test(data):
return f"Data:\t{data}"
functions = dict(test=test)
SS(functions=functions).start()
print("test socket server started.", flush=True)
# # Nothing is printed, you must start it from an other thread
# client
sc = SC()
for i in range(5):
print(sc.request(command="test", data=args(f"Hello, {i}!")))
for i in range(5):
print(SC().request(command="test", data=args(f"Hello, {i}!")))
print("test socket client started.", flush=True)
# # both for loops produce same result
# # while the later one uses a new key in each loop
# Data: Hello, 0!
# Data: Hello, 1!
# Data: Hello, 2!
# Data: Hello, 3!
# Data: Hello, 4!
# test socket client started.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file unencryptedsocket-0.2.0.tar.gz
.
File metadata
- Download URL: unencryptedsocket-0.2.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71079ba51be3242b873a53f90336439ebda440318036894e89815d006b01b91a |
|
MD5 | 993d22b1527c5c6813cccf2b61c4811b |
|
BLAKE2b-256 | dbe4fd4bce7d88dd9b2e0684a1097630241c7fe83b66297faacd7e04b12b50fd |
File details
Details for the file unencryptedsocket-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: unencryptedsocket-0.2.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c98fa4deac17e6e8b731e163b6c6232410e8afe7ec225cd7609e48018e75ed |
|
MD5 | f02018d81ca7454fc0b7f2ba5dcf566e |
|
BLAKE2b-256 | 94ac7e3b2c181f732ad0e616a7b868a23ec43a0a9a8b25c1865a9df1a86e25c5 |