Tous les langages et frameworks
Python one-liner Python
Un extrait Python pour Python one-liner qui répond aux requêtes sur /pixel.gif avec le GIF vide, décodé une seule fois au démarrage.
Python one-liner Python
python3 -c "import base64, pathlib; pathlib.Path('pixel.gif').write_bytes(base64.b64decode('R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='))"
Nous avons exécuté cet extrait et comparé les octets qu’il a renvoyés.
Site officiel: Python one-liner
Autres extraits en Python
- AWS Lambda (Python)
- Google Cloud Run functions (Python)
- FastAPI
- Litestar
- Starlette
- Django
- Flask
- aiohttp
- Sanic
- Quart
- Falcon
- Robyn
- BlackSheep
- Tornado
- Bottle
- Pyramid
- Microdot (CPython and MicroPython)
- Raw ASGI (Uvicorn, Granian, Hypercorn)
- Raw WSGI (Gunicorn, uWSGI, mod_wsgi)
- Python standard library (http.server)
- FastHTML