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.

Release files for medius 3.4.2

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.2
File Size Uploaded
medius-3.4.2.tar.gz 441.2 kB Details

Built distributions (wheels)

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

Total release size: 3.8 MB

Release files / medius-3.4.2.tar.gz

Download URL medius-3.4.2.tar.gz
Size 441.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4e788cd0398353085d656703d062deeeb3c70c9bf5301ca735a3589571a834aa
BLAKE2b-256 checksum
How to use checksums
3cb754acd5d1722b1d1974376173499adc834be92714d0d02d35f1b0ebeae0b4
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 26, 2026.

Transparency log

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

Download URL medius-3.4.2-py3-none-win_amd64.whl
Size 432.1 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f375aac9b86f4ecd7a850c56b3505d5198b704c906cccfff856a6f5cf1ceb341
BLAKE2b-256 checksum
How to use checksums
46cebb00a5c9b6fd212d318457f064a7b260f8398d2a2b9504b07eb0b49a4c14
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 26, 2026.

Transparency log

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

Download URL medius-3.4.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 964.5 kB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c58647c771861afaa61cae375728a1cb76acce4b6a9f58fbb7a1b070e55cd320
BLAKE2b-256 checksum
How to use checksums
e4f3ec9d0fc2581c614e4ccf042484643398176a2a51b0e34b9ac878721514ea
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 26, 2026.

Transparency log

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

Download URL medius-3.4.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 956.7 kB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
050d453b60446572ee42d5f4b9237f5c31f028e7b285775b1b26e4539421a33c
BLAKE2b-256 checksum
How to use checksums
2b61b285aa4567a88a0b765feead3ab1fd43cb9bd803c426dd32ec0e80bebb11
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 26, 2026.

Transparency log

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

Download URL medius-3.4.2-py3-none-macosx_11_0_x86_64.whl
Size 520.6 kB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
94178ca6bc9e89ba64ec633b9bff22465d3fbf1ee3fb5d3ddc098b42a6836f86
BLAKE2b-256 checksum
How to use checksums
bf3babb76c072753dd30ddb444c71238fa9aee886acdf80a8d1e5ae315a761ec
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 26, 2026.

Transparency log

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

Download URL medius-3.4.2-py3-none-macosx_11_0_arm64.whl
Size 498.2 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8fe77621a1cfa1ecf737c217397401c42fa5c94454325ce7e23e5b1e9b001701
BLAKE2b-256 checksum
How to use checksums
2b9d597b232033d3ce4d854c7b4098bc12f5f1095fd2d233f87300023601bbef
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 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.4.2 This release

6 release files

3.4.1

6 release files

3.3.1

6 release files

3.2.0

6 release files

3.1.0

6 release files

3.0.1

6 release files

3.0.0

6 release files

2.3.0

6 release files

2.2.1

7 release 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