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.

The provided wheels include the liblo library and don't have any further dependencies, making it completely pip installable

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

from pyliblo3 import *
import time


class MyServer(ServerThread):
    def __init__(self, port=1234):
        ServerThread.__init__(self, port)

    @make_method('/foo', 'ifs')
    def foo_callback(self, path, args):
        i, f, s = args
        print(f"Received message '{path}' with arguments: {i=}, {f=}, {s=}")

    @make_method(None, None)
    def fallback(self, path, args):
        print(f"received unknown message '{path}' with {args=}")


server = MyServer()
server.start()
print(f"Server started in its own thread, send messages to {server.port}. Use CTRL-C to stop")

while True:
    send(("127.0.0.0", server.port), "/foo", 10, 1.5, "bar")
    send(("127.0.0.0", server.port), "/unknown", (3, 4))
    time.sleep(1)
    

Documentation

https://pyliblo3.readthedocs.io


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 -DWITH_TESTS=OFF -DWITH_CPP_TESTS=OFF -DWITH_EXAMPLES=OFF -DWITH_TOOLS=OFF ../cmake
cmake --build . --config Release
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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyliblo3-0.16.4-cp313-cp313-win_amd64.whl (130.9 kB view details)

Uploaded CPython 3.13Windows x86-64

pyliblo3-0.16.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (656.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pyliblo3-0.16.4-cp313-cp313-macosx_11_0_arm64.whl (164.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

pyliblo3-0.16.4-cp312-cp312-win_amd64.whl (131.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pyliblo3-0.16.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (661.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pyliblo3-0.16.4-cp312-cp312-macosx_11_0_arm64.whl (165.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyliblo3-0.16.4-cp311-cp311-win_amd64.whl (136.2 kB view details)

Uploaded CPython 3.11Windows x86-64

pyliblo3-0.16.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (668.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pyliblo3-0.16.4-cp311-cp311-macosx_11_0_arm64.whl (166.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pyliblo3-0.16.4-cp310-cp310-win_amd64.whl (136.0 kB view details)

Uploaded CPython 3.10Windows x86-64

pyliblo3-0.16.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (630.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

pyliblo3-0.16.4-cp310-cp310-macosx_11_0_arm64.whl (164.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file pyliblo3-0.16.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pyliblo3-0.16.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 130.9 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyliblo3-0.16.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 04c43ec9b279a7f73bd46589ff47b40103cbd0a5ecaea17df14fbad9e56ef50a
MD5 aab00c1072e289ea9f6cebb7a447f5a6
BLAKE2b-256 d565689dbc37afe50051fd4da78399215545c603941b6bf84b0985d622461213

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyliblo3-0.16.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6f29d62c30f96958d10c08cf32e61f912ec5e738afe1193583adb0f6919b377f
MD5 51d7949d6de287bf827423666306b120
BLAKE2b-256 fb5e2ab1f33c6196b1701ba207addd36ee32d9d58f1e6307860ab7be18ccc355

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyliblo3-0.16.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f58dcbeb1dea65ef2b779d9b91daf2e76b818fc6615172486649d167461e55d
MD5 12a4bed1bc455c7ccd8db7f36cb74e7d
BLAKE2b-256 ae3882fad1041dc548efa80b446067794331ba9677fe299a9e51052dccd93d95

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyliblo3-0.16.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 131.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyliblo3-0.16.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a7df05dbcb92594560f8ff3709884fd6f9eba6553eb004e4cc5ea9c84d22baf2
MD5 426eae0467b6c00ba52184262775de34
BLAKE2b-256 5158ae0f8416f2bbeeca72e82777355211eceb987dc74c11ca4c099532f74ba7

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyliblo3-0.16.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9b0f0e77083b8fc10214e1b5e5484b1790a05fea20feedf104c878548f0212a5
MD5 0b85cb267ca8013e6896cbd2ec0c1542
BLAKE2b-256 a1ae6b7ab070119d4e8c4542d5c3b3eb455da1558f460c5944f138639b113bce

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyliblo3-0.16.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aa80baa6548b1d0b2bfe44cd7a2cd0c4f4e9b7fe0ba0089668cfdcb3428191e9
MD5 7ef3763e180d108a98a5044bd9fc5d98
BLAKE2b-256 609b14f81ff3f6c7e80afc2d2fb28f608effa9d17a7416700c92e6c27eb62035

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pyliblo3-0.16.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 136.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyliblo3-0.16.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3705b0491ddaf16f9de9dddaf0d9d6a05e6676f265fc32c8b801b6f88bb0ada1
MD5 4ba7dbb7ae640f400f63145d0ecde3c9
BLAKE2b-256 21033027cf637d33066aa7e1fa499345b547e8a1a5b62ef25d6df363433303c4

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyliblo3-0.16.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c8497b66e5cc75849fb570a181e7eeed7584b980cb1abd91dc22a85466a6e386
MD5 429c805ddf3c07bc2a68f467736e5318
BLAKE2b-256 9d3555146e02cc3ba9c9472a24f29270135291b325b8268c97789802b102849e

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyliblo3-0.16.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3406aeb8d91e31464ea39489c5a8b58adf356fb22c71699ddce0ecc9bb38db1
MD5 c224ff0ee02b4c45f83aef21d3972da4
BLAKE2b-256 21070e36c425de9e1c3938d12c26fb92200cbefaa204c40cecfda025433a10d0

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pyliblo3-0.16.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 136.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyliblo3-0.16.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c51f30bd02b0435ac4a5880e8e551ceea66213f98b8526149bd46037c4c9ce29
MD5 5c0033534df51c2ac69c2c5a07adf2a7
BLAKE2b-256 e57a5500d9f3f94aac6c3766d9910a9b7eef201e38d423dd4fa59082028c852a

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyliblo3-0.16.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cace00d257c11fbcace433222ca3cc2052084599acfb6f59a05a382098b2b9fa
MD5 477297b5f556bafa188ef443cad90f69
BLAKE2b-256 3b4eca30b5effb1f33debed357f7673b60b876192bf4b8e127c8374f2d1d14db

See more details on using hashes here.

File details

Details for the file pyliblo3-0.16.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyliblo3-0.16.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ad9085343b9c04c669e0d50407386cac4d1244d5b0bdb7e0bf087926b661073f
MD5 84a864ee2b4ff14c5d93eab7aed3a693
BLAKE2b-256 b67d97babf9c70bb88cafaefc9c6c9fb6e95953ca07a22b866881099d705513d

See more details on using hashes here.

Supported by

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