Skip to main content

Python wrapper for making secure requests to TheCatAPI

Project description

TheCatAPI Python SDK

Python wrapper for making secure requests to TheCatAPI

Getting started

  • Create an account on TheCatAPI.com
  • An API Key will be sent to you via mail

Installation

pip install thecatapi-sdk

from thecatapi import TheCatAPI

# create an instance
catapi = TheCatApi("API_KEY HERE")

Sample request

# List of images
catapi.images.get_images(limit=10)

-------------------------

# Get image by image ID 
catapi.images.get_image('2bbSbBC-v')

-------------------------

# list votes
catapi.votes.get_votes()

Read full documentation here

Contribution & Issues

  • Simply fork the repo, make changes and make a pull request
  • You can open an issue for support or suggestions

Author

Adavize Hassan

Ackowledgements

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

thecatapi-sdk-0.0.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

thecatapi_sdk-0.0.1-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

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