Faststream

Latest version: v0.5.35

Safety actively analyzes 715032 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 14

0.5.29

What's Changed

* feat: add explicit message source enum by Lancetnik in https://github.com/airtai/faststream/pull/1866
* Change uv manual installation to setup-uv in CI by pavelepanov in https://github.com/airtai/faststream/pull/1871
* refactor: make Task and Concurrent mixins broker-agnostic by Lancetnik in https://github.com/airtai/faststream/pull/1873
* Add support for environment variables in faststream run command by ulbwa in https://github.com/airtai/faststream/pull/1876
* fastapi example update by xodiumx in https://github.com/airtai/faststream/pull/1875
* Do not import `fake_context` if not needed by sobolevn in https://github.com/airtai/faststream/pull/1877
* build: add warning about manual lifespan_context by vectorvp in https://github.com/airtai/faststream/pull/1878
* Add trending badge by davorrunje in https://github.com/airtai/faststream/pull/1882
* feat: add class method to create a baggage instance from headers by vectorvp in https://github.com/airtai/faststream/pull/1885
* ops: update docker compose commands to compose V2 in scripts by vectorvp in https://github.com/airtai/faststream/pull/1889

New Contributors
* pavelepanov made their first contribution in https://github.com/airtai/faststream/pull/1871
* xodiumx made their first contribution in https://github.com/airtai/faststream/pull/1875
* sobolevn made their first contribution in https://github.com/airtai/faststream/pull/1877
* vectorvp made their first contribution in https://github.com/airtai/faststream/pull/1878

**Full Changelog**: https://github.com/airtai/faststream/compare/0.5.28...0.5.29

0.5.28

What's Changed

There were a lot of time since [**0.5.7 OpenTelemetry** release](https://github.com/airtai/faststream/releases/tag/0.5.7) and now we completed **Observability** features we planned! **FastStream** supports **Prometheus** metrics in a native way!

Special thanks to roma-frolov and draincoder (again) for it!

To collect **Prometheus** metrics for your **FastStream** application you just need to install special distribution

cmd
pip install faststream[prometheus]


And use **PrometheusMiddleware**. Also, it could be helpful to use our [**ASGI**](https://faststream.airt.ai/latest/getting-started/asgi/) to serve metrics endpoint in the same app.

python
from prometheus_client import CollectorRegistry, make_asgi_app
from faststream.asgi import AsgiFastStream
from faststream.nats import NatsBroker
from faststream.nats.prometheus import NatsPrometheusMiddleware

registry = CollectorRegistry()

broker = NatsBroker(
middlewares=(
NatsPrometheusMiddleware(registry=registry),
)
)

app = AsgiFastStream(
broker,
asgi_routes=[
("/metrics", make_asgi_app(registry)),
]
)


Moreover, we have a ready-to-use [**Grafana** dashboard](https://grafana.com/grafana/dashboards/22130-faststream-metrics/) you can just import and use!

To find more information about **Prometheus** support, just visit [our documentation](https://faststream.airt.ai/latest/getting-started/prometheus/).

All changes

* docs: Correct minimum FastAPI version for lifespan handling by tim-hutchinson in https://github.com/airtai/faststream/pull/1853
* add aiogram example by IvanKirpichnikov in https://github.com/airtai/faststream/pull/1858
* Feature: Prometheus Middleware by roma-frolov in https://github.com/airtai/faststream/pull/1791
* Add in-progress tutorial to how-to section by sheldygg in https://github.com/airtai/faststream/pull/1859
* docs: Add info about Grafana dashboard by draincoder in https://github.com/airtai/faststream/pull/1863

New Contributors

* tim-hutchinson made their first contribution in https://github.com/airtai/faststream/pull/1853

**Full Changelog**: https://github.com/airtai/faststream/compare/0.5.27...0.5.28

0.5.27

What's Changed

* fix: anyio major version parser by dotX12 in https://github.com/airtai/faststream/pull/1850

New Contributors
* dotX12 made their first contribution in https://github.com/airtai/faststream/pull/1850

**Full Changelog**: https://github.com/airtai/faststream/compare/0.5.26...0.5.27

0.5.26

What's Changed

This it the official **Python 3.13** support! Now, **FastStream** works (and tested) at **Python 3.8 - 3.13** versions!

Warning: **Python3.8** is EOF since **3.13** release and we plan to drop it support in **FastStream 0.6.0** version.

Also, current release has little bugfixes related to **CLI** and **AsyncAPI** schema.

* fix: asgi docs by Sehat1137 in https://github.com/airtai/faststream/pull/1828
* docs: add link to RU TG community by Lancetnik in https://github.com/airtai/faststream/pull/1831
* docs: add dynaconf NATS HowTo example by sheldygg in https://github.com/airtai/faststream/pull/1832
* Fix AsyncAPI 2.6.0 operation label by KrySeyt in https://github.com/airtai/faststream/pull/1835
* fix: correct CLI factory behavior by Lancetnik in https://github.com/airtai/faststream/pull/1838
* Autocommit precommit changes by kumaranvpl in https://github.com/airtai/faststream/pull/1840
* Add devcontainers supporting all the brokers by kumaranvpl in https://github.com/airtai/faststream/pull/1839
* Replace async Event with bool by Olegt0rr in https://github.com/airtai/faststream/pull/1846
* Add support for Python 3.13 by davorrunje in https://github.com/airtai/faststream/pull/1845

**Full Changelog**: https://github.com/airtai/faststream/compare/0.5.25...0.5.26

0.5.25

What's Changed

* fix: CLI hotfix by Lancetnik in https://github.com/airtai/faststream/pull/1816

**Full Changelog**: https://github.com/airtai/faststream/compare/0.5.24...0.5.25

0.5.24

What's Changed

* Replace while-sleep with Event by Olegt0rr in https://github.com/airtai/faststream/pull/1683
* feat: add explicit CLI import error by Lancetnik in https://github.com/airtai/faststream/pull/1785
* fix (1780): replace / in generated json refs by Lancetnik in https://github.com/airtai/faststream/pull/1786
* Fix: this commit resolve 1765 by Flosckow in https://github.com/airtai/faststream/pull/1789
* fix (1792): make RMQ publisher.publish reply_to optional by Lancetnik in https://github.com/airtai/faststream/pull/1795
* fix (1793): FastStream Response support in FastAPI integration by Lancetnik in https://github.com/airtai/faststream/pull/1796
* Update exception.md by pepellsd in https://github.com/airtai/faststream/pull/1803
* Fixes the CI bug that allows PRs with failed tests to be merged. by davorrunje in https://github.com/airtai/faststream/pull/1807
* feat: add CLI support for AsgiFastStream by Sehat1137 in https://github.com/airtai/faststream/pull/1782
* docs: add contributors page by kumaranvpl in https://github.com/airtai/faststream/pull/1808
* fix: correct dependency injection of custom context fields implementing partial __eq__/__ne__ by antoinehumbert in https://github.com/airtai/faststream/pull/1809
* do not assume discriminator is not a property by lecko-cngroup in https://github.com/airtai/faststream/pull/1811

New Contributors

* Olegt0rr made their first contribution in https://github.com/airtai/faststream/pull/1683
* pepellsd made their first contribution in https://github.com/airtai/faststream/pull/1803
* antoinehumbert made their first contribution in https://github.com/airtai/faststream/pull/1809
* lecko-cngroup made their first contribution in https://github.com/airtai/faststream/pull/1811

**Full Changelog**: https://github.com/airtai/faststream/compare/0.5.23...0.5.24

Page 2 of 14

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.