A Wrapper of some-random-api for Python
Project description
sra-pylib
sra-pylib
is a Python wrapper for some-random-api.
import sra
>>> print(sra.animal.Panda.image_link) # Prints a Panda Image link
"https://i.imgur.com/YVLrUO9.jpg"
>>> print(sra.animal.Panda.fact) # Prints a Panda Fact
"Giant pandas have been driven out of the lowland areas where they used to live and now are found only in the Chinese provinces of Sichuan, Gansu, and Shaanxi. The forests in these provinces are very damp and rainy. In one year, a forest may receive up to 50 inches of rain and snow."
>>> sra.animal.Panda.save_image() # Saves the Image
With sra-pylib
, you can easily access the various endpoints of some-random-api
in your Python projects, making it a powerful tool for working with image, fact, and other types of data.
Installation
You can install sra-pylib
using pip
:
python -m pip install sra-pylib
sra-pylib
requires Python 3.7 or later.
Endpoints
sra-pylib
is synced with some-random-api. It has all the Endpoints provided by some-random-api except the Premium ones.
Documentation
Full documentation for the sra-pylib module can be found on Wiki. The documentation includes detailed information on how to use the module, including examples and reference documentation for all classes and methods.
If you have any questions or issues with the module, please refer to the documentation or submit a bug report on the GitHub issues page.
Cloning the Repository
You also can install sra-pylib directly from Github, by using this pip command:
pip install git+https://github.com/Sayad-Uddin-Tahsin/sra-pylib.git
This will install the package directly from the repository.
License
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
Built Distribution
Hashes for sra_pylib-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5656af79063e48513ce8c7088b96f78370562fad142f868f3df96f11dc0961e6 |
|
MD5 | 2bf7c28f104f04b570e53ef75d0e8bea |
|
BLAKE2b-256 | e9c599b3713064ea32f7508dbb239a6e3e8766152047cd96e018dd544ba430a2 |