Skip to main content

Remote Controlled Area pypi_download

Remote Controlled Area widget for trame provide components and communication infrastructure to display remote generated image based content while allowing interaction forwarding such as mouse, touch and multi-pointer devices.

This library aims to provide a core that can then be extended or specialized for any backend. But its initial integration will be focused toward VTK and/or ParaView for enabling interactive remote rendering. But because it aims to be generic, you should be able to rely on its core to connect and drive any kind of backend that could produce images/video-stream and react to mouse interaction.

License

trame-rca is made available under the Apache Software License.

Development

The client-side code is split into a framework-agnostic core (js-components) and Vue/React adapters that depend on it. Install and build the core first, then the adapter(s) you need.

cd js-components
npm i

cd ../vue-components
npm i
npm run build

# optional React adapter
cd ../react-components
npm i
npm run build

cd -

Install the component

pip install -e .

Optional dependencies

TurboJPEG

Faster Jpeg encoding using TurboJPEG.

macOS system install

# macOS
brew install jpeg-turbo

Windows install

Download and install from Github: https://github.com/libjpeg-turbo/libjpeg-turbo/releases

Linux install

# RHEL/CentOS/Fedora
# YUM doc: https://libjpeg-turbo.org/Downloads/YUM

# Ubuntu
apt-get install libturbojpeg

Once your system is ready, you can try our code example:

pip install trame trame-vuetify vtk
pip install "trame-rca[turbo]"

# other encoders: jpeg, avif, turbo-jpeg, png, webp
python ./examples/01_vtk/vtk_cone_simple.py --encoder turbo-jpeg

Video encoding with VTKStreaming

VTKStreaming provides tools for encoding and streaming frames from a VTK OpenGL render window using video codecs. When NVENC is available, it enables H.264/H.265 hardware encoding; otherwise, software encoding falls back to VP9 via libvpx.

The codec is negotiated when the video-decoder display mounts: the client asks the server which codecs it can encode (trame.rca.video.codecs), filters them with VideoDecoder.isConfigSupported, and sends the accepted list back (trame.rca.video.negotiate). The server then creates the encoder with vtkEncoderFactory preferences Hardware=true;Codec=<accepted list>. No frames are pushed before negotiation. Pass on_video_codec to create_view_handler to be told what was selected (codec, backend, hardware, label or error).

You can try our code example:

pip install trame trame-vuetify vtk
pip install "trame-rca[vtkstreaming]"

python ./examples/05_video/vtk_cone_simple_video.py

In order to use source-build of vtkstreaming, please clone [VTKStreaming](https://github.com/Kitware/VTKStreaming.git) one level up outside the trame-rca directory, checkout the wheel branch, and install it inside the trame-rca virtual environment

cd ..
git clone https://github.com/Kitware/VTKStreaming.git
cd VTKstreaming
uv pip install --group dev          # build deps into active venv; index from tool.uv.index
uv pip install -e . --no-build-isolation
cd ../trame-rca

python ./examples/05_video/vtk_cone_simple_video.py

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trame_rca-2.11.2.tar.gz (67.8 kB view details)

Uploaded Source

Built Distribution

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

trame_rca-2.11.2-py3-none-any.whl (77.2 kB view details)

Uploaded Python 3

File details

Details for the file trame_rca-2.11.2.tar.gz.

File metadata

  • Download URL: trame_rca-2.11.2.tar.gz
  • Upload date:
  • Size: 67.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trame_rca-2.11.2.tar.gz
Algorithm Hash digest
SHA256 26cc1afbce0b54187d85503162a95243a742de2046367b34109550dd43199068
MD5 b04839086749bc79806e09045f114365
BLAKE2b-256 cf3df452f603fcc02ed6354dc8b3a528544868ebfc24b46f4684f975e2c383fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for trame_rca-2.11.2.tar.gz:

Publisher: test_and_release.yml on Kitware/trame-rca

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trame_rca-2.11.2-py3-none-any.whl.

File metadata

  • Download URL: trame_rca-2.11.2-py3-none-any.whl
  • Upload date:
  • Size: 77.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trame_rca-2.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1f4de35c605f13dde064380950239c6687783b5276bc09d9a4812c4e4dec16b
MD5 edd6cdbf7e48c0ae8c37a28f4c88f620
BLAKE2b-256 a0bd267f0f27bda135c7ac9c2741d2a8f13bd2e62be8c5879b98d23780d48cb5

See more details on using hashes here.

Provenance

The following attestation bundles were made for trame_rca-2.11.2-py3-none-any.whl:

Publisher: test_and_release.yml on Kitware/trame-rca

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.11.2 This release

2 files

2.11.1

2 files

2.11.0

2 files

2.10.2

2 files

2.10.1

2 files

2.10.0

2 files

2.9.1

2 files

2.9.0

2 files

2.8.1

2 files

2.8.0

2 files

2.7.0

2 files

2.6.3

2 files

2.6.2

2 files

2.6.1

2 files

2.6.0

2 files

2.5.2

2 files

2.5.1

2 files

2.5.0

2 files

2.4.3

2 files

2.4.2

2 files

2.4.1

2 files

2.4.0

2 files

2.3.1

2 files

2.3.0

2 files

2.2.3

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.4

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.3.1

2 files

1.2.0

2 files

1.1.1

2 files

1.1.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.4

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page