Skip to main content

Qyin

Qyin is a python web framework that is simple and easy to use

Installation

pip install qyin

Usage

from pydantic import BaseModel, Field
from starlette.responses import JSONResponse

from qyin import (
    Qyin,
    Route,
    RouteGroup,
)


class PingRequest(BaseModel):
    req_foo: str = Field(description="foo value of the request")
    req_bar: str = Field(description="bar value of the request")


class PingResponse(BaseModel):
    resp_foo: str = Field(description="foo value of the response")
    resp_bar: str = Field(description="bar value of the response")


async def home(request):
    return JSONResponse("Homepage")


# create router 
root_router = RouteGroup(path="/")

user_router = RouteGroup(path="/user")
project_router = RouteGroup(path="/project")

user_router.post("/login",
                 home,
                 request_model=PingRequest,
                 response_ok=PingResponse)
project_router.post("/create",
                    home,
                    request_model=PingRequest,
                    response_ok=PingResponse)

root_router.add_router(user_router)
root_router.add_router(project_router)

# create qyin app
qyin = Qyin(title="qying", description="qyin is a python web framework")
qyin.set_root_router(root_router)


if __name__ == "__main__":
    import uvicorn
    uvicorn.run(qyin, host="0.0.0.0", port=8000)

Metadata

Release files for qyin 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qyin 0.1.0
File Size Uploaded Provenance
qyin-0.1.0.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qyin 0.1.0
File Interpreter ABI Platform
qyin-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 kB

Release files / qyin-0.1.0.tar.gz

Download URL qyin-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7ff47fbbb069fb4a6baba0f46190ef0942454c3d403378bae1a418df3b110268
BLAKE2b-256 checksum
How to use checksums
c7652f23b2d33858719e4d4b90f1de2f7f45cd0fd638146b90a44e070702e8c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.0 Windows/10

Release files / qyin-0.1.0-py3-none-any.whl

Download URL qyin-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f605b2690aa17d1bf060b6f3d18cccf10c7bacccd4a0d48ff2e982eadbd29640
BLAKE2b-256 checksum
How to use checksums
279fd4a684c1ccef5d6dff60bf3c308fb5fd8b2795ddd0cf6ec0fd1bad3343dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.4 CPython/3.10.0 Windows/10

Security for qyin 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page