Skip to content

(DEPRICATED: needs to be updated to API v2) An asynchronous api wrapper for my api (FusionSidsAPI)

License

Notifications You must be signed in to change notification settings

FusionSid/FusionSidAPI.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeFactor Downloads PyPi-Version

FusionSidAPI Wrapper for python

An asynchronous api wrapper to use FusionSidAPI in python.

Docs url

Root Url (redirects to docs): https://api.fusionsid.xyz/


Install:

You can install this library from PyPi: Link

Install with pip:

pip install fusionsidsapi

Need Help

Docs

This package has docs

Go to this url https://fusionsid.github.io/FusionSidAPI.py/
or look in the Enviroments tab for the latest github pages deployment

Help Function

Each class and function has a doc string so if you need help with anything in the pacakge just use the built in python function help()

eg:

import fusionsid

# Example 1
help(fusionsid.RandomMeme)
help(fusionsid.GenerateMeme)

# Example 2
help(fusionsid.Image.qrcode)
help(fusionsid.Fun.truth_or_dare)

Examples:

Look in the examples folder for some examples

Example for getting a roast:

import asyncio
from fusionsid import Fun

async def main():
    roast = await Fun.roast()
    print(roast)

loop = asyncio.new_event_loop()
loop.run_until_complete(main())

This package also has some decorators (also in the examples folder) so if you want a complement before your code is run heres how:

import asyncio
from fusionsid import Decorators

do_compliment = Decorators.compliment

@do_compliment()
async def main():
    print("Wassup")

loop = asyncio.new_event_loop()
loop.run_until_complete(main())


CLI Tool

Typing fusionsid in terminal or python3 -m fusionsid will bring up the mini cli thing i made for this module.

It can let you use the api in terminal in a fast and easy way.

Use: fusionsid --help or python3 -m fusionsid --help for help


Changelog:

You can checkout the changes per version in CHANGELOG.txt


Contact:

If you find a bug please make an issue, I will try my best to fix it :)

Discord: FusionSid#3645 My Github