Skip to main content

Fetch definitions and example sentences for words directly from your terminal

Project description

sollu

Your Terminal Dictionary powered by AI

License

Overview

sollu is a simple yet powerful command-line utility designed to provide instant definitions and example sentences for words using the capabilities of the Google Gemini model. Built for anyone who wants to stay in the flow without distractions, tabs.

Features

  • Fast Lookups: Get definitions and examples quickly.
  • Multiple Words: Define several words in a single command.

Prerequisites

Before you can use Sollu, you need:

  1. Python 3.9+: Make sure you have a compatible Python version installed.
  2. Google Gemini API Key: Obtain a free API key from the Google AI Studio

Installation

pip install sollu

Configuration

Sollu requires your Google Gemini API key to function. Configuration commands are grouped under sollu config

Your API key will be stored in a file named .env inside the directory ~/.config/sollu.

Set API key

Use the config set subcommand to save your API key:

sollu config set --key YOUR_API_KEY

Delete API key

To remove just the saved API key:

sollu config delete

Reset configuration

To delete the entire ~/.config/sollu/ directory and all its contents:

sollu config reset

Usage

Once installed and configured, you can use the define command to look up words:

sollu define <word1> <word2> ...

Example

Define single word

sollu define life

Define multiple words:

sollu define ubiquitous stoic

License

This project is licensed under the Apache-2.0 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

sollu-0.0.1.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

sollu-0.0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file sollu-0.0.1.tar.gz.

File metadata

  • Download URL: sollu-0.0.1.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sollu-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f54c265b6d4255b240647d844819f22952d4d49ea8ab88567bd6a4fdc3848293
MD5 6a1fa1f905fefe5f849b99f8e44b745c
BLAKE2b-256 df4b9a56e0dc4840b2a9fb7c1aeb27087caf56bb8883cfa54aa5d6ce142cdfd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for sollu-0.0.1.tar.gz:

Publisher: publish_pypi.yml on ash-01xor/sollu

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

File details

Details for the file sollu-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sollu-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sollu-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db7e7a278af42086ea46bf5fa6f8000ad2afd0b6a3b7b469d5ecff6d6326f947
MD5 ff674040c8a8e60ef5f56274bf2a175c
BLAKE2b-256 9ec7c3266441314ad2e9663e27110748fff0ae427d79d1c776033b989b91cb5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for sollu-0.0.1-py3-none-any.whl:

Publisher: publish_pypi.yml on ash-01xor/sollu

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