Skip to content

xconnio/xconn-python

Folders and files

NameName
Last commit message
Last commit date
Jan 15, 2025
May 23, 2024
May 7, 2024
Jan 15, 2025
Feb 27, 2025
Mar 15, 2024
May 8, 2024
May 23, 2024
May 7, 2024
Jan 8, 2025
Jan 3, 2025

Repository files navigation

XConn

Real-time application development framework for Python. XConn enables backend APIs that are FAST, support PubSub and are secure.

Getting started

Install xconn from pypi

uv venv
uv pip install xconn
./.venv/bin/xconn

writing your first API is quick

from xconn import XConnApp
from xconn.types import Invocation, Result

app = XConnApp()


@app.register("io.xconn.echo")
def echo(invocation: Invocation) -> Result:
    return Result(args=invocation.args, kwargs=invocation.kwargs)

run the app with xconn command line

om26er@office-pc-1:~/$ ./.venv/bin/xconn main:app
registered procedure io.xconn.echo
Listening for websocket connections on ws://127.0.0.1:8080/ws

look at examples directory for more examples