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 currently under development. Currently, only the animal
, animu
and canvas
categories of APIs are available in stable version, but we're working to add more.
Cloning the Repository
If you want to work with the development version of sra-pylib, you can clone the repository and install it using pip:
pip install git+https://github.com/Sayad-Uddin-Tahsin/sra-pylib.git
This will install the package from the cloned repository.
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.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 249d9fd8a950425f03bd8685bf4d3c753a9dff504681c1ad0b4407dc9464acc6 |
|
MD5 | 300f6073381a4770d2c23ecbf716b2a2 |
|
BLAKE2b-256 | a09e157f77a64b09dbf8cfda9f797719d69f4c0bcf2f43fc438e1f4e633604d6 |