Skip to main content

Welcome to python-rtmidi!

A Python binding for the RtMidi C++ library implemented using Cython.

Latest version Project status MIT License Python versions Distribution format CI status

Overview

RtMidi is a set of C++ classes which provides a concise and simple, cross-platform API (Application Programming Interface) for realtime MIDI input / output across Linux (ALSA & JACK), macOS / OS X (CoreMIDI & JACK), and Windows (MultiMedia System) operating systems.

python-rtmidi is a Python binding for RtMidi implemented using Cython and provides a thin wrapper around the RtMidi C++ interface. The API is basically the same as the C++ one but with the naming scheme of classes, methods and parameters adapted to the Python PEP-8 conventions and requirements of the Python package naming structure. python-rtmidi supports Python 3 (3.7+).

The documentation provides installation instructions, a history of changes per release and an API reference.

See the file LICENSE.md about copyright and usage terms.

The source code repository and issue tracker are hosted on GitHub:

https://github.com/SpotlightKid/python-rtmidi.

Usage example

Here's a quick example of how to use python-rtmidi to open the first available MIDI output port and send a middle C note on MIDI channel 1:

import time
import rtmidi

midiout = rtmidi.MidiOut()
available_ports = midiout.get_ports()

if available_ports:
    midiout.open_port(0)
else:
    midiout.open_virtual_port("My virtual output")

with midiout:
    note_on = [0x90, 60, 112] # channel 1, middle C, velocity 112
    note_off = [0x80, 60, 0]
    midiout.send_message(note_on)
    time.sleep(0.5)
    midiout.send_message(note_off)
    time.sleep(0.1)

del midiout

More usage examples can be found in the examples and tests directories of the source repository.

Metadata

Release files for python-rtmidi 1.5.4

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

Source distribution (sdist)

Source distribution for python-rtmidi 1.5.4
File Size Uploaded Provenance Actions
python_rtmidi-1.5.4.tar.gz 327.6 kB Without provenance Details for python_rtmidi-1.5.4.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for python-rtmidi 1.5.4
File Actions
python_rtmidi-1.5.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for python_rtmidi-1.5.4-cp311-cp311-win_amd64.whl
python_rtmidi-1.5.4-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for python_rtmidi-1.5.4-cp311-cp311-manylinux_2_28_x86_64.whl
python_rtmidi-1.5.4-cp311-cp311-manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64 Details for python_rtmidi-1.5.4-cp311-cp311-manylinux_2_28_aarch64.whl
python_rtmidi-1.5.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for python_rtmidi-1.5.4-cp311-cp311-macosx_11_0_arm64.whl
python_rtmidi-1.5.4-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for python_rtmidi-1.5.4-cp311-cp311-macosx_10_9_x86_64.whl
python_rtmidi-1.5.4-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for python_rtmidi-1.5.4-cp310-cp310-win_amd64.whl
python_rtmidi-1.5.4-cp310-cp310-manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64 Details for python_rtmidi-1.5.4-cp310-cp310-manylinux_2_28_x86_64.whl
python_rtmidi-1.5.4-cp310-cp310-manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64 Details for python_rtmidi-1.5.4-cp310-cp310-manylinux_2_28_aarch64.whl
python_rtmidi-1.5.4-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for python_rtmidi-1.5.4-cp310-cp310-macosx_11_0_arm64.whl
python_rtmidi-1.5.4-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for python_rtmidi-1.5.4-cp310-cp310-macosx_10_9_x86_64.whl
python_rtmidi-1.5.4-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for python_rtmidi-1.5.4-cp39-cp39-win_amd64.whl
python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64 Details for python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_x86_64.whl
python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ ARM64 Details for python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_aarch64.whl
python_rtmidi-1.5.4-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for python_rtmidi-1.5.4-cp39-cp39-macosx_11_0_arm64.whl
python_rtmidi-1.5.4-cp39-cp39-macosx_10_9_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64 Details for python_rtmidi-1.5.4-cp39-cp39-macosx_10_9_x86_64.whl
python_rtmidi-1.5.4-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for python_rtmidi-1.5.4-cp38-cp38-win_amd64.whl
python_rtmidi-1.5.4-cp38-cp38-manylinux_2_28_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ x86-64 Details for python_rtmidi-1.5.4-cp38-cp38-manylinux_2_28_x86_64.whl
python_rtmidi-1.5.4-cp38-cp38-manylinux_2_28_aarch64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ ARM64 Details for python_rtmidi-1.5.4-cp38-cp38-manylinux_2_28_aarch64.whl
python_rtmidi-1.5.4-cp38-cp38-macosx_11_0_arm64.whl CPython 3.8 CPython 3.8 macOS 11.0+ ARM64 Details for python_rtmidi-1.5.4-cp38-cp38-macosx_11_0_arm64.whl
python_rtmidi-1.5.4-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for python_rtmidi-1.5.4-cp38-cp38-macosx_10_9_x86_64.whl

