Skip to main content

python api hub | PragyanAPI

Project description

PragyanAPI 🚀

Chatgpt AI 🤖

from PragyanAPI import api

# Execute Chatgpt AI with the input text

response = api.chatgpt("Write simple basic html website")

print(response)

# Execute Chatgpt AI with the input text with modes features

# available modes are "girlfriend","anime","animev2","flirt","santa","elonmusk"

response = api.chatgpt("hi babe","girlfriend")

print(response)

Chatbot AI 🤖

from PragyanAPI import api

# Execute Chatbot AI with the input text

print(api.chatbot("hii"))

Blackbox AI 🤖

from PragyanAPI import api

# Execute blackbox AI with the input text

print(api.blackbox("write flask app code"))

Password Generator 💡

from PragyanAPI import api

# Generate a default length password
print(api.password())

# Generate a password of specific length (e.g., 10)
print(api.password(10))

Gemini AI 🤖

from PragyanAPI import api

# Execute Gemini AI with the input text

print(api.gemini("write flask app code"))

Datagpt AI 🤖

from PragyanAPI import api

# Execute datagpt AI with the input text
response = api.datagpt("what is data science")
print(response)

BhagwatGita

from PragyanAPI import api
verse_data = api.bhagwatgita(1, 5)
print(verse_data)

IMDB Search

from PragyanAPI import api


movie_data = api.imdb("The Godfather")

print(movie_data)

Morse Decode

from PragyanAPI import api

decoded_result =api.morse_decode(".... . .-.. .-.. --- / .-- --- .-. .-.. -..")

print(decoded_result)

Morse Encode

from PragyanAPI import api
encoded_result =api.morse_encode("enter text here")
print(encoded_result)

Hastag Generator

from PragyanAPI import api
keyword = "python"
hashtags = api.hashtag(keyword)
print(hashtags)

Unsplash Image Search

from PragyanAPI import api
response = api.unsplash("boy image")
print(response)

LeetCode Information

from PragyanAPI import api

user_data = api.leetcode("PragyanCoder")
print(user_data)

Pypi Info

from PragyanAPI import api
user_data = api.pypi("PragyanAPI")
print(user_data)

Github Profile Information

from PragyanAPI import api
search_results = api.github("PragyanCoder")
print(search_results)

Github Repo Search

from PragyanAPI import api
search_results = api.repo("AnnayanXMusic")
print(search_results)

Random Meme

from PragyanAPI import api
search_results = api.meme()
print(search_results)

Please note that you need to install PragyanAPI using pip by running pip install --upgrade PragyanAPI in your terminal before executing these codes.

Note:

The above examples are for Python

Copyright (c) 2024-25

Author : Noob-Pragyan 👨‍💻

Functions in the api module are as follows:

  1. chatgpt(args) - Executes chatgpt AI functionality
  2. gemini(args) - Executes Gemini AI functionality
  3. blackbox(args) - Executes blackbox AI functionality 🔮
  4. hastag(args) - Generates hashtags based on input
  5. imdb(args) - Fetches information from IMDB
  6. morse_encode(args) - Encodes text into Morse code
  7. morse_decode(args) - Decodes Morse code into text
  8. leetcode(args) - Extract leetcode information by username
  9. password(args) - Generates a random password
  10. pypi(args) - Search PyPI for packages
  11. datagpt(args) - Generates data using Datasets from datagpt ai
  12. unsplash(args) - search hd image from unsplash website
  13. github(args) - Extract github information by username
  14. repo(args) - Extract github repo by name
  15. Meme - Generate memes

🔗 Have fun coding with PragyanAPI

─「 sᴜᴩᴩᴏʀᴛ 」─

Download files

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

Source Distribution

pragyanapi-0.6.5.6.tar.gz (1.2 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page