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.0.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.0-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file afterlink-2.0.0.tar.gz.
File metadata
- Download URL: afterlink-2.0.0.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 |
8b84bf51b0b5a016ab43819fc7d8985119236d3aeb55b72580424150534f9463
|
|
| MD5 |
0c5368c26ded50fedd4f8ffae5c51c6b
|
|
| BLAKE2b-256 |
bda41e4124d560b14e26fbac594415d99985c59e37ed235e889c8e45539ed711
|
File details
Details for the file afterlink-2.0.0-py3-none-any.whl.
File metadata
- Download URL: afterlink-2.0.0-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 |
05a208879cd8f0291df307ab9b251f8ecd040acda818fdfbe0255dd713645299
|
|
| MD5 |
4a8b680ccdfc36a606d320fd7466fee5
|
|
| BLAKE2b-256 |
d2217cd64c7614b5aa137da1e5f9972ee4eeb8d2a9328bd85af101dad7668025
|