Skip to main content

对 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

If you're not sure about the file name format, learn more about wheel file names.

amiyahttp-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file amiyahttp-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: amiyahttp-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for amiyahttp-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba756ef32df7eb943256d9dbe5d04c4d268bb5168e240cf9cf09d99a86aeaa1
MD5 d4046e4402b3677b2b36ce69eacc9af9
BLAKE2b-256 edac702bec9b7dddf9303414c442423de56c45781c8ee7384eaccf66470b514d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page