Module and function definitions and documentation for the FL Studio Python API
Project description
FL Studio MIDI Python API
This project contains simple stub functions to provide intellisense while working on scripts for FL Studio's MIDI Python API.
Currently, it only provides function definitions and docstrings, but these functions don't do anything. It is NOT a complete testing framework, and it cannot guarantee your script will work correctly. However, it may help you to resolve issues with incorrect function calls when interacting with the API.
Important Note
Although the stubs are mostly complete, there are a few functions where I don't
fully understand how they work. These functions have a HELP WANTED:
label in
their documentation. If you happen to know how to use one, I'd love it if you
helped out by improving the documentation! I may also have incorrect
definitions for some functions. Please raise an issue if you find anything
incorrect.
Online Reference
The documentation is also available as an online reference if Image-Line's own documentation isn't up to scratch.
Differences to Official Implementation
A small number of tweaks have been made to these stubs in order to ease code writing. These shouldn't have any functional impact on the behaviour of the API compared to the implied behaviour from the stubs, but should help clarify some properties of certain functions.
- Functions whose returns are boolean by nature are listed as returning a
bool
type, even though the implementation returns the integers0
and1
. This change should help to describe the context in which the functions should be called when writing scripts, which in a language like Python is far more important than the actual implementation of the functions.
Installation
To avoid module conflicts with other Python projects, it is recommended that you install this script in a virtual environment by following these instructions in the official Python documentation.
After activating the environment in your editor, you can install the stub
modules by running the command pip install FL-Studio-API-Stubs
on Windows or
pip3 install FL-Studio-API-Stubs
on MacOS or Linux.
Video reference for installation instructions
Testing using the FL MIDI Stubs
The stubs provide an extremely minimal testing framework, which can be used to develop basic unit tests for scripts intended to run within the FL Studio Python environment.
Note that this functionality is bare-bones and terribly designed, and is thus subject to change without much notice.
Managing Contexts
Within the fl_context
module, this API has an extremely simple context
manager that can be used to determine the return values of certain function
calls. Refer to the module's documentation for a reference on how to manage
this context.
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
Hashes for FL_Studio_API_Stubs-20.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a88a63502d7a85abdf184ae94756a39695d07d7d3f5a82e1001f6934a77544c |
|
MD5 | cfdb34b1899a4ea38b3c1c4c54560510 |
|
BLAKE2b-256 | 66336f48ef8478c5650d53297c3adf5cefa05f1d5903f1d8f920a2d4ad7490ba |
Hashes for FL_Studio_API_Stubs-20.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b43c86ad071cc7360fef812447ad852e66134fd539964c023711168c832a7cb |
|
MD5 | b833a298fdb4fc208d17a4be195b4ea2 |
|
BLAKE2b-256 | e1629755c7d378df8821868348b387f9b5d0ee5c073dc74c16eed302d6d382e3 |