Skip to content

PyDogCeo is a thin wrapper on top of the DogCEO-API.

License

Notifications You must be signed in to change notification settings

tomsour1s/pydogceo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyDogCeo

PyDogCeo is a thin wrapper on top of the DogCEO-API. DOG-CEO on GITHUB

To Start...

To install pydogceo:

pip install pydogceo

Using it...

All methods return a requests Response Object representing the raw response from the API. Any HTTP errors that are returned by the API are raised as HTTPError exceptions from the Requests library.

from pydogceo import PyDogCeo

dog = PyDogCeo()
r = dog.breeds.listAll()

Available Methods/ Endpoints

dog.breeds.listAll()
dog.breeds.listAllRandom()
dog.breeds.listAllRandomNumber(10)
dog.breeds.listMaster()
dog.breeds.listMasterRandom()
dog.breeds.listMasterRandomNumber(3)

dog.breeds.image.random()
dog.breeds.image.randomNumber(3)

dog.breed.subbreed("hound")
dog.breed.subbreedRandom("hound")
dog.breed.subbreedRandomNumber("hound", 3)

dog.breed.image("hound")

dog.breed.images.random("hound")
dog.breed.images.randomNumber("hound", 4)

dog.breed.images.subbread("hound", "afghan")
dog.breed.images.subbreadRandom("hound", "afghan")
dog.breed.images.subbreadRandomNumber("hound", "afghan", 10)

Changelog

v0.0.1- 28/08/2022


First Release :)

About

PyDogCeo is a thin wrapper on top of the DogCEO-API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages