Async Python client for madVR Envy IP Control.
Project description
madVR Envy Python Library
Spec-first async Python client for madVR Envy IP Control.
This project intentionally does not inherit implementation patterns from existing community libraries. It is being built from the official Envy IP Control specification and protocol captures.
Current API Shape
- Typed command helpers in
madvr_envy.commands - High-level async client in
madvr_envy.client.MadvrEnvyClient - Typed protocol parser in
madvr_envy.protocol
Example:
import asyncio
from madvr_envy.client import MadvrEnvyClient
async def main() -> None:
client = MadvrEnvyClient(host="192.168.1.100")
await client.start()
await client.wait_synced(timeout=10)
snapshot = await client.refresh_device()
print(snapshot.power_state, snapshot.incoming_signal, snapshot.aspect_ratio)
await client.get_mac_address(wait_for_ack=True)
await client.display_message(3, "Hello from py-madvr-envy")
await client.change_option("temporary\\hdrNits", 120)
groups = await client.enum_profile_groups_collect()
for group in groups:
print(group.group_id, group.name)
await client.stop()
asyncio.run(main())
Protocol Basis
- Source:
https://madvrenvy.com/wp-content/uploads/EnvyIpControl.pdf - Document title:
madVR Envy IP Control revision 1.1.3 - Retrieved: 2026-02-27
- HTTP metadata observed during retrieval:
Last-Modified: Mon, 20 May 2024 02:40:13 GMT
Development
uv sync --group dev
uv run ruff check .
uv run ruff format --check .
uv run ty check madvr_envy
uv run pytest -v
Protocol Coverage
See docs/PROTOCOL_COVERAGE.md for implemented command and notification coverage.
Enumeration Collectors
For stream enumerations, use typed collectors:
enum_profile_groups_collect()enum_profiles_collect(profile_group)enum_setting_pages_collect()enum_config_pages_collect()enum_options_collect(page_or_path)
These helpers wait for protocol end markers and raise EnumerationTimeoutError if an end marker is not observed in time.
Runtime State
Use client.refresh_device() when an integration needs a complete, typed view of the device. The client owns the protocol request sequence for runtime telemetry, video geometry, temperatures, and profiles, then returns an EnvyDeviceSnapshot.
Use EnvyRuntime for long-running control-system integrations that need reliable video geometry:
from madvr_envy import EnvyRuntime, MadvrEnvyClient, RefreshPolicy
client = MadvrEnvyClient(host="192.168.1.100")
runtime = EnvyRuntime(
client,
policy=RefreshPolicy(
volatile_video_interval=5.0,
geometry_debounce=0.75,
stale_after=15.0,
),
)
runtime.subscribe(lambda snapshot: print(snapshot.video.trusted, snapshot.video.masking_ratio))
await runtime.start()
EnvyRuntime keeps volatile video state fresh without continuously refreshing static catalogs. It reacts to push notifications, debounces display changes, polls signal/geometry while awake, clears geometry on NoSignal, and marks stale geometry untrusted.
For lower-level streaming consumers, madvr_envy.adapter.EnvyStateAdapter converts mutable runtime state into immutable snapshots plus typed deltas/events:
You can wire this directly through the client:
from madvr_envy.adapter import EnvyStateAdapter
adapter = EnvyStateAdapter()
def on_update(snapshot, deltas, events):
...
handle = client.register_adapter_callback(adapter, on_update)
# later: client.deregister_adapter_callback(handle)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file madvr_envy-2.1.0.tar.gz.
File metadata
- Download URL: madvr_envy-2.1.0.tar.gz
- Upload date:
- Size: 41.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
273fb63b3ed01b29e72f5510cc8e44216e21fea0cea8390c574a8e00c77bb7c0
|
|
| MD5 |
c64682b12f1204ef6567c955cd2a064c
|
|
| BLAKE2b-256 |
efb5937ee3c479f7c52958d6922cf5007608880897f21e217d405fce5c037094
|
Provenance
The following attestation bundles were made for madvr_envy-2.1.0.tar.gz:
Publisher:
publish.yml on binarylogic/py-madvr-envy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madvr_envy-2.1.0.tar.gz -
Subject digest:
273fb63b3ed01b29e72f5510cc8e44216e21fea0cea8390c574a8e00c77bb7c0 - Sigstore transparency entry: 1871510072
- Sigstore integration time:
-
Permalink:
binarylogic/py-madvr-envy@4b775a1c9fba09ee7c0ce75200f5bac60a168fc5 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/binarylogic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4b775a1c9fba09ee7c0ce75200f5bac60a168fc5 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file madvr_envy-2.1.0-py3-none-any.whl.
File metadata
- Download URL: madvr_envy-2.1.0-py3-none-any.whl
- Upload date:
- Size: 25.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adcb55908fa346b56c9e1785a6fe62981f4a9cb010b135e0482545c4bbeb918a
|
|
| MD5 |
f629004bfe3e5763066ca07d8f412ca1
|
|
| BLAKE2b-256 |
c6c7d8e437b2268b364c6f49e4e221c8ccaa019c4229761528440de617726bcf
|
Provenance
The following attestation bundles were made for madvr_envy-2.1.0-py3-none-any.whl:
Publisher:
publish.yml on binarylogic/py-madvr-envy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
madvr_envy-2.1.0-py3-none-any.whl -
Subject digest:
adcb55908fa346b56c9e1785a6fe62981f4a9cb010b135e0482545c4bbeb918a - Sigstore transparency entry: 1871510109
- Sigstore integration time:
-
Permalink:
binarylogic/py-madvr-envy@4b775a1c9fba09ee7c0ce75200f5bac60a168fc5 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/binarylogic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4b775a1c9fba09ee7c0ce75200f5bac60a168fc5 -
Trigger Event:
workflow_dispatch
-
Statement type: