Skip to main content

Extends the Shiny web framework with controls for multimedia input/output.

Project description

shinymedia

shinymedia is a Python package that provides Shiny UI controls for recording and playing back media.

At this time it includes two components:

  • shinymedia.input_video_clip for recording video clips using attached cameras
  • shinymedia.audio_spinner for playing back audio with a spinning visualization

You can see these two components in action together in our live demo (source code), or keep reading.

Installation

From PyPI:

pip install shinymedia

Or to install the latest from GitHub:

pip install "shinymedia @ git+https://github.com/posit-dev/shinymedia?subdirectory=python-package"

Development

JavaScript

To develop the JavaScript components, you will need to have Node.js installed. Then, npm install in this directory to install dependencies.

After making changes to the TypeScript code in srcts, run npm run build to compile to JavaScript (or npm run watch to automatically recompile on changes). You can also run npm run typecheck to check for TypeScript type errors.

Python

To develop the Python package, you can install it in editable mode:

pip install -e python-package

Documentation

To build the documentation, first install additional dependencies:

pip install -e "python-package[docs]"

Then:

cd quarto
quartodoc build  # Build reference docs
quarto preview   # Serve the docs locally

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

shinymedia-0.1.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

shinymedia-0.1.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file shinymedia-0.1.0.tar.gz.

File metadata

  • Download URL: shinymedia-0.1.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for shinymedia-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b6e0e49a9e3ad4cddc177e2699282d9533ced3c8cf9beddb61fe4e50500f897
MD5 7aebdf304b04a5798e50190b93eddbb8
BLAKE2b-256 5b9e7474b7d16424334d2d1b8ca388b881616d0caa931f936162362b70f12b88

See more details on using hashes here.

File details

Details for the file shinymedia-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: shinymedia-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for shinymedia-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbb84718a398d689a1e671244afb10a3f1d9e366c4b32a369430d6aaf62dd077
MD5 545904a0bd1b45e697b6c00405fe725d
BLAKE2b-256 7605d8789b9e3d9ce988ce50bc6690c620379e414bd6a958a14f352045bcc6c8

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