PRSAW, an acronym for `Python Random Stuff API Wrapper`, is a wrapper for the Random Stuff API.
Project description
PRSAW 0.2.0
PRSAW, an acronym for Python Random Stuff API Wrapper
, is a wrapper for the Random Stuff API.
PyPI: https://pypi.org/project/prsaw/
Installation
You can install released versions of prsaw from the Python Package Index with pip or a similar tool:
Stable Release: pip install prsaw
Working Version: pip install git+https://github.com/CodeWithSwastik/prsaw.git
Example Usage:
# import the module
from prsaw import RandomStuff
# initiate the object
rs = RandomStuff()
# get a response from an endpoint
response = await rs.get_ai_response("How are you?")
print(response)
# close the object once done (recommended)
await rs.close()
Functions available:
The current list of asynchronous functions available are:
# endpoints
await get_joke(_type = "any") # Refer to https://api.pgamerx.com/endpoints
await get_image(_type = "any") # for all the endpoints
await get_ai_response(msg)
# others
await close() # closes the object
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
prsaw-0.2.0.tar.gz
(3.2 kB
view hashes)