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 details)
File details
Details for the file sra_py-1.5.tar.gz
.
File metadata
- Download URL: sra_py-1.5.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.4.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c18af90bf9994f2327dbfafaf0534d71178fe7a67d134042642bacf772bc8b58 |
|
MD5 | 1fc5111a2e3039f4f934616ae507e1fe |
|
BLAKE2b-256 | f1e88f109fba13ff45e8a68c96b7d90562ea7f162fcc225a5e557461c53506f4 |