Skip to main content

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 .

Metadata

Release files for pyliblo3 0.17.0

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

Built distributions (wheels)

Table of built distributions (wheels) for pyliblo3 0.17.0
File
pyliblo3-0.17.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
pyliblo3-0.17.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
pyliblo3-0.17.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
pyliblo3-0.17.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
pyliblo3-0.17.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
pyliblo3-0.17.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
pyliblo3-0.17.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
pyliblo3-0.17.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
pyliblo3-0.17.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
pyliblo3-0.17.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
pyliblo3-0.17.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
pyliblo3-0.17.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
pyliblo3-0.17.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
pyliblo3-0.17.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details
pyliblo3-0.17.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details

Total release size: 4.9 MB

Release files / pyliblo3-0.17.0-cp314-cp314-win_amd64.whl

Download URL pyliblo3-0.17.0-cp314-cp314-win_amd64.whl
Size 134.4 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
cf6f810def41d829e57fd7f5fd5e28a376104c0df9d70c8d20118492fda84503
BLAKE2b-256 checksum
How to use checksums
47738ed689caa2b282969c57115249c726e3f5df7cd33e54f877f16aa2903aa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pyliblo3-0.17.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 666.3 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9c35c51332cbfe596b7a34a1e2e3d4f8b64fd5eb28e6e1e2949a6dabec71291b
BLAKE2b-256 checksum
How to use checksums
6a2283e15d4c59db11a28a03c5e6a9d4d332984a04e576d89c85a019b1792f1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL pyliblo3-0.17.0-cp314-cp314-macosx_11_0_arm64.whl
Size 181.3 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2a1d54f372653634ea4ecb6dfd5b3782f8397aa5ccd2663d420b34dba453bdf1
BLAKE2b-256 checksum
How to use checksums
74ec3f1e3063e2d111de353f6468dff89c285aa26889c5a46920c74f0ddfbb9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp313-cp313-win_amd64.whl

Download URL pyliblo3-0.17.0-cp313-cp313-win_amd64.whl
Size 130.9 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
268143bf08f9c4b97dab723f620509b86d813789ae2f430ea0662a707c3a1908
BLAKE2b-256 checksum
How to use checksums
f58dfeaf80e875e31ce25d58feac7db128b388e71729c389856f82b33bff2c70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pyliblo3-0.17.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 671.5 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
db6ff1594de4017fe87c8cfbffc142ab06223d037ec51c0456192c5d4d5f11ca
BLAKE2b-256 checksum
How to use checksums
33b7c48662ab387e531c0b0f280e2332bef00b10fb368e5a25df6e39f136e1f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL pyliblo3-0.17.0-cp313-cp313-macosx_11_0_arm64.whl
Size 180.5 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
abb626c98c3f8587087df58f9d8655ce1f109ee27b923ab9a95b79818a854c42
BLAKE2b-256 checksum
How to use checksums
2c37833275219e394876da95ab1b77cca54ec317a653f17c5cc4700f2bf67d33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp312-cp312-win_amd64.whl

Download URL pyliblo3-0.17.0-cp312-cp312-win_amd64.whl
Size 131.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
eb5186ef627e37db1a80cd79740d1b35f4c401d7a4e0f04f0ff7772675e14ad2
BLAKE2b-256 checksum
How to use checksums
b9d6c72e5cdbb96fd0982f6ef2d792b5ffb8b6af31681aea64e3250e97ea8828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pyliblo3-0.17.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 675.1 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
dfe9d053e42fd1f2c13e4aa60e3cd562f872f5d5004da7b81ca472e3808319dc
BLAKE2b-256 checksum
How to use checksums
6b609f7d4f49f89c03d739b6185785a0c1ccb12cd691174c65a59010fa54c7ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL pyliblo3-0.17.0-cp312-cp312-macosx_11_0_arm64.whl
Size 180.5 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7a0ae82068f24ea0b55cabd1fc5e1ecb5652a3f036d21a7d0c35d4d183180eb2
BLAKE2b-256 checksum
How to use checksums
56c03de6095506df465c29ba8c7e8d68cedac41f97741710b96f63a40968f756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp311-cp311-win_amd64.whl

Download URL pyliblo3-0.17.0-cp311-cp311-win_amd64.whl
Size 132.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
3802be557db366e1ae4639147e9bccd97f8e55722fe70dbc75b13d3d01ac35d6
BLAKE2b-256 checksum
How to use checksums
af72a5ea0e07ac41bb1d5867ae8cc9afba6b5e461a9580125d56e3e3e01a7e47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pyliblo3-0.17.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 687.1 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
3a9ee422c05c941d78ef9516a5c048dfc14363b5f74afd5e1db03ffa2bf4841f
BLAKE2b-256 checksum
How to use checksums
6a73af2dca15dc1bd1a8f55469adb97f52c0985541f72ffba132aeb15c58dfe0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL pyliblo3-0.17.0-cp311-cp311-macosx_11_0_arm64.whl
Size 178.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
691ee1ce5b4930d3e0f8e63692ccdab2ae2990a3f15f0918b03824d49412ef22
BLAKE2b-256 checksum
How to use checksums
46665d25c7ee978b163ae5425ad39016b70f4066da49d1ecce6fc893f7abfb2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp310-cp310-win_amd64.whl

Download URL pyliblo3-0.17.0-cp310-cp310-win_amd64.whl
Size 132.9 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
fc48bb7dddeca4e10c63f15f853dd07de85bf4020ec18c63b29eacb67b1975a7
BLAKE2b-256 checksum
How to use checksums
8c7d4b904a34e283ae637c428eaee7879df3109de81d7fe6974c377dae2928be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL pyliblo3-0.17.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 655.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
3e9667bf9a2d91c0540ce66a3779b5017bd8cd8a6f7b0bf496d3409c1d57f563
BLAKE2b-256 checksum
How to use checksums
69c57dda13fbeea8c83e7a4195afe0c0c5de14e960229afe99c6378a71b549e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyliblo3-0.17.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL pyliblo3-0.17.0-cp310-cp310-macosx_11_0_arm64.whl
Size 179.8 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b28a10ace560eea255df99c9b4028e298fcdbfcf829df50a36666801b0c33c8f
BLAKE2b-256 checksum
How to use checksums
090b6396d138dff5e4437c36d2022cf9d8e52272703d071f07b9575a7cd622a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.17.0 This release

15 release files

0.13.0

5 release files

0.11.3

2 release files

0.11.2

4 release files

0.11.0

2 release files

0.10.8

1 release file

0.10.7

1 release file

0.10.6

1 release file

0.9.2

1 release file

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