Python wrapper for some-random-api.ml
Project description
sra_py
A python wrapper for some-random-api
Requirements
Installation
pip install sra_py
Examples
# Random Dog Image
import sra_py as sra
dog = sra.dog()
print(dog)
#####
# Lyrics
import sra_py as sra
ly = sra.lyrics("song title goes here")
print(f'Title - {ly.title}\nAuthor - {ly.author}\n\n{ly.lyrics}')
#####
# Meme
import sra_py as sra
import os
m = sra.meme()
m.save("meme.png")
os.startfile("meme.png")
Links
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
sra_py-1.5.tar.gz
(4.8 kB
view hashes)