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, 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 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

rigatoni-0.2.4.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

rigatoni-0.2.4-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rigatoni-0.2.4.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for rigatoni-0.2.4.tar.gz
Algorithm Hash digest
SHA256 afc07dd29af008b7e7a463da2631942c7e1e431f570cf2c69f5e091b3024be54
MD5 1b4b9b025f5b71ed0d93fa4a1ae7baa9
BLAKE2b-256 09c29493a03e5dec56b7067756a04eb8eb7f428be9caa42501e707dfb4c8c2f2

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: rigatoni-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for rigatoni-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8a169c79b52403c1d81e5a03ffa04adbe66b86c40ee58fa1b84f09c8214b3b34
MD5 7948e9b7b38d2c6f268acac5ef5eb503
BLAKE2b-256 97d8979bf8d4b444994e925136501a2302d2ac6368e2bbb9d6bb98bfffcbc90d

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