Skip to content

AkenoAI-Lib is a high-performance library for making raw HTTP requests, powered by aiohttp. It provides a simple yet powerful syntax for handling API requests efficiently, ensuring speed and flexibility.

License

Notifications You must be signed in to change notification settings

TeamKillerX/akenoai-lib

Repository files navigation

AkenoAI-Lib

Open Source Love Maintenance License PRs Welcome akenoai - Version pre-commit.ci status

Downloads

AkenoAI-Lib is a high-performance library for making raw HTTP requests, powered by aiohttp. It provides a simple yet powerful syntax for handling API requests efficiently, ensuring speed and flexibility.

Features:

  • Asynchronous Requests – Fully utilizes aiohttp for non-blocking HTTP calls.
  • Optimized Performance – Designed for speed and low-latency API interactions.
  • Flexible Request Handling – Supports JSON, form-data, and custom headers.
  • Built-in Response Serialization – Easily parse and structure API responses.
  • Lightweight & Scalable – Minimal dependencies with a focus on performance.
  • Optional: JSONResponse, HeaderOptions

Important

AkenoAI-Lib: (Closed for updates) There won’t be new updates, but if the raw method is stable, there’s no need to panic about updates causing errors.

Installation

pip install akenoai[fast]

Quick Start

from akenoai.base import BaseDev
from akenoai.types import MakeRequest, RequestOptions, JSONResponse

async def fetch_data():
    response = await BaseDev("https://api.example.com")._make_request(
        MakeRequest(
            method="get",
            endpoint="data/list",
            options=RequestOptions(serialize_response=True)
        )
    )
    return response

Usage

Making a GET Request

response = await BaseDev("https://example.com")._make_request(
    MakeRequest(
        method="get",
        endpoint="api/resource",
        json_response=JSONResponse()
    )
)
print(response)

Sending a POST Request with JSON Data

response = await BaseDev("https://example.com")._make_request(
    MakeRequest(
        method="post",
        endpoint="api/create",
        options=RequestOptions(),
        json_response=JSONResponse(use_json={"key": "value"})
    )
)
print(response)

📊 Developed by:

❤️ Special Thanks To


Contributing

Feel free to open issues and contribute to the development of AkenoAI-Lib!

Donation

  • Your donation helps us continue our work!

To send payments via DANA, use the following Bank Jago account number:

Bank Jago: 100201327349

License

This project is licensed under the MIT License.

About

AkenoAI-Lib is a high-performance library for making raw HTTP requests, powered by aiohttp. It provides a simple yet powerful syntax for handling API requests efficiently, ensuring speed and flexibility.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 5

Languages