A unofficial Python wrapper for the CataaS REST API.
Project description
Unofficial CataaS Python Wrapper
This is an unofficial Python wrapper for the CataaS (Cat as a Service) REST API.
Here is it's offical website: https://cataas.com/
I created this since i'm pretty bored and I don't wanna keep having to use the python requests package everytime I want to use the CataaS API!
Why would I want to use this?
You can use this, like me, to have a shortcut on using the CataaS API in Python without needing to
import the requests library everytime, which i'd say is a better upgrade than the harder way.
Usage
Here's some examples on how to use this package:
- Getting a cat image
import cataas
cat = cataas.cat()
print(cat)
# Returns a normal cat image by URL
cat = cataas.catsays('Hello world!')
print(cat)
# Returns a cat image that has text by URL
# Filters are supported too!
cat = cataas.cat(width=500, height=700) # Kwargs are included
print(cat)
# Returns a cat image thats (probably) exactly 500 by 700 pixels!
- Getting a cat gif
import cataas
cat = cataas.catgif()
print(cat)
# Returns a normal cat gif by URL
# Note: The normal catgif function doesn't support filters, but the says version does!
cat = cataas.catgif_says('Hello world!')
print(cat)
# Returns a cat gif that has text by URL
Other functions are included too but i'm too lazy to explain them.
Credits
- me (happycappa)
- no one else (this is a solo package)
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cataas-0.1.0.tar.gz.
File metadata
- Download URL: cataas-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
986997ea08e73bee581a810b6b03cdcb899621e14a35bc7434b68136bf5d5f93
|
|
| MD5 |
731020f71ab82bcce2feabe22234d911
|
|
| BLAKE2b-256 |
e11084305adcae48214948735757ee48827ead2a628624c5a285502f7b110989
|
File details
Details for the file cataas-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cataas-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6c159a41d6afe9df6303ac82bda5a2c612a48e4eed6adc06987ba402db64dd
|
|
| MD5 |
ee057e8d81ef717635401ee0071d886e
|
|
| BLAKE2b-256 |
af8a55324e2acf01416a05ca3063100ebda5e5ae9fc4eaf0fe3d7700315ed1d9
|