Skip to content

Releases: ephreal/catapi.py

catapi.py 0.4.0

28 Apr 17:57

Choose a tag to compare

catapi.py 0.4.0 Pre-release
Pre-release

Changelog

Name Changes

The module requests has been renamed to catapi

CatApi method names were changed to become more consistent

analysis -> get_analysis
breeds -> get_breeds
categories -> get_categories
favorites -> get_favorites
image -> get_image
search -> search_images
votes -> get_votes

Method Changes

get_favorites changed to get 100 favorites by default
get_votes changed to get 100 votes by default
CatApi.delete() now decodes as text instead of json

Module Organization

All models and the abstract base classes for the models have been moved into a models directory. If you were importing models directly before, simply add in "models" before the model name. For example

import catapi.image
# becomes
import catapi.models.image

Documentation

CatApi() object and methods documented with .rst formatting to assist in auto-generating documentation. Relatedly, documentation for catapi.py has begun and may be viewed at https://catapipy.readthedocs.io

catapi.py v0.3.4

27 Apr 15:02

Choose a tag to compare

catapi.py v0.3.4 Pre-release
Pre-release

Upon uploading to pypi and testing, and importing threw errors about the abc.models_abc not being found. The abc model is now being imported directly in the init.py, and should no longer be throwing any errors.

catapi.py v0.3.0

27 Apr 14:13

Choose a tag to compare

catapi.py v0.3.0 Pre-release
Pre-release

All parts of thecatapi have been implemented. Documentation still needs to be written, and methods may be renamed to create more consistency.

The complete list of features are:

Favorites

Delete Favorites
Add favorites to images
Get all favorites
Get a particular favorite by id

Images

Delete an uploaded image
Get a particular image by id
Get all uploaded images for your account
Fetch the results of an image analysis
Search for images
Upload images

Voting

Delete a vote
Get a particular vote by id
Get all votes
Vote on an image (upvote/downvote)

Misc

Fetch all breeds
Fetch all categories
Search for breeds by breed id

Catapi.py V0.2.0-alpha release

23 Apr 21:04

Choose a tag to compare

Pre-release

Added Features

  • Get the results of an image analysis
  • Get your votes on images
  • Get a particular vote
  • Image uploading is now possible
  • Searching for images by id
  • Searching for images you have uploaded
  • Vote on images

Removals

  • Removed response object

Changes

  • Added breed attribute to image
  • Added categories attribute to image
  • CatApi.breeds() now returns a list of breed objects
  • CatApi.categories() now returns a list of category objects
  • CatApi.search() now returns a list of image objects
  • Modified queries with aiohttp to use parameters

catapi.py v0.1.1-alpha release

23 Apr 00:10

Choose a tag to compare

Pre-release

Changelog:

  • Added actual text to the readme
  • Modified setup.py to change package on pypi to catapi.py
  • Added in requirements.txt for those installing catapi.py manually

catapi.py v0.1.0-alpha initial release

22 Apr 22:02

Choose a tag to compare

Pre-release

This is the initial release of catapi.py. As is to be expected from an alpha release, many things still need to be completed. Currently, catapi.py is capable of.

  • Fetching breed information from the api
  • Fetching images from the api