RyuzakiLib Python Wrapper For API etc
Project description
RyuzakiLib
Disclaimer
[!WARNING] RyuzakiLib is used to help your account activities on Telegram
We are not responsible for what you misuse in this repository!
Be careful when using this repository!
If one of the members misuses this repository, we are forced to ban you
Never ever abuse this repository
Installing
pip3 install -U RyuzakiLib
- windows or linux
pip3 install git+https://github.com/TeamKillerX/RyuzakiLib
Import Here
from RyuzakiLib.hackertools.chatgpt import RendyDevChat
from RyuzakiLib.hackertools.github import GithubUsername
from RyuzakiLib.hackertools.rmbg import RemoveBg
from RyuzakiLib.hackertools.reverse import GoogleReverseImage
from RyuzakiLib.hackertools.ipinfo import WhoisIpHacker
from RyuzakiLib.hackertools.ocrapi import OcrApiUrl
from RyuzakiLib.hackertools.prefixes import CustomPrefixes
# or
from RyuzakiLib import *
Learn Python
import asyncio
class example_python:
@staticmethod
def hello_world():
asyncio.sleep(5)
# examples usage
example_python.hello_world()
Tutorial FastAPI
from fastapi import FastAPI
from RyuzakiLib.hackertools.chatgpt import RendyDevChat
from RyuzakiLib.hackertools.openai import OpenAiToken
app = FastAPI()
@app.get("/read")
def hello():
return {"message": "Hello World"}
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0")
- Like example this
RyuzakiLib API
- Requirements:
fastapi
andRyuzakiLib
Spamwatch
• Example usage
from RyuzakiLib import SibylBan
x = SiblyBan.ban(user_id)
xb = SiblyBan.banlist(user_id)
xub = SiblyBan.unban(user_id)
results = SiblyBan.banlist_all()
Profile Clone
• Example usage
from RyuzakiLib import Clone
message = Clone.clone() # need parameter
showing = Clone.sclone() # need parameter
print(showing)
Learn Telegram Bot API
from RyuzakiLib.bot import API
api = API(bot_token="your_token")
# supported here
api.send_message()
api.send_photo()
api.send_sticker()
api.send_audio()
api.send_document()
api.forward_message()
# you can pass
sent_message = api.send_message(chat_id=chat_id, text=text)
sent_sticker = api.send_sticker(chat_id=chat_id, sticker=sticker)
# your own developer
urls = api.telegram("SendMessage")
payload = {}
headers = {}
response = requests.post(urls, json=payload, headers=headers)
print(response.text)
Chatgpt New?
- Chatgpt's new features are available here
- parameter
from RyuzakiLib import RendyDevChat
results = RendyDevChat.chat_hacked(latest_model="list-model", list_model_all=True)
print(results)
response = RendyDevChat.chat_hacked("hello world")
print(response)
AI image Generator New?
- AI image Generator new features are available here
- parameter
from RyuzakiLib import RendyDevChat
query = "Cat in a Hat"
response = RendyDevChat.image_generator(query)
print(response)
Continue Conversation
from RyuzakiLib import OpenAiToken
api_base = "https://api.example.com/v1"
api_key = ""
query = "hello world"
response = OpenAiToken(api_key=api_key, api_base=api_base).chat_message_turbo(
query=query,
model="gpt-4",
is_stream=False
)
print(response[0])
Example Google Reverse Image
from pyrogram import Client, filters
from pyrogram.types import Message
from RyuzakiLib import GoogleReverseImage
url = "https://example/jpg"
apikey = "api key token"
response = GoogleReverseImage(url, apikey)
results = response.get_reverse()
print(results)
New Features
# Create by @xtdevs
# Prefixes Custom
from pyrogram import Client, filters
from pyrogram.types import Message
from RyuzakiLib.hackertools.prefixes import CustomPrefixes
from pymongo import MongoClient
client = MongoClient("mongodb://localhost:27017/")
db = client["your_database_name"]
collection = db["your_collection_name"]
db_name = "custom_prefixes"
user_id = message.from_user.id
prefix = [".", "+", "-"]
set_handler = CustomPrefixes(db_name, user_id, prefix, collection, True) # parameter upsert using set True or False
set_handler.add_prefixes()
now_show_prefix = set_handler.get_prefix()
print(now_show_prefix)
Gemini AI New (Free)
- No authorization needed
- Gemini Pro and Gemini Flash (Without RyuzakiLib API keys)
- Multi-Turn Conversation
from RyuzakiLib import GeminiLatest
mongo_url = "....."
api_key = "....."
user_id = 0
geni = GeminiLatest(api_keys=api_key, mongo_url=mongo_url, user_id=user_id)
# Get response (private in python)
answer, gemini_chat = geni._GeminiLatest__get_response_gemini(query)
print(answer)
- Gemini AI New : Get API key Here from Google Dev
Blackbox AI New
from RyuzakiLib import Blackbox
results = Blackbox.chat(query)
print(results)
- You can ask support @KillerXSupport
Test your bots
- git clone https://github.com/TeamKillerX/RyuzakiLib
- cd RyuzakiLib
- pip3 install -r ryuzaki.txt
- nano buildbot/secrets/env.py
- ctrl s + x to save
- bash start.sh
RyuzakiLib API
Authentication
Warning Do not expose the
__Secure-1PSID
import requests
url ="https://randydev-ryuzaki-api.hf.space/ryuzaki/gemini-ai-pro"
payload = {
"query": "hello world",
"bard_api_key": "cookie token here",
"is_login": True
}
headers = {
"accept": "application/json",
}
response = requests.post(url, headers=headers, json=payload).json()
print(response)
bard_api_key
: (optional)is_login
: defaultFalse
(optional)
- Visit https://bard.google.com/
- F12 for console
- Session: Application → Cookies → Copy the value of
__Secure-1PSID
cookie.
Note that while I referred to __Secure-1PSID
value as an API key for convenience, it is not an officially provided API key. Cookie value subject to frequent changes. Verify the value again if an error occurs. Most errors occur when an invalid cookie value is entered.
bard_api_key={__Secure-1PSID}
Tutorial Requests in Python
Request body schema
json=payload
response = requests.post(url, headers=headers, json=payload).json()
Query Parameters
params=params
response = requests.post(url, headers=headers, params=params).json()
You can find the Ryuzaki API
- Only Developed by
- Contact Support: @xtdevs
Troubleshoot
Sometimes errors occur, but we are here to help! This guide covers some of the most common issues we’ve seen and how you can resolve them. However, this guide isn’t meant to be a comprehensive collection of every 🤗 FastAPI issue. For more help with troubleshooting your issue, try:
License
TeamKillerX is licensed under GNU Affero General Public License v3 or later.
Copyright (C) 2019 - 2024 The RyuzakiLib TeamKillerX @xtdevs
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 RyuzakiLib 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/.
Contributing
- Fork the project and send pull requests
Credits
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
Built Distribution
Hashes for RyuzakiLib-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7e242a1a7500d21aacee7ee386d1cc16fd87b2caabd578ff8194c73d46eee64 |
|
MD5 | 7f377a9f08b792f7ef32a82ea8df539c |
|
BLAKE2b-256 | ff668cca6e69651c562d5093967162aed94d8bf9641328af7768f786a8a73811 |