4 ms·
You should also check out starlette and other supporting projects that Tom Christie (of DRF fame) is working on right now. Both FastAPI and Responder are thin w
by m_ke 8y ago
You should also check out starlette and other supporting projects that Tom Christie (of DRF fame) is working on right now. Both FastAPI and Responder are thin wrappers around starlette.
Tom Christie has been quietly building what's starting to look like an async first decoupled version of django:
- https://github.com/encode/starlette https://github.com/encode/starlette
- https://github.com/encode/orm https://github.com/encode/orm
- https://github.com/encode/typesystem https://github.com/encode/typesystem
- https://github.com/encode/databases https://github.com/encode/databases
- https://github.com/encode/apistar https://github.com/encode/apistar
- https://github.com/encode/uvicorn https://github.com/encode/uvicorn
- tiangolo 8y agoYep, FastAPI is based on Starlette, heavily inspired by the (now "deprecated") APIStar. What it adds is automatic data validation, serialization, and documentation, with Python type hints. All using Pydantic. So, you declare request parameters and bodies with standard Python type hints (even for deeply nested JSON bodies) and it automatically does all that. It also has a simple but powerful dependency injection system. And thanks to Tom Christie's work, it is compatible with all those tools too (databases, orm, uvicorn, all from Starlette, etc).
- deleted 8y ago[deleted]