Skip to main content

Open-source crypto-secure communication system

Project description

OSSCS

This is small messanger base.

It is:

  • open source
  • crypto secure
  • peer to peer
  • end to end encrypted

Installing

pip install osscs

Usage

import threading

from osscs.backend.client import MessageSender
from osscs.backend.server import MessageListener
from osscs.backend.core import SocketSender, SocketListener
from osscs.backend.models import Message, MessageFromDictMapper
from osscs.backend.storage import IPv4Address
from osscs.backend.storage.common import BaseAddress


addr = IPv4Address(
    '127.0.0.1',
    12012
)
message_sender = MessageSender(SocketSender())
message_listener = MessageListener(SocketListener())

def on_message(message: MessageFromDictMapper, address: BaseAddress) -> None:
    print(f'{address.data()} - {message.text.decode()}')


threading.Thread(
    target=message_listener.listen_on,
    args=[addr, on_message]
).start()

message_sender.send(
    Message('Hello world'),
    addr
)

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

osscs-0.0.7.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

osscs-0.0.7-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file osscs-0.0.7.tar.gz.

File metadata

  • Download URL: osscs-0.0.7.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for osscs-0.0.7.tar.gz
Algorithm Hash digest
SHA256 3845dc9fd7eafdb956b3a5e07d9ca661141884fdd09361ed5ebe4c98c308e8ea
MD5 de3e918350025e674f66b679035d41b7
BLAKE2b-256 218e1560e543be61218c623d5a55b492efa51cc5c6eec4e302df5c562ab708c0

See more details on using hashes here.

File details

Details for the file osscs-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: osscs-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for osscs-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 183e3aaca96543c41ef43fb1d400dba706ec1ad300fc28441b340e067e5b4869
MD5 7fa61fde21af2d521c23c3e4bd9cfbb4
BLAKE2b-256 1babbc53bd39934b9dc3ff460b5396bf121afa729d05b97205a73b9fc2c10b2e

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