Python bindings for Niri.
Project description
Niripy
Python bindings for the Niri wayland compositor.
Quickstart
Installation
Python Package Index
Install with any of the following depending on your python package manager:
pip install niripy
poetry add niripy
uv add niripy
Arch Linux
The package is also available on the AUR:
yay -S python-niripy
Examples
from niripy import Instance
niri = Instance()
window = niri.get_active_window()
Development
[!WARNING] Initial Development Niripy is still in very active and early stages of development.
Please file an issue if you find any bugs or have a feature request.
Credit to hyprpy for providing inspiration and a great starting point.
Roadmap
- Add AUR package
- Add flake.nix
- Generate documentation site with Material for MkDocs
- Second socket for listening to event-stream
- Instance.watch method for events
Nix
This repository provides a nix flake for development.
nix develop
python --version
python -c "import pydantic; print(pydantic.__version__)"
python -c "import niripy"
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file niripy-0.2.7.tar.gz.
File metadata
- Download URL: niripy-0.2.7.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60b6187f86e63a870883235b4678383ffd2160137af643e841b62241151a6ac0
|
|
| MD5 |
c9f6e4cda5d9d1a023c6d7d31122569a
|
|
| BLAKE2b-256 |
c78704528464643a03011907b13fb8ee922b1e599c0687f76216a6763803e8d1
|
File details
Details for the file niripy-0.2.7-py3-none-any.whl.
File metadata
- Download URL: niripy-0.2.7-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4abfea474d5564f0ab74a7c20fd4cf4a52854fc1a4250f52af530f9dc83be09
|
|
| MD5 |
2f158a2578e8f9589f9dbeaf99138a68
|
|
| BLAKE2b-256 |
dff334d837c94be35fe7f1539d6f8719b11b7c6cb81f8dca2cb02adfbfa32904
|