Skip to main content

The privacy‑first, local‑LLM text‑summariser for developers.

Project description

NitroDigest

TL;DR your data, privately.

NitroDigest – the privacy‑first, local‑LLM text‑summariser for developers.

This project is in alpha phase.

Features

  • Runs 100 % on‑device with Ollama – your private data never leaves localhost
  • Command-line interface with various options
  • Completely free (open source, MIT license)

Usage

Prerequisites

To run this tool, you needs to have Ollama and Python installed on your local machine.

Installation

pip install nitrodigest-cli

Basic Usage

Run NitroDigest with the default configuration:

nitrodigest <file or directory you want to summarize> > <destination where to want to save summary>

Examples

Process current directory (summarize all files in the current working directory):

nitrodigest > summary.md

Summarize one file and save it to summary.md:

nitrodigest my_long_text.html > summary.md

Summarize files in a directory and save them in a summary.md:

nitrodigest my_directory/ > summary.md

Command Line Arguments

You can override any configuration setting using command line arguments:

nitrodigest \
    --model mistral \
    --timeout 800

Available arguments:

  • --timeout: Time in seconds for API requests to Ollama (default: 300)
  • --prompt-file: Path to custom prompt template file (overrides default one)
  • --prompt: Direct prompt content (overrides prompt-file)
  • --model: Model that will be used for summarization (default: mistral)
  • --ollama_api_url: URL of Ollama API (default: http://localhost:11434)
  • --format: Output format. Can be text or json (default: text)
  • --include-original: Include original text in the summary output (default: False)
  • --max-workers: Maximum number of parallel workers for directory processing (default: 4)

Custom Prompt Configuration

You can specify a custom prompt in two ways

  1. Using the --prompt-file argument:
nitrodigest --prompt-file custom_prompt.txt
  1. Passing the prompt content directly:
nitrodigest --prompt "$(cat my_awesome_prompt.txt)"

The prompt template should contain placeholders:

  • {metadata}: it's used to render information like source, title, and date
  • {text}: For the text content to be summarized

Contributing

Do you want to contribute this tool? Check the Contributing page:

Getting started

Report an issue

Found an issue? You can easily report it here:

https://github.com/Frodigo/garage/issues/new

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

nitrodigest_cli-0.3.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

nitrodigest_cli-0.3.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file nitrodigest_cli-0.3.0.tar.gz.

File metadata

  • Download URL: nitrodigest_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nitrodigest_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7a4f5c36bed578e0a37ea5367a1d32e60a9b701f13ab742df8ae0b8e6c4f51e5
MD5 7b0eccb3d10fcf12e59e2fe9bf17ce78
BLAKE2b-256 98e169c01d1e440aa95eda77b8ba91f0cab016792900276825693f90c878961e

See more details on using hashes here.

Provenance

The following attestation bundles were made for nitrodigest_cli-0.3.0.tar.gz:

Publisher: publish_package.yml on Frodigo/garage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nitrodigest_cli-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nitrodigest_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea1c1d0f4f06f78dd9a35641c5aaf65befa08bf01fb45dd3b599020d02fdc0b
MD5 d6a597b57a6ac39f2c01a96cb12ac194
BLAKE2b-256 cc6a445bfba9d87973c071b893c86acd785e51c3b4d49d816caafd0df7c51c10

See more details on using hashes here.

Provenance

The following attestation bundles were made for nitrodigest_cli-0.3.0-py3-none-any.whl:

Publisher: publish_package.yml on Frodigo/garage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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