Skip to main content

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:

  1. 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!
  1. 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

  1. me (happycappa)
  2. no one else (this is a solo package)

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

cataas-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cataas-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for cataas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 986997ea08e73bee581a810b6b03cdcb899621e14a35bc7434b68136bf5d5f93
MD5 731020f71ab82bcce2feabe22234d911
BLAKE2b-256 e11084305adcae48214948735757ee48827ead2a628624c5a285502f7b110989

See more details on using hashes here.

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

Hashes for cataas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee6c159a41d6afe9df6303ac82bda5a2c612a48e4eed6adc06987ba402db64dd
MD5 ee057e8d81ef717635401ee0071d886e
BLAKE2b-256 af8a55324e2acf01416a05ca3063100ebda5e5ae9fc4eaf0fe3d7700315ed1d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page