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

om26er@Home-PC:~$ uv venv
om26er@Home-PC:~$ uv pip install git+ssh://git@github.com/xconnio/xconn-python.git
om26er@Home-PC:~$ source .venv/bin/activate
(xconn-python) om26er@Home-PC:~$

Initialize the app

(xconn-python) om26er@Home-PC:~$ xapp init
XConn App initialized.
The config is xapp.yaml and sample app is sample.py. Run below command to start the sample

xapp start sample:app --asyncio --start-router

The sample file looks like below

from xconn import App

app = App()

@app.register("io.xconn.hello")
async def my_procedure(first_name: str, last_name: str, age: int):
    print(first_name + " " + last_name + " " + str(age))
    return first_name, last_name, age


@app.subscribe("io.xconn.publish")
async def my_topic():
    print("received event...")

run the app with xapp command line (note: this automatically starts the debug router)

(xconn-python) om26er@Home-PC:~$ xapp start sample:app --asyncio --start-router
starting server on 127.0.0.1:8080
connected realm1
Registered procedure io.xconn.hello
Subscribed topic io.xconn.publish

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.3.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

xconn-0.3.0-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file xconn-0.3.0.tar.gz.

File metadata

  • Download URL: xconn-0.3.0.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for xconn-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ab29a6b9da560f6885d1c6c757f1a3a8e9706748f6fbc0493260a936080b265f
MD5 d33d1de1dc2bc9023297034b47c5afa7
BLAKE2b-256 d1555184094f31a201ce50c96d727ab95f929082cea7838550fc39682a522607

See more details on using hashes here.

File details

Details for the file xconn-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: xconn-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 32.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for xconn-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 839a9813534fd0939450183a30aaf448fed5bf921fa1aad1af08a34054a28100
MD5 029a2f44d644bcef07f3a117de3c8150
BLAKE2b-256 a6a1ab8ec0b701ddfd5c2b2a45857430ebb5f9f5e5db149c2e16053adfff46bd

See more details on using hashes here.

Supported by

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