AfterLink Protocol SDK - TCP client/server with routing, middleware, and pub/sub
Project description
AfterLink Python SDK
Python Client and Server SDK for the binary AfterLink protocol.
Installation
pip install afterlink
Usage
Server
import asyncio
from afterlink import Server
server = Server(port=4000)
@server.on("users/get")
async def get_user(req):
return {"id": 1, "username": "ajay"}
asyncio.run(server.listen())
Client
import asyncio
from afterlink import Client
async def main():
client = Client("tcp://localhost:4000")
await client.connect()
res = await client.request("users/get")
print(res)
await client.disconnect()
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
afterlink-2.0.1.tar.gz
(8.9 kB
view details)
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
afterlink-2.0.1-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file afterlink-2.0.1.tar.gz.
File metadata
- Download URL: afterlink-2.0.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
401baffcdc7adad5326b8099ad806ea4769d42e09492d3c12d6609481798a36b
|
|
| MD5 |
3771e0b0f1f8eefde4ae7d93c611e3e3
|
|
| BLAKE2b-256 |
85b42232b79e073fff0b39e87e2a361a75f699077c8b893a69dd4e0934a9adde
|
File details
Details for the file afterlink-2.0.1-py3-none-any.whl.
File metadata
- Download URL: afterlink-2.0.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fae7e7e3c02e194ffe20a74c0f4b57482d350ee81d0765b54297060fcb3a3c55
|
|
| MD5 |
469514cfe54984b989cc0130b126cd65
|
|
| BLAKE2b-256 |
0206b8b54dcd71599b8cbeb8790f7034d0fdfc593ba394c470d14ea76521aa1b
|