Skip to main content

arbtrage-feather-sdk

Python SDK for Feather — enqueue tasks and run workers in-process (Celery-style) or as dedicated processes.

Install

pip install arbtrage-feather-sdk

Requires a running Feather server (FEATHER_ADDRESS, default localhost:50051).

import asyncio
from feather import FeatherApp

app = FeatherApp()

async def send_email(ctx):
    data = json.loads(ctx.payload.decode())
    await mailer.send(data["to"])

app.task("send-email", send_email)

async def main():
    await app.start_embedded()
    app.delay("send-email", {"to": "user@example.com"})
    await asyncio.sleep(3600)  # keep app running

asyncio.run(main())

FastAPI integration

from contextlib import asynccontextmanager
from fastapi import FastAPI
from feather import FeatherApp

feather = FeatherApp()

@asynccontextmanager
async def lifespan(app: FastAPI):
    await feather.start_embedded()
    yield
    await feather.shutdown()

app = FastAPI(lifespan=lifespan)

@app.post("/send")
async def send(to: str):
    feather.delay("send-email", {"to": to})
    return {"ok": True}

Publish

./scripts/bundle-protos.sh
cd packages/sdk-python && python -m build && twine upload dist/*

Metadata

Release files for arbtrage-feather-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arbtrage-feather-sdk 0.1.0
File Size Uploaded Provenance
arbtrage_feather_sdk-0.1.0.tar.gz 86.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for arbtrage-feather-sdk 0.1.0
File Interpreter ABI Platform
arbtrage_feather_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 182.4 kB

Release files / arbtrage_feather_sdk-0.1.0.tar.gz

Download URL arbtrage_feather_sdk-0.1.0.tar.gz
Size 86.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3bdcd77f05ecbfd107b0c525b5d5315bdee138dcf4b473ad0d76d0de1642edc7
BLAKE2b-256 checksum
How to use checksums
5affaf36f842c9ee48850a48f1db7df92468cb680e7fb6efc2dd88cbcc6263a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / arbtrage_feather_sdk-0.1.0-py3-none-any.whl

Download URL arbtrage_feather_sdk-0.1.0-py3-none-any.whl
Size 95.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6410bdd5144f485bb5219c1e7c601ea2cea7c927ac6be578705140b41434355e
BLAKE2b-256 checksum
How to use checksums
eeafd8707fd6677c4968abaf4f5897d48f01a1b8e161ddea20a7fa069c605c4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for arbtrage-feather-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page