Total release size: 8.7 MB

Release files / python_rtmidi-1.5.4.tar.gz

Download URL python_rtmidi-1.5.4.tar.gz
Size 327.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b0b5064280db6b78a262fa9417031b224b5275905bd0e2e171c7d0fbe14544fd
BLAKE2b-256 checksum
How to use checksums
fcfa9c1dd76467da143a779cc78bac7af0b03447ce18c8918f5aee306a6b3b5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp311-cp311-win_amd64.whl

Download URL python_rtmidi-1.5.4-cp311-cp311-win_amd64.whl
Size 334.2 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
79373aa56729c566c377f639e1d7b145c1d27cd9d593da8fceb09219f8a00d77
BLAKE2b-256 checksum
How to use checksums
37a657fd49e16763e826e3acbf31fa3992293c2d655344c036185791e42e5ec5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL python_rtmidi-1.5.4-cp311-cp311-manylinux_2_28_x86_64.whl
Size 748.8 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
56d369f29b70d7c838919b3c02bc819baa5a20a9149acaf2a3a248eb83e43c1c
BLAKE2b-256 checksum
How to use checksums
0974783bf7081dff5250461f9a62887d07c8adec0043aad57c84cbe3ac1fa0ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp311-cp311-manylinux_2_28_aarch64.whl

Download URL python_rtmidi-1.5.4-cp311-cp311-manylinux_2_28_aarch64.whl
Size 727.8 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
60b9a92ab049f5c5d44af8fc4e6502f044a608b1fe9a33889e4b94e3df4cf17c
BLAKE2b-256 checksum
How to use checksums
0101db382267670adf6e5fcbb9ab889d50e30d32b1568eadb3a7b17d41d466f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL python_rtmidi-1.5.4-cp311-cp311-macosx_11_0_arm64.whl
Size 127.9 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2862391236f692a55451a476097b4a2bd05eabbc257a6e7b64e969a599ed7486
BLAKE2b-256 checksum
How to use checksums
61cafc8b44c5bf2b0c9fd0d749ba84ed80f20f9d227459ba124637840166bc3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp311-cp311-macosx_10_9_x86_64.whl

Download URL python_rtmidi-1.5.4-cp311-cp311-macosx_10_9_x86_64.whl
Size 127.1 kB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
d844099e62b26cc7c1295b0e0ce13466a947aabe00628963238a07759eb6ca11
BLAKE2b-256 checksum
How to use checksums
10efea3ed16e6d08a1ea506eb7a02c77f8747832814b7c18fb0ee02e28072ee2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp310-cp310-win_amd64.whl

Download URL python_rtmidi-1.5.4-cp310-cp310-win_amd64.whl
Size 334.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
201ede931bc3c1be76654c26660bb4232b19b7a39971c075912cafc421308843
BLAKE2b-256 checksum
How to use checksums
e57326d01dc828bc2fd9bc63b8d4e8339b27d3b27b6aa354b22e7761bb79764a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp310-cp310-manylinux_2_28_x86_64.whl

Download URL python_rtmidi-1.5.4-cp310-cp310-manylinux_2_28_x86_64.whl
Size 747.6 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8fbb95f785ea0682e1a2e30fccf18e05e3a152b6527c68829b6e2eabd4e657f0
BLAKE2b-256 checksum
How to use checksums
07dbc742455d99c2bd71f5c125e147c8eda477e3496289fbedff56e2bc210bd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp310-cp310-manylinux_2_28_aarch64.whl

Download URL python_rtmidi-1.5.4-cp310-cp310-manylinux_2_28_aarch64.whl
Size 726.5 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
0e1ae45801512f3fc6183c72980b6cdee4f4755274323000c30be822789ff7d3
BLAKE2b-256 checksum
How to use checksums
bc05a34ae2d6041c669da28341ffc14fa050cd74f56212e805de7750719177f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp310-cp310-macosx_11_0_arm64.whl

Download URL python_rtmidi-1.5.4-cp310-cp310-macosx_11_0_arm64.whl
Size 126.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
32a9c7a4e671954a8d8c6eef8166f340c73a76e3db14ac1cdb6c8b0984ccd90c
BLAKE2b-256 checksum
How to use checksums
2026edfacb7b871da223a54841ef31980abf158f3e45012de6b926d99b715749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp310-cp310-macosx_10_9_x86_64.whl

Download URL python_rtmidi-1.5.4-cp310-cp310-macosx_10_9_x86_64.whl
Size 125.9 kB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
b4d5e5883af24c7f8eaeae080828e996eed95f1b6d42def12148c4f45156b462
BLAKE2b-256 checksum
How to use checksums
d29f734e3f09e284159d6da4ad5bb84c77720a250776822bd62f9cbf41511e45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp39-cp39-win_amd64.whl

