Skip to main content

Tools for backend python services

Project description

aio-fluid — async utilities for backend Python services

Async utilities for backend python services developed by Quantmind.

PyPI version Python versions Python downloads build codecov

Documentation: fluid.quantmind.com

Source Code: github.com/quantmind/aio-fluid

Features

  • Async workers — composable components with a managed start/stop lifecycle; the building block everything else is built on. See Workers.
  • Task scheduler & consumer — declare tasks with a @task decorator, schedule them with every() or cron expressions, run them concurrently with priorities and concurrency limits, and offload CPU-bound work to subprocesses or Kubernetes Jobs. Backed by a pluggable broker (Redis by default). See Tasks.
  • Async Postgres CRUD — a typed CRUD layer over asyncpg and SQLAlchemy, with pagination and schema migrations. See Database.
  • Event dispatchers — sync and async Dispatcher types for decoupling event sources from handlers. See Dispatchers.
  • HTTP client helpers — a unified async client wrapping httpx and aiohttp. See HTTP Client.
  • CLI tooling — ready-made click / rich command-line interfaces for task managers and databases.

Installation

This is a python package you can install via pip:

pip install aio-fluid

To install all the dependencies:

pip install aio-fluid[cli, db, http, log, k8s]

this includes the following extra dependencies:

Development

You can run the examples via

uv run python -m examples

We use uv as a development tool to run the examples and tests, but you can also use python directly if that's your preference.

License

This project is licensed under the BSD License - see the LICENSE file for details.

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

aio_fluid-2.4.2.tar.gz (686.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aio_fluid-2.4.2-py3-none-any.whl (70.2 kB view details)

Uploaded Python 3

File details

Details for the file aio_fluid-2.4.2.tar.gz.

File metadata

  • Download URL: aio_fluid-2.4.2.tar.gz
  • Upload date:
  • Size: 686.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aio_fluid-2.4.2.tar.gz
Algorithm Hash digest
SHA256 9a57cae5bb2d150b76ecdf38630a72065ab54192505a0bc3da9a13eb1396afcc
MD5 0a3f0e7c2b2ee338eaafdc86bdb9495a
BLAKE2b-256 46d16dcb9644e6be61bf9c9a1e85d678797fa3f7784dbf4f3ab38b3a656e14c3

See more details on using hashes here.

File details

Details for the file aio_fluid-2.4.2-py3-none-any.whl.

File metadata

  • Download URL: aio_fluid-2.4.2-py3-none-any.whl
  • Upload date:
  • Size: 70.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aio_fluid-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c7a12140b72cfb0ca9eeba1fa53e1f398657bb51168d7bfb134c99830b6b0db
MD5 2afb10b2a894c5fa3eb8d5d6884a3ac1
BLAKE2b-256 e54d8f47ead76f21e49cf6f280014d8f2b6ae83733f856151e061c815623314e

See more details on using hashes here.

Supported by

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