Skip to main content

A simple program for displaying cat or dog facts.

Project description

About the petfacts CLI application

Pet facts is a simple but fun application that retrieves either dog or cat facts from two different resources.

Click here to see the cat facts api.

Click here to see the dog facts api.

Why did I write it?

I wrote this application to learn a python module called argparse, and this seemed like the perfect fun project to do this with.

How can I get it?

You can clone the repository on GitHub or install via pip by running pip install petfacts

How to use

This is a very simple and light program, to see a random pet fact of a dog or cat variety simply run petfacts with not arguments.

If you want to specify a whether you want a dog or car fact pass in the arguments like so:

  • petfacts --cat will return a cat fact.
  • petfacts --dog will return a dog fact.
  • petfacts --help or petfacts -h of course returns a help menu and exits.

Whats next?

  • TODO: I want to get this up on PyPi so you just have to use pip to install.
  • TODO: Give it the ability to store facts, why? Just because I'm learning.

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

petfacts-1.1.1.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

petfacts-1.1.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file petfacts-1.1.1.tar.gz.

File metadata

  • Download URL: petfacts-1.1.1.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for petfacts-1.1.1.tar.gz
Algorithm Hash digest
SHA256 e1587b3d55f5b2b134a1e70079ca39bcd9b1d84b9def849a85ddc8e8d9ad9d19
MD5 a1742638e1eef4b9c3b4347352d6bb7d
BLAKE2b-256 39da2cba9124f2a8b19099d460a35a0580b28898f5a81c45d68e1e2f2ffda6f1

See more details on using hashes here.

File details

Details for the file petfacts-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: petfacts-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for petfacts-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51bc89a79476c0802ccfe92ba79e4084b4346b31f5c43be0452dd605cf9b9c64
MD5 a84581cecc15a387bac05612113145c6
BLAKE2b-256 4d81cb3e574b4e50a593dbbc38cc4f6cc06cf3e04c5a48246f341a15536d64c6

See more details on using hashes here.

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