Skip to main content

https://github.com/xconnio/xconn-python

Project description

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

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

xconn-0.2.1.tar.gz (11.1 kB view hashes)

Uploaded Source

Supported by

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