Skip to main content

Intelligent terminal like thinking.

Project description

Mind Terminal

Overview

Terminal large language model client implemented using Python with a modular architecture.

Technology Stack

  • Use UV to manage development environments and third-party dependencies.
  • Use the prompt-toolkit to handle user input and interaction.
  • Interact with the backend large language model service using openai-python
  • Use the rich library to beautify terminal display.
  • Use Pytest testing ensures the correctness of each module and function.

Features

  • Handle user input
  • Interact with the backend large language model
  • Write unit tests for interacting with LLM
  • Beautify terminal display with Rich formatting
  • Modular code structure
  • Configuration management
  • Error handling

Installation

Ensure you are using Python 3.11 or later (but less than 4.0).

pip install mindterm --user

Usage

Set your OpenAI API key as an environment variable:

export OPENAI_API_KEY=your-api-key-here

Then run the application:

mt

Commands

  • \chat - Start a chat session (default mode)
  • \bye - Exit the application
  • \help - Show available commands

Testing

Tests for the app are included using pytest. To run the tests, simply execute:

uv run pytest

Project Structure

src/
├── mindterm/
│   ├── __init__.py
│   ├── config.py      # Configuration management
│   ├── client.py      # LLM client
│   ├── ui.py          # Terminal UI components
│   ├── commands.py    # Command handling
│   └── main.py        # Main application logic
tests/
├── test_config.py     # Tests for configuration
└── test_commands.py   # Tests for command handling

Contributing

Contributions are welcome! If you have ideas for improvements, bug fixes, or additional features, feel free to open an issue or submit a pull request.

License

This App is open-source software released under the MIT License.

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

mindterm-0.2.2.tar.gz (43.9 kB view details)

Uploaded Source

Built Distribution

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

mindterm-0.2.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file mindterm-0.2.2.tar.gz.

File metadata

  • Download URL: mindterm-0.2.2.tar.gz
  • Upload date:
  • Size: 43.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for mindterm-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2cd65a7da524a529e24486fbba5d8f2d0c203d9f69dee9d89c613933702d2bff
MD5 6aab92e90fe1c8153744a203ee83e907
BLAKE2b-256 784a5e21cbe904140470d427211ccb395ccb542b0bbf675a39000f6f92228dde

See more details on using hashes here.

File details

Details for the file mindterm-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: mindterm-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.8

File hashes

Hashes for mindterm-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c879fae2e87345057e237e83b95eabc7791ffa0c59a1ce744f0cdf9b951d9648
MD5 fa1e4a0df82b9c62b92c4749f51417a2
BLAKE2b-256 de8d39f620b94a2ab3d7791a1eee2cd77df6527ea14fc8bb1e42f9dc1c5ad9e9

See more details on using hashes here.

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