Skip to main content

Asyncs Web Libary.

A fast, asynchronous, and modular web framework for Python.

Getting Started

To use Asyncs, simply install it via pip:

$ pip install asyncs

Then, create a new Python file and import the library:

from asyncs import Asyncs, Request
from asyncs.response import JSONResponse, HTMLResponse

Example Usage

Here's a simple example of creating a web application with Asyncs:

from asyncs import Asyncs, Request
from asyncs.response import JSONResponse, HTMLResponse

app = Asyncs()

@app.get("/")
async def index(request: Request) -> JSONResponse:
    return JSONResponse(status_code=200, content={"result": "Hello World!"})

@app.get("/index")
async def index(request: Request) -> HTMLResponse:
    with open("index.html", encoding="utf-8") as f:
        content = await f.read()

        return HTMLResponse(status_code=200, content=content, variables={
            "request": request,
            "name": "Dmitry"
        })

if __name__ == "__main__":
    app.run(host="localhost", port=8080)

Key Features

  • Asynchronous: Asyncs is built on top of Python's asyncio library, allowing for fast and efficient handling of concurrent requests.
  • Speed: Asyncs is designed to be fast and lightweight, making it perfect for high-performance web applications.
  • Modular: Asyncs allows you to split your application into multiple files and routers, making it easy to manage and maintain large projects.
  • Routing: Asyncs supports routing for GET, POST, PUT, and DELETE requests, making it easy to create RESTful APIs.
  • Logger: Asyncs comes with a built-in logger that provides detailed information about requests and responses.

Documentation

For more information on using Asyncs, please see the full documentation.

License

Asyncs is licensed under the MIT License. See LICENSE for more information.

Metadata

Release files for asyncs 1.0.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 asyncs 1.0.0
File Size Uploaded Provenance
asyncs-1.0.0.tar.gz 7.5 kB Without provenance Details

Release files / asyncs-1.0.0.tar.gz

Download URL asyncs-1.0.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
02288ad4954683f2f4d1d935b2361d9633680019bb2e991448f4414507bb604f
BLAKE2b-256 checksum
How to use checksums
a43cc46c2eeba56c1646997e8918fc2eaa203d0b932b106abf3f1a5e090533f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Security for asyncs 1.0.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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file 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