Download URL python_rtmidi-1.5.4-cp39-cp39-win_amd64.whl
Size 338.3 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
57985fc7470eff883d81fd563f5084725e9c92999320364363923b1eb6fd045e
BLAKE2b-256 checksum
How to use checksums
10214538d372dcacb3fd25c0afda4d2e515caea5b6ebe01b988a89d57c4b330d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_x86_64.whl

Download URL python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_x86_64.whl
Size 749.2 kB
Tags CPython 3.9 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
49e1d3e801289b68855c632f10ae9d1f8a604b6064619a7bd2cadd58dbe7a8f1
BLAKE2b-256 checksum
How to use checksums
7eef5547235be8d08f408b7c4b53feea98459e2a79dd4c409e79352037e6e375
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_aarch64.whl

Download URL python_rtmidi-1.5.4-cp39-cp39-manylinux_2_28_aarch64.whl
Size 728.2 kB
Tags CPython 3.9 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
e5fcd4b132c3bf13f51296ff40f5325eb2d92c9badc4ee197b21ad3e9bf8acb4
BLAKE2b-256 checksum
How to use checksums
c009bb8273e4d4ea303f5293f496721cd7c188c34b86bf1ffef665a347e4c767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp39-cp39-macosx_11_0_arm64.whl

Download URL python_rtmidi-1.5.4-cp39-cp39-macosx_11_0_arm64.whl
Size 128.8 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b2ca4034589bae698b0cca501a0caa4983009cf3250d200b22908b6a68d9e180
BLAKE2b-256 checksum
How to use checksums
936101da1a7f29d82ce90e353f5e93c9af3749e6b10897272a81c3a5347ebef6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp39-cp39-macosx_10_9_x86_64.whl

Download URL python_rtmidi-1.5.4-cp39-cp39-macosx_10_9_x86_64.whl
Size 128.5 kB
Tags CPython 3.9 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
aa917ad102323ffdfa5bf8e39af4baf4c7ea84452b920da35bbb45a24a311b0e
BLAKE2b-256 checksum
How to use checksums
2b8bb03e13bdc8340739b6447f88323ebb81e0afeb1c608b09010a1e6f758366
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp38-cp38-win_amd64.whl

Download URL python_rtmidi-1.5.4-cp38-cp38-win_amd64.whl
Size 350.6 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
7bd2a90456276bc785de5f4da047e52f25758dfa76e5933ac3e14099f2954ff5
BLAKE2b-256 checksum
How to use checksums
baf1b7f06028a32d43c0cecc1bb0994a22499013fe5469834347b10c97f1f042
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp38-cp38-manylinux_2_28_x86_64.whl

Download URL python_rtmidi-1.5.4-cp38-cp38-manylinux_2_28_x86_64.whl
Size 765.1 kB
Tags CPython 3.8 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
649ce2acaf59da0e8be730d6441fc06659a7a7f8b4c1d70c9362685f06573447
BLAKE2b-256 checksum
How to use checksums
66a220dd0c7cfcd903b0164e500d1a3e0981fffac873281491910c9130aa8a5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp38-cp38-manylinux_2_28_aarch64.whl

Download URL python_rtmidi-1.5.4-cp38-cp38-manylinux_2_28_aarch64.whl
Size 741.0 kB
Tags CPython 3.8 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
3d0cf60664b909ef9b8a7186be336d36e134e3a02b166b0a3262a75e5d458f71
BLAKE2b-256 checksum
How to use checksums
80c167a61dc8a0e0793a373754664a3bee814dcd60d8f61b590a4758cbadb7f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp38-cp38-macosx_11_0_arm64.whl

Download URL python_rtmidi-1.5.4-cp38-cp38-macosx_11_0_arm64.whl
Size 133.3 kB
Tags CPython 3.8 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c05622151bbd714bbb39a98101d656ac26bb6a0af769256f22ddd323862bdb54
BLAKE2b-256 checksum
How to use checksums
6567b352855e6ef678602100497108cbc29b5641444576a73f6e026b24a995e7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / python_rtmidi-1.5.4-cp38-cp38-macosx_10_9_x86_64.whl

Download URL python_rtmidi-1.5.4-cp38-cp38-macosx_10_9_x86_64.whl
Size 133.8 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
5a6d17cbe27f01cf33c52576f9e7ab9f250ae4e3f6df9f9252da83e623732973
BLAKE2b-256 checksum
How to use checksums
c3d57b10b0611a37d61ed41196647fcc1be202a38a604509156c2bde3a15d9c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Security for python-rtmidi 1.5.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.5.4 This release

21 release files No provenance

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