Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

interlinking-0.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for interlinking-0.0.4.tar.gz
Algorithm Hash digest
SHA256 22413caa9c75866096c481b93921cc5a8830a01f494563d05c0376a8dc94e282
MD5 fea50e3300307aa614205b4f5a4c4423
BLAKE2b-256 e21ba2bca1888069a30757d6a1b2d7d5bb6f3636bedcaddb0c20d1f9e089d63d

See more details on using hashes here.

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

Hashes for interlinking-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a7a613a566b04c366382604ba59ef452228191d8da874596869ffd9536cf2a2f
MD5 8dae4f886716274f28aea7af40f20b76
BLAKE2b-256 6d630beedd6f19b8e703ab79081f62e84842f24d207c205d14ce94d6173f833c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page