Skip to main content

A universal communication engine

Project description

socket.engine

Installation

Python:

pip install socket.engine

This library requires Python3. It was tested extensively on Python 3.7.5 with Ubuntu 19.04.

Features

Socket.engine enables real-time bidirectional communication between two Python processes. These programs can be run on the same device, or on the same network, or on any device provided there is a port exposed publically from the host. It is optimized for extremely high-speed, reliable information transfer.

Its main features are:

Speed

Connections are made using TCP sockets and can pass information from processes extremely quickly and reliably. Socket.engine operates using IPv4.

Easy to use

This library was designed to lower the barrier to entry as much as possible. As such, it was built as a wrapper for network sockets to send massive amounts of information in a very short time.

How to use

HOST

from socketengine import host

h = host()
h.start()

while True:
	data = h.get_ALL("test")

	if data is not none:
		for item in data:
			print(item)
			break

h.close()

Please Note: Starting a socket.engine socket in Python is a blocking action and will not finish until the socket is opened.

CLIENT

from socketengine import CLIENT

c = client()
c.start()

c.write("test", "client is connected!")

c.close()

Socket.engine will automatically store the most recent piece of data received over a channel. This data is accessible via the get method. Socket.engine runs on a separate thread from the rest of your program and will therefore be constantly reading from the data socket.

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

socket.engine-0.1.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

socket.engine-0.1.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file socket.engine-0.1.3.tar.gz.

File metadata

  • Download URL: socket.engine-0.1.3.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.5

File hashes

Hashes for socket.engine-0.1.3.tar.gz
Algorithm Hash digest
SHA256 105c1ee06519cc200761a23bd7d142b241f9c00a75b9bc47eee602720b5f538e
MD5 f4b2087ba70c11cfe31edbeab64074c2
BLAKE2b-256 94601486173416078d6f3d1d0cf7415cfe220b289152160a659dd1272b193428

See more details on using hashes here.

File details

Details for the file socket.engine-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: socket.engine-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.5

File hashes

Hashes for socket.engine-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e428e8f6cfdc87b3066e7aa25187fea63da8b29d9d9f0916bc65929fef1bb758
MD5 c96b20c15307b66ea605f6ce74245c42
BLAKE2b-256 93da899e074e03613625f33c7fc54830319c11d6b3def5786224a3e6c53ed314

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