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.0.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.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pureconnection-4.0.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.0.0.tar.gz
Algorithm Hash digest
SHA256 6b8a5e826e4ce964531b3bf2eca82adfc468b77d42ddec3ab68244338baa97e9
MD5 77b6b5cc41206620a61bd844c0767d5f
BLAKE2b-256 046021dd199212d90748496ea1713ed4adb37f50114f65524d77ee8b3b0e55a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pureconnection-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63854a055e29ff9aa875f2935cd1a5c358b571e04d0cb4710cb7349eeea13eb0
MD5 f221236b8d29481d11f7d7ac727112b5
BLAKE2b-256 8bfb5547200610b8ffcd8ffadca824404d4b58de3fb27cee6549358431384eb4

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