Catalog PyPI
PACKAGE EXPLORERView in registry

afterlink

PyPI

AfterLink Protocol SDK - TCP client/server with routing, middleware, and pub/sub

Versions collected1
Direct dependencies3From release 2.0.3
Last observed20 Oct, 21:14 UTC

README

Version 2.0.3 documentation

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())

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
2.0.317 Oct 20263

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:14 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c1b946258173b82c34bac1781a18d82289d99fa48de610c646a9e7b2d8205064