Teke
Teke is a lightweight ASGI framework that you can use to create fast async REST APIs with Python.
Requirements
Python 3.10+
Installation
$ pip install teke
You'll also want to install an ASGI server, such as uvicorn, daphne, or hypercorn.
$ pip install uvicorn
Example
example.py:
from teke import JsonResponse, Router, create_app
router = Router()
@router.route("/hello/<name>")
async def hello(connection, name):
return JsonResponse({"hello": name})
app = create_app(routers=[router])
Then run the application using Uvicorn:
$ uvicorn example:app
Run uvicorn with --reload to enable auto-reloading on code changes.
For a more complete example, see exampleshere.
Coming soon:
- WebSocket support
- Lifecycle hooks
- CORS middleware
Dependencies
teke depends on the following python packages:
- anyio
- uvloop
- Werkzeug
Metadata
Release files for teke 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| teke-0.0.1.tar.gz | 6.5 kB | Without provenance | Details for teke-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| teke-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for teke-0.0.1-py3-none-any.whl |
Total release size: 13.3 kB
Release files / teke-0.0.1.tar.gz
| Download URL | teke-0.0.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6c9ed89a640f8130656e9800607f47679e57e263c3e4303cbfa37dbcac5eb65
|
|
BLAKE2b-256 checksum How to use checksums |
c8a223a9c982a525f2a59b93641f81c6330ef0aa21ec97c9c0a916cbaaca829b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.23.0
|
Release files / teke-0.0.1-py3-none-any.whl
| Download URL | teke-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
52a690dc6d44b66537d6bfa3bbbc809516943bca720f3afe383a032cd7a01ac6
|
|
BLAKE2b-256 checksum How to use checksums |
68a5c328b339a37eb826dd91b5bb7019c6c103ea98d27b5fcccbcb234298735a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.23.0
|
Security for teke 0.0.1
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.