Skip to main content

Python Server Library for NOODLES Protocol

Project description

Rigatoni

Build Status PyPI Coverage badge

Python Server Library for NOODLES Protocol

Description

This server library implements the NOODLES messaging protocol and provides objects for maintaining a scene in state. The server uses a websocket connection to send CBOR encoded messages. To customize its implementation, the library provides convenient interface methods to assist the user in writing their own methods for the server. The user can also add custom delegates to add additional functionality to any of the standard components.

Documentation

For more information and documentation, check out the documentation.

Installation

Installation is as simple as:

pip install rigatoni

For optional dependencies and support for meshes and geometry object creation, you can install

pip install rigatoni[geometry]

Simple Example

import rigatoni as rig

class CustomTable(rig.Table):

    extra_info = None

    def handle_clear(self):
        print("Clearing table")

def basic_method(server, context):
    print("Hello World!")

starting_state = [
    rig.StartingComponent(rig.Method, {"name": "basic_method", "arg_doc": []}, basic_method),
]

delegates = {
    rig.Table: CustomTable
}

with rig.Server(50000, starting_state) as server:
    # do stuff
    pass

Hungry for more NOODLES?

For more information and other related repositories check out this repository

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

rigatoni-0.2.2.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

rigatoni-0.2.2-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file rigatoni-0.2.2.tar.gz.

File metadata

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

File hashes

Hashes for rigatoni-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1f828d940f534e4b380ddbd75c2a0f94b3e670e4f5a3de2e1cb0ba6dfbb85ff9
MD5 05fd4461e1ebf577f88e31eb9f99fd11
BLAKE2b-256 477a317d48053bf145bbcfc0b4001a30152960d0409eb653f8d8c727e154c0fa

See more details on using hashes here.

Provenance

File details

Details for the file rigatoni-0.2.2-py3-none-any.whl.

File metadata

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

File hashes

Hashes for rigatoni-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 49f5b2d645981bfb41a348aaffd7f649cf520e65ef6a2c5bb0c8fa4b76f0511d
MD5 b5c7bf6c514a23c4bc08a2bf8c0d51e0
BLAKE2b-256 fb0c8029792668c7c00eb30d848f7848dc1f2fbc636428a246e8fbc3b7e7ca54

See more details on using hashes here.

Provenance

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