Skip to main content

A terminal-based (TUI) alternative to Postman

Project description

🚀 Termina (TUI Postman)

A blazing-fast, local-first Terminal User Interface (TUI) alternative to Postman and Insomnia. Built entirely in Python using the textual framework and httpx, it allows you to construct and execute HTTP requests without ever leaving your terminal.

✨ Features

  • Local-First & Fast: No accounts, no cloud syncing, no electron-app bloat.
  • Global CLI: Installs directly as a terminal command (TUI_postman).
  • Syntax Highlighting: Automatically pretty-prints and highlights JSON responses.
  • Async Execution: The UI remains perfectly smooth and responsive while waiting for network requests to complete.
  • Keyboard Friendly: Use Tab to navigate inputs, Ctrl+Q to quit safely, or just click the UI elements with your mouse!

🛠️ Installation

  1. Clone or Download this directory.
  2. Create a Virtual Environment (Highly Recommended):
    python -m venv venv
    
  3. Activate the Virtual Environment:
    • Windows (PowerShell): .\venv\Scripts\Activate.ps1
    • Mac/Linux: source venv/bin/activate
  4. Install the Package Locally: Run the following command from the root folder (where pyproject.toml is located) to install all dependencies and register the CLI command:
    pip install -e .
    

💻 Usage

Once installed, you can launch the application from anywhere by simply typing:

TUI_postman

Making a Request:

  1. Method: Select your HTTP method (GET, POST, PUT, DELETE, PATCH) from the dropdown.
  2. URL: Enter your target endpoint (e.g., https://jsonplaceholder.typicode.com/todos/1).
  3. Headers: (Optional) Add custom headers in valid JSON format in the Headers tab.
  4. Body: (Optional) If sending a POST/PUT request, add your JSON payload in the Body tab.
  5. Send: Click the green Send button.

The response pane on the right will instantly display the Status Code, Response Time, and the formatted output from the server.

Exiting:

Click the Quit button at the top, or press Ctrl+Q to close the application cleanly.


📦 Tech Stack

  • Textual: The core TUI framework for building the user interface.
  • httpx: The asynchronous HTTP client.
  • Pygments: Handles the syntax highlighting for JSON payloads.

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

tui_postman-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

tui_postman-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file tui_postman-1.0.0.tar.gz.

File metadata

  • Download URL: tui_postman-1.0.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for tui_postman-1.0.0.tar.gz
Algorithm Hash digest
SHA256 836fdba959b92d0d07622b31f94714e153288243664eef95da706d13270e4f9e
MD5 e594c61a58e9a6016e7ce693a393d624
BLAKE2b-256 d5edad1f81446b4583c55aa73a099f15bcb26b32040876e3f7b2d4cfa5ad4085

See more details on using hashes here.

File details

Details for the file tui_postman-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tui_postman-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for tui_postman-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d54f1397d0192e16270809b52483f32545f0eda368f624445e9e8f6e55a8665
MD5 acfba1ac2ab260c9e42bf8410c8776be
BLAKE2b-256 aa932dc6a1dad719e6e80b5cc92c68957010d01642815a801802641d0a37c77a

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