Metadata-Version: 2.2
Name: akenoai
Version: 1.4.6
Summary: AkenoAi Python Wrapper For Plus+
Author: TeamKillerX
License: MIT
Project-URL: Source, https://github.com/TeamKillerX/akenoai-lib/
Project-URL: Issues, https://github.com/TeamKillerX/akenoai-lib/issues
Keywords: API,akeno-lib
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Requires-Python: ~=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Provides-Extra: fast
Requires-Dist: aiohttp; extra == "fast"
Requires-Dist: wget; extra == "fast"
Requires-Dist: requests; extra == "fast"
Requires-Dist: httpx[http2]; extra == "fast"
Requires-Dist: python-box; extra == "fast"
Requires-Dist: starlette; extra == "fast"
Requires-Dist: uvicorn[standard]; extra == "fast"
Requires-Dist: fastapi[all]; extra == "fast"
Provides-Extra: standard
Requires-Dist: g4f; extra == "standard"
Requires-Dist: httpx[http2]; extra == "standard"
Requires-Dist: typing; extra == "standard"
Requires-Dist: aiohttp; extra == "standard"
Requires-Dist: bs4; extra == "standard"
Requires-Dist: openai; extra == "standard"
Requires-Dist: google-generativeai; extra == "standard"
Requires-Dist: curl_cffi; extra == "standard"
Requires-Dist: motor; extra == "standard"
Requires-Dist: typing-extensions; extra == "standard"
Requires-Dist: huggingface-hub>=0.23.2; extra == "standard"
Requires-Dist: authlib; extra == "standard"
Requires-Dist: gpytranslate; extra == "standard"
Requires-Dist: fastapi[all]; extra == "standard"
Requires-Dist: uvicorn[standard]; extra == "standard"
Requires-Dist: kurigram; extra == "standard"
Provides-Extra: all
Requires-Dist: aiohttp; extra == "all"
Requires-Dist: aiofiles; extra == "all"
Requires-Dist: kurigram; extra == "all"
Requires-Dist: bs4; extra == "all"
Requires-Dist: google-search-results; extra == "all"
Requires-Dist: httpx[http2]; extra == "all"
Requires-Dist: Python-IO; extra == "all"
Requires-Dist: Pillow; extra == "all"
Requires-Dist: openai; extra == "all"
Requires-Dist: tqdm; extra == "all"
Requires-Dist: pre-commit; extra == "all"
Requires-Dist: gpytranslate; extra == "all"
Requires-Dist: Flask; extra == "all"
Requires-Dist: pymongo; extra == "all"
Requires-Dist: pytz; extra == "all"
Requires-Dist: urllib3; extra == "all"
Requires-Dist: pydantic; extra == "all"
Requires-Dist: typing-extensions; extra == "all"
Requires-Dist: typing; extra == "all"
Requires-Dist: deprecation; extra == "all"
Requires-Dist: psutil; extra == "all"
Requires-Dist: screeninfo; extra == "all"
Requires-Dist: g4f; extra == "all"
Requires-Dist: curl_cffi; extra == "all"
Requires-Dist: google-generativeai; extra == "all"
Requires-Dist: gradio-client; extra == "all"
Requires-Dist: gradio; extra == "all"
Requires-Dist: huggingface-hub>=0.23.2; extra == "all"
Requires-Dist: motor; extra == "all"
Requires-Dist: wget; extra == "all"
Requires-Dist: uvicorn[standard]; extra == "all"
Requires-Dist: fastapi[all]; extra == "all"
Requires-Dist: authlib; extra == "all"
Requires-Dist: numpy; extra == "all"
Requires-Dist: python-dateutil; extra == "all"
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: keywords
Dynamic: license
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# akenoai-lib
[![Open Source Love](https://badges.frapsoft.com/os/v2/open-source.png?v=103)](https://github.com/TeamKillerX/akenoai-lib)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-Yes-green)](https://github.com/TeamKillerX/akenoai-lib/graphs/commit-activity)
[![GitHub Forks](https://img.shields.io/github/forks/TeamKillerX/akenoai-lib?&logo=github)](https://github.com/TeamKillerX/akenoai-lib)
[![GitHub Stars](https://img.shields.io/github/stars/TeamKillerX/akenoai-lib?&logo=github)](https://github.com/TeamKillerX/akenoai-lib/stargazers)
[![Last commit](https://img.shields.io/github/last-commit/TeamKillerX/akenoai-lib?&logo=github)](https://github.com/TeamKillerX/akenoai-lib)
[![Size](https://img.shields.io/github/repo-size/TeamKillerX/akenoai-lib?color=green)](https://github.com/TeamKillerX/akenoai-lib)
[![Contributors](https://img.shields.io/github/contributors/TeamKillerX/akenoai-lib?color=green)](https://github.com/TeamKillerX/akenoai-lib/graphs/contributors)
[![License](https://img.shields.io/badge/License-GPL-pink)](https://github.com/TeamKillerX/akenoai-lib/blob/main/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://makeapullrequest.com)
[![akenoai - Version](https://img.shields.io/pypi/v/akenoai?style=round)](https://pypi.org/project/akenoai)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/akenoai?label=DOWNLOADS&style=round)](https://pypi.org/project/akenoai)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/TeamKillerX/akenoai-lib/main.svg)](https://results.pre-commit.ci/latest/github/TeamKillerX/akenoai-lib/main)

### installation
🔹 <b>Recommended Installation:</b>

✅ Install via [`PYPI`](https://pypi.org/project/akenoai) for the latest updates. e.g.: `pip3 install akenoai[fast]`

### FastAPI Demo
- Use `main.py`
- Try running `python3 main.py`
```py
from akenoai.runner import run_fast

# run_fast initializes a FastAPI server with example routes and configurations.

run_fast()
```

### Code examples
> [!TIP]
> Trip PRO Usage Example:

- Use Access API key V2 Premium
```py
import json
from akenoai import AkenoXToJs

chat_history = [
    {"role": "User", "message": "hello world"},
    {"role": "Chatbot", "message": "Hello! How can I assist you today?"}
]

response = await AkenoXToJs.randydev(
    "ai/cohere/command-plus",
    api_key="<your_api_key>",
    custom_dev_fast=True,
    query="what is AkenoX AI?",
    chatHistory=json.dumps(chat_history),
    system_prompt="You are a helpful AI assistant designed to provide clear and concise responses."
)

print(response)
```
- Use API Key V1 Free
```py
from akenoai import AkenoXToJs

response = await AkenoXToJs.randydev(
    "ai/openai/gpt-old",
     custom_dev_fast=True,
     query="hello world"
)
print(response)
```
<b>Output:</b>
```py
{'results': 'Deepseek is a Chinese company that specializes in underwater robotics and autonomous underwater vehicles. They provide solutions for underwater exploration and research, as well as services for inspecting and maintaining underwater infrastructure. Their technology is used in various industries including marine science, aquaculture, and offshore energy.\n\nPowered By xtdevs'}
```
🔹 <b>Method Definition:</b>
```py
randydev(endpoint, api_key=None, post=False, custom_dev_fast=False, **params)
```
🔹 <b>User Creation Date:</b>
```py
import os
from akenoai import AkenoXToJs

response = await AkenoXToJs.randydev(
    "user/creation-date",
    custom_dev_fast=True,
    user_id=client.me.id
)
return response
```
### API Key
> [!NOTE]
> How to Get an API Key for AkenoX API?
>
> Different V1 Free and V2 Access Premium
>
> You can set up your API key using environment variables:
```env
AKENOX_KEY=akeno_xxxxxx
```
- To get an API key, [`@aknuserbot`](https://t.me/aknuserbot)

- 🚀 Thank you to our 2.7 million users per request!

### Problem Double Fix:
🛠️ **Double Fix for Connection Issues**
- ❌ **Cannot connect to host**
- 🚫 **IP address blocked issue**
- 🌐 **Different DNS settings**

# Contributing
If you find a bug or have a feature request, please open an issue on our GitHub repository.

We welcome contributions from the community. If you'd like to contribute, please fork the repository and submit a pull request.

# License
[![License](https://www.gnu.org/graphics/agplv3-155x51.png)](LICENSE)
TeamKillerX is licensed under [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.en.html) v3 or later.

<h4 align="center">Copyright (C) 2019 - 2025 The AkenoAI <a href="https://github.com/TeamKillerX">TeamKillerX</a>
<a href="https://t.me/xtdevs">@xtdevs</a>
</h4>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project [akenoai-lib](https://github.com/TeamKillerX/) is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
