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.1.0.tar.gz (4.0 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.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pureconnection-4.1.0.tar.gz
Algorithm Hash digest
SHA256 4dc5118ac38c6088120b136b55ef255dca76e24f377a233b5d24bde676d55ddc
MD5 f489748093a2ed77a6a70ba8065b4f08
BLAKE2b-256 c856c9517f322c5db12c2e96ec633b3a17b3599fa34a243619cc34780212e8d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pureconnection-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 65fccdd1a5a1fd6b5032fdb06a9f5b22cdd4cd0dc82193c0cce3a159ee5d4ffb
MD5 6b300c069feb5eec4e43e87e23f082fe
BLAKE2b-256 fdc2591619f7eb4bbe3da24823a821ae3643af838f97619775f7d043cfa6d93e

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