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 hashes)
Built Distribution
Close
Hashes for interlinking-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7a613a566b04c366382604ba59ef452228191d8da874596869ffd9536cf2a2f |
|
MD5 | 8dae4f886716274f28aea7af40f20b76 |
|
BLAKE2b-256 | 6d630beedd6f19b8e703ab79081f62e84842f24d207c205d14ce94d6173f833c |