Always looking at the sky.
Skyport
Skyport is a CLI for obtaining information from astronomical objects.
So far, the entire CLI is based on NASA's open APIs for getting images and information available.
Documentation: https://skyport.henriquesebastiao.com
Source Code: https://github.com/henriquesebastiao/skyport
How to install the CLI
To install the cli, I recommend using pipx:
pipx install skyport
But anyway, this is just a recommendation. You can also install using the manager you prefer. Like pip:
pip install skyport
How to use?
APOD
Requesting the current day's image
You can call APOD (Astronomical Image of the Day) through the command line. Example:
skyport apod
This was the image of the day on the date January 21, 2024. Which was when this part of the documentation was written 😅
Requesting an image from a specific day
skyport apod -d 2022-01-01
More information about the CLI
You can get more information as stated below, however it is interesting to read the complete tutorial to learn skyport superpowers 😁.
To discover other options, you can use the --help flag:
$ skyport --help
Usage: skyport [OPTIONS] COMMAND [ARGS]...
Skyport is a CLI for obtaining information from astronomical objects.
╭─ Options ─────────────────────────────────────────────────────────────────╮
│ --version -v Returns the version of Skyport │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────╮
│ apod Astronomy Picture of the Day (APOD) https://apod.nasa.gov/apod/ │
╰───────────────────────────────────────────────────────────────────────────╯
More information about subcommands
You can also get information about subcommands by calling the desired subcommand with the --help flag:
$ skyport apod --help
Usage: skyport apod [OPTIONS]
Astronomy Picture of the Day (APOD) https://apod.nasa.gov/apod/
╭─ Options ─────────────────────────────────────────────────────────────────╮
│ --date -d TEXT Date to search for the image of the day │
│ [default: 2024-01-22] │
│ --save-image -s Download the image │
│ --remaining -r Tells how many requests remain for the API │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────╯
Metadata
Release files for skyport 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| skyport-0.1.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| skyport-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / skyport-0.1.0.tar.gz
| Download URL | skyport-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1489500a58808e605bc7260241ca166fea565831eb9b3192691f44b052f3f18d
|
|
BLAKE2b-256 checksum How to use checksums |
e645857f9dc6221f5f9e429d33df406a983e226d86440fb3f7ecf5116de20288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Linux/6.7.0-arch3-1
|
Release files / skyport-0.1.0-py3-none-any.whl
| Download URL | skyport-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
adb1adeb2023aa8a1bd624d920fd5bf85b89073c36094613ba6342ee34481bd5
|
|
BLAKE2b-256 checksum How to use checksums |
87d098e5c355f04208b68ba4eb6ab3826cd0606b8e0564b00215969a218cd6d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.6 Linux/6.7.0-arch3-1
|