Skip to main content

My Virtual Rig library for Python

Project description

python-mvr

Python library for MVR (My Virtual Rig). MVR is part of GDTF (General Device Type Format)

MVR specification as per https://gdtf.eu/mvr/prologue/introduction/

See source code for documentation. Naming conventions, in general, are identical to that on the GDTF, CamelCase is replaced with underscore_delimiters.

Source code

PyPi page

Pytest

Check links in markdown

Installation

pip install pymvr

To install latest version from git via pip:

python -m pip install https://codeload.github.com/open-stage/python-mvr/zip/refs/heads/master

Usage

import pymvr
mvr_scene = pymvr.GeneralSceneDescription("mvr_file.mvr")

for layer_index, layer in enumerate(mvr_scene.layers):
    ... #process data

See BlenderDMX and tests for reference implementation.

Status

  • Currently implemented:
    • Address
    • Alignment
    • AUXData
    • ChildList
    • Class
    • Connection
    • CustomCommand
    • Data
    • Fixture
    • FocusPoint
    • Geometries
    • Geometry3D
    • Gobo
    • GroupObject
    • Layer
    • Mapping
    • Overwrite
    • Position
    • Projector
    • Protocol
    • SceneObject
    • Sources
    • Support
    • Symbol
    • Symdef
    • Truss
    • UserData
    • VideoScreen

Development

Typing

  • At this point, the --no-strict-optional is needed for mypy tests to pass:
mypy pymvr/*py  --pretty  --no-strict-optional

Format

  • to format, use ruff

Testing

  • to test, use pytest
  • to test typing with mypy use
pytest --mypy -m mypy pymvr/*py

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

pymvr-0.2.0.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

pymvr-0.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file pymvr-0.2.0.tar.gz.

File metadata

  • Download URL: pymvr-0.2.0.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for pymvr-0.2.0.tar.gz
Algorithm Hash digest
SHA256 acb378b7fe70353febe42ca54e50874cd68dde76ea43e1a1ea24e8fd338b82c9
MD5 ca0a7a8a39a5ed5feb549e4ea30601f2
BLAKE2b-256 6dfa642461f7aa537dc7b6c701ee0329992421520ec0927491a6db04d0cbfec5

See more details on using hashes here.

File details

Details for the file pymvr-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pymvr-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.5

File hashes

Hashes for pymvr-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63301f5ac1dbc420a96b8363472b105c3a4f5f24d3ebf898a17d102a29f66226
MD5 240dc4da338daa64645a9a630f67002d
BLAKE2b-256 4b8eb329a08dc3023023d63dd7e3ab33c2e0bacb2fbe5ab09fef93cd7282c15a

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