asphalt
asphalt copied to clipboard
Asphalt application framework (core)
This allows Asphalt to work on both trio and curio as well as retaining compatibility with asyncio.
This is important for supporting Kubernetes, Docker Swarm et al. I can see two ways to do this: 1. Introduce a YAML extension: requires unsafe mode but absolves Asphalt extensions...
It would be cool to be able to access all resources by their resource name like `ctx.serializers.json`. The names would also be accessible using dict-like access (`ctx.serializers['json']`). The biggest challenge...
updates: - [github.com/asottile/pyupgrade: v2.38.2 → v3.1.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.1.0) - [github.com/psf/black: 22.8.0 → 22.10.0](https://github.com/psf/black/compare/22.8.0...22.10.0) - [github.com/pre-commit/mirrors-mypy: v0.971 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.971...v0.982)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.5](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.5) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0)
@agronholm This is what I was thinking about, to check if container components are started. I can add tests if you think this is fine.
Now CTRL-C works fine with this example (which was not working in #105): ```py from anyio import run from asphalt.core import Component, ContainerComponent, context_teardown, run_application from fastapi import FastAPI from...
@agronholm I don't know if you figured out everything regarding task management in Asphalt v5, otherwise I thought we could discuss it here. My understanding is that with the move...
Currently, when a component requests a resource that never comes, the application times out without any information as to which component failed to get the resource: ``` ERROR:asphalt.core.runner:Timeout waiting for...