Skip to main content

Lightweight realtime database

Project description

WELCOME TO EARTH

pureconnection is a OPENSOURCE lightweight realtime database based on client-server!

Installation

You can install pureconnection using pip:

pip install pureconnection

Please see official PyPi website to get newer version and feature. (Click Here)

Example

1. MemoryStore

Use this for manage data realtime on your memory

from pureconnection._database import MemoryStore

# Get instance
store = MemoryStore.get_instance()

# Set key-value
store.set('ticket_no', 'SPMC')

print(store.get('ticket_no'))  # return 'SPMMC'

2. RemoteHost

If you need data exchange with TCP protocol, you can use this method.

from pureconnection._connection import RemoteHost

def on_msg(msg):
    print("📩 Server:", msg)

RemoteHost.configure("127.0.0.1", 9999)
RemoteHost.receiver_handler(on_msg)
RemoteHost.begin_connection()

# Loop utama
import time
while True:
    RemoteHost.send("PING")
    time.sleep(5)

    # Server Response
    # Server : PONG

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

pureconnection-4.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

pureconnection-4.2.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pureconnection-4.2.0.tar.gz.

File metadata

  • Download URL: pureconnection-4.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.3

File hashes

Hashes for pureconnection-4.2.0.tar.gz
Algorithm Hash digest
SHA256 eac24a1705d306a02bcd77e71684521b07f8e4d540db33c2f7f656fedeab7aa4
MD5 b24ab374c2a712b3b292cee6bf477579
BLAKE2b-256 3e4f5e2688fc6e200e5ec87b604c6c96c846b3f601d24aa60473a806e3395981

See more details on using hashes here.

File details

Details for the file pureconnection-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: pureconnection-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.3

File hashes

Hashes for pureconnection-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f980b2b58d35b798ff4fbf79532c6ccc785d865270e887921678fc2cfed2646
MD5 0df8c49a01e1aaa773b7ced2639cdb7a
BLAKE2b-256 0dae78f578e9c3659d947e7d2b732e207b8c8bdca493f6c0e94ef617ed04f598

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