Skip to main content

📈 Finuntius

CLI Terminal for real-time financial news via Finnhub API.

PyPI version Python versions GitHub

finuntius --help


Index


What's Finuntius?

Finuntius is a CLI program available in English (default) or Italian that retrieves the latest financial news about a stock using the Finnhub API and displays it in a formatted table directly in the terminal.

Finuntius is privacy-first. It adopts the BYOK (Bring Your Own Key) approach so that the Finnhub key remains exclusively on your local machine.

You can also export the results in JSON or Markdown, which is useful for including them, for example, in reports, analysis scripts, or prompts for LLMs.

Features

  • Search for financial news by ticker or U.S. ISIN (GOOG, AAPL, ...)
  • Color-coded table output in the terminal, via Rich
  • Export to JSON or Markdown, to the screen or to a file (-o)
  • Cascading API key management: CLI flag -k, environment variables, global config, or interactive prompt on first launch
  • Bilingual interface: English / Italian, selectable and persistent
  • Filters by number of results (-l) and history from previous days (-d)
  • Docker image available

Installation

From PyPI

The modern and recommended way to install CLI applications in Python is using pipx, which automatically creates an isolated virtual environment:

pipx install finuntius
finuntius --help

Alternatively, you can use the standard pip (it is recommended that you do this inside a virtual environment to avoid conflicts):

pip install finuntius
finuntius --help

From GitHub

Useful if you want to modify the code or contribute to the project:

git clone https://github.com/gabpolymath/finuntius.git
cd finuntius

On Linux / MacOS

python3 -m venv venv
source venv/bin/activate

On Windows:

python -m venv venv
venv\Scripts\activate
pip install -e .

Installing in “editable” mode (-e) also creates the finuntius.egg-info/ folder (which is automatically generated by pip/setuptools and is already excluded in the project's .gitignore file).

With Docker

If you'd rather not install anything locally, the repository includes a ready-to-use Dockerfile:

git clone https://github.com/gabpolymath/finuntius.git
cd finuntius

docker build -t finuntius .

Basic usage (the image passes the arguments to finuntius):

docker run --rm -it -e FINNHUB_API_KEY=your_api_key finuntius GOOG

To ensure that the API key and the selected language persist between runs, mount a volume on the configuration folder:

docker run --rm -it \
  -v finuntius_config:/home/finuntius/.config/finuntius \
  finuntius -c  # choose language

docker run --rm -it \
  -v finuntius_config:/home/finuntius/.config/finuntius \
  finuntius GOOG #if the key isn't in the volume, asks and saves it

To save an export file (-o) to a local folder, mount that folder as well:

docker run --rm -it \
  -v finuntius_config:/home/finuntius/.config/finuntius \
  -v "$(pwd)/output:/home/finuntius/output" \
  finuntius GOOG -m -o output/newsGOOG.md

API Key Configuration

finuntius requires a Finnhub API key; the free plan is sufficient. You can create one on Finnhub.io.

The key is searched for, in order of priority:

  1. CLI flag: -k / --api-key
  2. Environment variable FINNHUB_API_KEY (including from a .env file in the current directory)
  3. Global configuration file (~/.config/finuntius/.env, or $XDG_CONFIG_HOME/finuntius/.env if set)
  4. Interactive prompt: if not found in the previous locations, finuntius will prompt you for it and automatically save it to the global configuration file with chmod 600 permissions

Examples of Use

Run the commands to print the news on screen. Use the -j (JSON) or -m (Markdown) flags in combination with -o to export the data—ideal for providing up-to-date context to analysis scripts or LLM prompts.

# default table (without -j or -m)
finuntius GOOG

finuntius AAPL

Command output.

Project Structure

finuntius/
├── assets/                     # screenshot
├── src/
│   └── finuntius/              # source code
│       ├── __init__.py
│       ├── config.py           # API key, language, configuration
│       ├── exporter.py         # export in JSON; Markdown
│       ├── finnhub_fetcher.py  # calls to the Finnhub API
│       ├── formatter.py        # table rendering with Rich
│       ├── main.py             # entry point
│       └── translations.py     # str en/it
├── Dockerfile
├── pyproject.toml
└── LICENSE

Disclaimer

Finuntius is optimized to work with API keys from Finnhub’s free plan. Future versions may use data available through paid API keys.

⚠️ Finuntius is an independent, open-source project and is in no way affiliated with, sponsored by, or endorsed by Finnhub.

License

This project is released under the GNU AGPLv3.


Metadata

Release files for finuntius 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for finuntius 1.0.3
File Size Uploaded Provenance Actions
finuntius-1.0.3.tar.gz 51.6 kB Without provenance Details for finuntius-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for finuntius 1.0.3
File Interpreter ABI Platform Actions
finuntius-1.0.3-py3-none-any.whl Python 3 none any Details for finuntius-1.0.3-py3-none-any.whl

Total release size: 91.4 kB

Release files / finuntius-1.0.3.tar.gz

Download URL finuntius-1.0.3.tar.gz
Size 51.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ccee0e967c4ea515749f1ca9c9fa0fb565475a725038f7bc6c1c53c1d446b50e
BLAKE2b-256 checksum
How to use checksums
e4facbc2bb4df08855bb9ce3b026f952bd9f0e857750cd0598bccc942f2c2541
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / finuntius-1.0.3-py3-none-any.whl

Download URL finuntius-1.0.3-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2295d6a89b6b65210e5148099884bf5eeffc4efea7bcb416092b5f71724b812b
BLAKE2b-256 checksum
How to use checksums
90653d84aef9975ff7546dd353a53b04fbfc5202958a30b2ac235fd777bf7399
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for finuntius 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page