Send messages, files or raw data between python codes(servers, computers, ...).
Project description
Interlinking
In development - some bugs will be fixed in next version
Connect between servers or computers and send messages, files or raw python data.
How to use
Server
from interlinking import Server
#Start server. Output: True/False, port, format to encode - default ascii, host
server = Server()
#Server reciving from clients.
server.start_server()
#show all current connections
print(server.connections)
#returns True/False
print(server.recived_data)
#return data
print(server.data)
Client
from interlinking import Client
#Start reciving messages from another clients
#name is required, host - server ip, port - server port, output,recive - if recive is enable, encode format - default ascii
client = Client("name")
#send message to server
client.send_msg("msg")
#send message to another client with name (!USER name - must be at the end)
client.send_msg("msg !USER name")
#send file
client.send_file("current file", "filename for server")
#send data (lists, classes, functions, etc.)
client.send_data(data)
#stop client
client.stop_client()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
interlinking-0.0.4.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file interlinking-0.0.4.tar.gz.
File metadata
- Download URL: interlinking-0.0.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22413caa9c75866096c481b93921cc5a8830a01f494563d05c0376a8dc94e282
|
|
| MD5 |
fea50e3300307aa614205b4f5a4c4423
|
|
| BLAKE2b-256 |
e21ba2bca1888069a30757d6a1b2d7d5bb6f3636bedcaddb0c20d1f9e089d63d
|
File details
Details for the file interlinking-0.0.4-py3-none-any.whl.
File metadata
- Download URL: interlinking-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7a613a566b04c366382604ba59ef452228191d8da874596869ffd9536cf2a2f
|
|
| MD5 |
8dae4f886716274f28aea7af40f20b76
|
|
| BLAKE2b-256 |
6d630beedd6f19b8e703ab79081f62e84842f24d207c205d14ce94d6173f833c
|