Skip to main content

An API to navigate scenes and subscenes that has been configured in a mididings script

Project description

stagedings

An API to navigate scenes and subscenes that has been configured in a mididings script

PyPI Python OpenAPI Spec Discourse


What does stagedings allow?

  • A web-based interface
    • Alternative of the legacy livedings UI, which was based on Tkinter 🪓
  • A HTTP layer that facilitates control and navigation allowing the abstraction of OSC subcalls
  • An OpenAPI specification making possible to generate a client SDK in multiple language with a code generator like Kiota making possible to use the API in .NET, Go, Java, PHP, Python, Ruby and TypeScript.

⚠️ A scene patch dictionary defined in the run section of your mididings script is required to work correctly, check the run function documentation for more information on how to structure your patch.

📘 API documentation

Frontend

A responsive multiclient, real-time interface for scene/subscene navigation

stagedings UI screenshot

Features

  • Web UI with real-time scene/subscene updates
  • FastAPI backend with full REST and WebSocket support
  • Multiple clients supported
  • Use the mididings OSC interface
  • It exposes a fully compliant OpenAPI spec for easy generation of SDK clients in any language, enabling flexible remote control of mididings

The frontend allow

  • Direct navigation through scenes and subscenes
  • Exposes the Restart, Panic, Query and Quit commands

The backend allow

  • Endpoints for direct navigation through scenes and subscenes
  • Endpoints to the Restart, Panic, Query and Quit commands

ℹ️ About commands

  • Restart will restart mididings process
  • Panic send not off to all ports and all channels
  • Quit stop mididings, be carefull
  • Query is a work in progress

⚒️ Installation from PyPI

NOTE: This will also install mididings with OSC and AutoRestart support allowing a full working stack.

# Create a Python virtual environment
$ python3 -m venv .venv
$ source .venv/bin/activate

# Install stagedings including mididings as a dependency
$ pip install stagedings

▶️ Running the application

$ stagedings [--host HOST] [--port PORT]

Options

  • --host
    • FastAPI server bind address
      • Default: localhost
      • Use 0.0.0.0 to allow network access or the server IP address
  • --port
    • FastAPI + WebSocket server port
      • Default: 5000

Use cases

Local development (single machine)

$ stagedings

This runs everything locally on:

http://localhost:5000

Network / multi-client setup

When clients access the server from other machines, you must expose the backend:

$ stagedings --host 0.0.0.0

or:

$ stagedings --host 192.168.1.100

Accessing the UI

Once running, open in a browser:

http://dings.local.com:5000

or:

http://192.168.1.100:5000

High Level Overview

stagedings UI screenshot

🔗 Communication Workflow

stagedings UI screenshot

💬 Feedback & Contributions

We welcome bug reports, feature ideas, and contributions! Please open an issue or discussion

📜 License

All files in this repository are released under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 or later of the License.

Made in Québec 🇨🇦

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

stagedings-0.1.1.tar.gz (136.8 kB view details)

Uploaded Source

Built Distribution

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

stagedings-0.1.1-py3-none-any.whl (138.2 kB view details)

Uploaded Python 3

File details

Details for the file stagedings-0.1.1.tar.gz.

File metadata

  • Download URL: stagedings-0.1.1.tar.gz
  • Upload date:
  • Size: 136.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for stagedings-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cea9fa7940b25d9c2c8d6cd7a13224db45fc4186a5e615389918d036289eac0c
MD5 51dd6045a26079aa8b0697f2ef08f399
BLAKE2b-256 5ba9dd39851db23aa0bb9a6df61c20559b5f30adaf9ad89948735b50e4e108d8

See more details on using hashes here.

File details

Details for the file stagedings-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: stagedings-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 138.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for stagedings-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fb68775fed6f22ea508ed9cef4776f2ab4ad43138d0bbacecacc70db8d30f05
MD5 01b68ca1a5cc47b77e5c30622bc59568
BLAKE2b-256 a4f21e22c2840690934a9d21aab26523a864c69423a5a3aa74b811d6b55ab4d7

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