Skip to main content

Python bindings for the liblo OSC library

Project description

pyliblo3

This is a fork of the original bindings for liblo, making it pip installable.

As of version 0.16 the provided wheels include the liblo library and don't have any further dependencies.

Example

Simple blocking server

import pyliblo3 as liblo
server = liblo.Server(8080)

def test_handler(path, args, types, src):
    print(args)
    
server.add_method("/test", None, test_handler)

while True:
    server.recv(100)

Threaded server

TODO


Installation

pip install pyliblo3

Installation from source

When installing from source, liblo needs to be installed.

Linux

sudo apt install liblo-dev

git clone https://github.com/gesellkammer/pyliblo3
cd pyliblo3
pip install .

MacOS

First install liblo

brew install liblo

Or, without using brew:

git clone https://github.com/radarsat1/liblo
cd liblo
mkdir macosbuild
cd macosbuild
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ../cmake
cmake --build . --config Release
sudo cmake --install .

Then install pyliblo3

git clone https://github.com/gesellkammer/pyliblo3
cd pyliblo3
pip install .

Windows

git clone https://github.com/radarsat1/liblo
cd liblo
New-Item -ItemType Directory -Force -Path "windowsbuild"
cd windowsbuild
cmake -A x64 -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=OFF -DWITH_CPP_TESTS=OFF -DWITH_EXAMPLES=OFF -DWITH_TOOLS=OFF ../cmake
cmake --build . --config Release
Get-ChildItem -Recurse
cmake --install .
git clone https://github.com/gesellkammer/pyliblo3
cd pyliblo3
pip install .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyliblo3-0.16.1.tar.gz (175.0 kB view hashes)

Uploaded Source

Built Distributions

pyliblo3-0.16.1-cp312-cp312-win_amd64.whl (131.6 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

pyliblo3-0.16.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (621.6 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyliblo3-0.16.1-cp312-cp312-macosx_11_0_arm64.whl (169.9 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pyliblo3-0.16.1-cp311-cp311-win_amd64.whl (132.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pyliblo3-0.16.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (630.9 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyliblo3-0.16.1-cp311-cp311-macosx_11_0_arm64.whl (170.4 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pyliblo3-0.16.1-cp310-cp310-win_amd64.whl (131.7 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pyliblo3-0.16.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (585.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyliblo3-0.16.1-cp310-cp310-macosx_11_0_arm64.whl (169.6 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page