Skip to main content

A fun CLI that shows random cat facts!

Project description

Catfacts CLI 🐱

A cat fact maker that’s essential!
(This is not actually made to be really good, so be prepared for some bugs 😹)


Known Bugs

  • If you request around 1000 facts, it may give a traceback error. Cause unknown.

Arguments

--version

Shows the current version of catfacts-cli.

--count {number}

Displays the chosen number of facts.
⚠️ Very high numbers may cause errors.

--unique

Ensures that no duplicate facts are shown.

--source {api or local}

Choose where the facts come from:

  • api → Fetches from the online cat facts API.
  • local → Uses the small built-in local fact list (default, limited to ~10 facts).

--output {text, json, list}

Changes how the facts are displayed in the terminal:

  • text → Normal text format.
  • json → JSON-like structure.
  • list → A simple bullet-point list.

Example Usage

catfacts --count 5 --output json

👉 Note: Output is only printed to the terminal! it does not save to a file. If you want to save it, redirect the output yourself:

catfacts --count 5 --output json > facts.json

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

catfacts_cli-0.1.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

catfacts_cli-0.1.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file catfacts_cli-0.1.6.tar.gz.

File metadata

  • Download URL: catfacts_cli-0.1.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for catfacts_cli-0.1.6.tar.gz
Algorithm Hash digest
SHA256 04ef59bb153ed6f38f43c0c38c5f8397bae7efe54851300b6fa61421953624ff
MD5 2576780770e6dc317d74370e823adf71
BLAKE2b-256 e8ceb1415a3ec9c55d7fdf94b804492095eab97bb60fb5e523385263dddf2705

See more details on using hashes here.

File details

Details for the file catfacts_cli-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: catfacts_cli-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for catfacts_cli-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c0c88ca6c657160dcba62d8117da0dcffcd6d588eca9d70b697c0bceff1e8c75
MD5 f264032258c79736fd21a3ddee2a104b
BLAKE2b-256 630343d760ebbe86cb04aa9639ee86791ea12042eda9f98863f64f75c678e98f

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