Skip to main content

Python wrapper for some-random-api.ml

Project description

sra_py

A python wrapper for some-random-api

Requirements

Python 3.8.6 or more

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

Documentation
Some Random API
PyPI

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)

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