Skip to main content

An ASCII block / ANSI color renderer for NASA's Astonomy Pic of the Day. For like no reason.

Project description

termapod

An ASCII-style rendering of the Astronomy Picture of the Day at nasa.gov. This retrieves the picture of the day, downsamples it to the size of your terminal window, and displays it in ASCII-style Unicode blocks with ANSI 24-bit color codes. I like it as a splash screen for a new terminal window.

Enjoy it. It's fun. Tested in POP!_OS 22.04. Written in python 3.10.

Installation

It's a python package:

$ python3 -m pip install termapod

Or, install from a local clone of the repo:

$ git clone https://github.com/spacemeat/termapod
$ cd termapod
$ python3 -m pip install .

Running it

It should install as a runnable program.

$ termapod

Unless --no-save-cache is passed as an argument, the image is downloaded to ~/.config/termapod/image-<date>.jpg, with caption saved to ~/.config/termapod/caption.txt. This cache image is used unless --no-cache is given as an argument. Whenever a new image is cached, the previous image and caption are deleted, so as not to fill up your precious storage.

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

termapod-0.1.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

termapod-0.1.1-py3-none-any.whl (5.3 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