Skip to main content

medius

Python bindings for medius, custom firmware and a control library for MAKCU mouse-passthrough boxes.

A MAKCU box sits between a mouse and a PC: the mouse passes through while your program injects movement, buttons, scroll and keystrokes over USB-serial. This package is a ctypes wrapper over the medius C ABI with no runtime dependencies; the wheel bundles the native library, so pip install needs no Rust toolchain.

Documentation: medius.k4tech.net.

Install

pip install medius

Platforms without a prebuilt wheel fall back to the source distribution, which builds the library and needs a Rust toolchain.

Usage

import medius

with medius.Device.find() as dev:
    print(dev.query_version())
    dev.move_rel(100, -50)                          # relative move
    dev.press(medius.Usage.button(medius.Button.LEFT))  # force a usage down
    with dev.input_events(medius.CatchFilter.all_input()) as events:
        for event in events:                        # physical input, live
            ...

Calls are synchronous, one firmware frame each; failures raise MediusError. The API covers mouse, keyboard and media control, and catching physical input.

License

MIT.

Metadata

Release files for medius 3.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for medius 3.4.3
File Size Uploaded Provenance Actions
medius-3.4.3.tar.gz 446.0 kB With provenance Details for medius-3.4.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for medius 3.4.3
File Actions
medius-3.4.3-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for medius-3.4.3-py3-none-win_amd64.whl
medius-3.4.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for medius-3.4.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
medius-3.4.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for medius-3.4.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
medius-3.4.3-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details for medius-3.4.3-py3-none-macosx_11_0_x86_64.whl
medius-3.4.3-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for medius-3.4.3-py3-none-macosx_11_0_arm64.whl

Total release size: 3.8 MB

Release files / medius-3.4.3.tar.gz

Download URL medius-3.4.3.tar.gz
Size 446.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6f9c3667de9e86cd2d5e75f06d314d3379898379a8ad7e3fc2a4d93e749048f1
BLAKE2b-256 checksum
How to use checksums
8d20ce7da9312a601d68eeccbb8f8f0ecf5bf4b25ecb9b637c0b08953f7cc2e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / medius-3.4.3-py3-none-win_amd64.whl

Download URL medius-3.4.3-py3-none-win_amd64.whl
Size 437.1 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
0056dc642aa77bf6f54dd40f019ad926d360f1a83f902bc7d9aa781f4a514cb5
BLAKE2b-256 checksum
How to use checksums
1cd0e7a7b00ea78bc7caaba95d36b4ab21419c85f2141021fc1cd38fb87428ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / medius-3.4.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL medius-3.4.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 963.9 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0aa9d81a1ba7f8f903d184295be159c56a187533042703de74a9c80e2e6877b5
BLAKE2b-256 checksum
How to use checksums
b86c007c1e055fcd968874acc226bb22f58a1ee0a9d27136b1ffe283c20a3fb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / medius-3.4.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL medius-3.4.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 957.7 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
34de4296e1e83070a3a350ccc46db1f38ff855cbf747716b3c981533a40db691
BLAKE2b-256 checksum
How to use checksums
53f895066c61a21cc21c3e1b3bafaaf042ade1c14f8ad986d8b5eeaaf14c3c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / medius-3.4.3-py3-none-macosx_11_0_x86_64.whl

Download URL medius-3.4.3-py3-none-macosx_11_0_x86_64.whl
Size 523.1 kB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
8b8e44bb209a94f85ce37dc414424eb6c31f29b943a513af611152f0429ca22a
BLAKE2b-256 checksum
How to use checksums
f827bce1e93382d1e7220f73a838a71bd3c132611a82cba7999ca40eb1a36f42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / medius-3.4.3-py3-none-macosx_11_0_arm64.whl

Download URL medius-3.4.3-py3-none-macosx_11_0_arm64.whl
Size 497.7 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b247d1ca676485e0ee38c6886bc9c04cded95ea399ed966712b7761ac6da499c
BLAKE2b-256 checksum
How to use checksums
5bd5cfbd88e6070db204b026d86720efbc07596217163ce70d5a1f3cd4cb6e82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Security for medius 3.4.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for medius-3.4.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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