Skip to main content

Python Client Library for NOODLES Protocol

Project description

Penne

Build Status PyPI Coverage badge

Python Client Library for NOODLES Protocol

Description

Penne is the first client library to implement the NOODLES messaging protocol in Python. NOODLES allows multiple client applications to interact collaboratively with data in real-time. The client uses a websocket connection to send CBOR encoded messages, and all components in the scene graph can be subclassed and customized to fit an application's needs.

Documentation

For more information, check out the documentation.

Installation

Installation is as simple as:

pip install penne

Simple Example

from penne import Method, Client


class CustomMethod(Method):
  
  custom_attribute = None
  
  def on_new(self, message: dict):
    print(f"New method named {self.name} was created")
    
      
with Client("ws://localhost:50000", {Method: CustomMethod}) as client:
  # do stuff

Hungry for more NOODLES?

For more information and other related repositories check out this collection

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

penne-0.5.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

penne-0.5.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file penne-0.5.1.tar.gz.

File metadata

  • Download URL: penne-0.5.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for penne-0.5.1.tar.gz
Algorithm Hash digest
SHA256 5e29433f190696747eea5663196507dc6492798f8abd71ddc49b56e474c5c475
MD5 0ac9b3f3ad25acb7d4d0710fc4516eba
BLAKE2b-256 b7ad8401c09e2ec250dc304ce84c9f7f806b71113271045453231d2daadc5ca1

See more details on using hashes here.

File details

Details for the file penne-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: penne-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for penne-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a942807dc1983dcc03f62f87b6fa1c6ffc79f22b413b51fc139ea07291c43889
MD5 44edd7324a0e83947ed6df3b565fe3fe
BLAKE2b-256 159c6540baf7143999e344b0d8b65cdeff8ef12e83d15a4159d4d10cb1ef0d74

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page