2023-06-11 21:41:13 -04:00
# Veilid Bindings for Python
2023-09-04 11:07:50 -05:00
Create an application in Python using the distributed [Veilid ](https://veilid.com ) framework for app-to-app communication.
## Prerequisites
* A headless Veilid node must be installed on the same host as the Python application. Install instructions can be found [here ](https://gitlab.com/veilid/veilid/-/blob/main/INSTALL.md )
2025-01-05 15:50:35 +00:00
* Veilid Python makes heavy use of async and other bleeding edge functions requiring Python version >= 3.12.5
2023-06-11 21:41:13 -04:00
2025-01-05 15:50:35 +00:00
## Install
2023-06-11 21:41:13 -04:00
```
2023-08-18 19:59:44 -05:00
poetry add veilid
2023-06-11 21:41:13 -04:00
```
or
```
2023-08-18 19:59:44 -05:00
pip3 install veilid
2023-06-11 21:41:13 -04:00
```
## Development
2023-06-14 16:33:14 -04:00
To run tests:
2025-01-05 15:50:35 +00:00
```shell
poetry run pytest -v -s
2023-06-14 16:33:14 -04:00
```
2025-01-05 15:50:35 +00:00
To update schema for validation with the latest copy from a locally running `veilid-server` :
```shell
2023-06-11 21:41:13 -04:00
./update_schema.sh
```
2023-09-04 11:07:50 -05:00
## Basic Veilid App Setup
2025-01-05 15:50:35 +00:00
2023-09-04 11:07:50 -05:00
A demo chat application is available to review [here ](https://gitlab.com/veilid/python-demo ).