Skip to main content

AkenoAi Python Wrapper For Plus+

Project description

AkenoAI-Lib

Open Source Love Maintenance GitHub Forks License PRs Welcome akenoai - Version PyPI - Downloads Socket Badge pre-commit.ci status

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.

Installation

pip install akenoai[fast]

Quick Start

from akenoai 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
            )
        ),
        JSONResponse()
    )
    return response

Usage

Making a GET Request

response = await BaseDev("https://example.com")._make_request(
    MakeRequest(
        method="get",
        endpoint="api/resource",
    ),
    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(return_text_response=True)
    ),
    JSONResponse(use_json={"key": "value"})
)
print(response)

Error Handling

If you encounter TypeError: _make_request() missing 1 required positional argument: '_json', ensure you're using JSONResponse() when needed.

Notes

  • When using from akenoai import *, you may run into errors. Instead, explicitly import required modules: from akenoai.types import *.

📊 Developed by:

❤️ Special Thanks To


Contributing

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

License

This project is licensed under the MIT License.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

akenoai-1.9.2.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

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

akenoai-1.9.2-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file akenoai-1.9.2.tar.gz.

File metadata

  • Download URL: akenoai-1.9.2.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for akenoai-1.9.2.tar.gz
Algorithm Hash digest
SHA256 8457dafab05f0faff26e896c94cbacc3ddefdf694f51a67d7a39d073f0927649
MD5 ed1c7cd3dcc028e60e85d16de8ad1f58
BLAKE2b-256 c1ed75981c602f6b5e947f605245eabf4401a41fa01352cb6f486d47cdac68ef

See more details on using hashes here.

File details

Details for the file akenoai-1.9.2-py3-none-any.whl.

File metadata

  • Download URL: akenoai-1.9.2-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for akenoai-1.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80b32dbb5bf2d01812ad11955cb45f26ade0a91f705795f526853dd32fead829
MD5 f72185c14eb59e3127c16ff4384210c4
BLAKE2b-256 9c8ccb8f73848d4cb1648732b1d508e640b848635afc3efb0880bd438da19267

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