对 FastApi 进行二次封装的简易 HTTP Web 服务 SDK
Project description
AmiyaHttp
对 FastAPI 进行二次封装的简易 HTTP Web 服务 SDK
import asyncio
from amiyahttp import HttpServer
server = HttpServer(host='0.0.0.0', port=8088)
@server.controller
class Bot:
@server.route(method='get')
async def get_name(self):
return 'AmiyaBot'
@server.route(method='post')
async def say_hello(self):
return server.response(message='hello')
asyncio.run(server.serve())
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file amiyahttp-0.0.2-py3-none-any.whl.
File metadata
- Download URL: amiyahttp-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc85b8daaa2ebe6c37298036f03f7d295d1861042643799b532dd19472febf6c
|
|
| MD5 |
404425bd537dc8f8412a456ab5bbd13a
|
|
| BLAKE2b-256 |
21625ad4af821a0d788f21f4b5cedc4d1feca8c32b596616802803041f01ef7f
|