Skip to main content

A tool to design and run dynamic, customizable dashboards directly inside your terminal.

Project description


🖥 Terminal Widgets

This tool lets you design and run dynamic, customizable dashboards directly inside your terminal. It combines modular widgets, real-time data updates, and flexible layout management for a highly interactive CLI experience.

Getting startedConfigurationAdding new widgetsLicense

Example Image of Terminal Widgets

🚀 1. Getting started

Installation from PyPI

  1. Install: pip install twidgets
  2. Initialize: twidgets init
  3. Run: twidgets

⚠️ Requires Python Version 3.13+

Installation from Source

  1. Clone this repository
  2. Install dependencies: pip install -r requirements.txt
  3. Initialize configuration: python -m twidgets init
  4. Run: python -m twidgets

⚠️ Requires Python Version 3.13+

For full documentation see Setup Guide


2. Configuration

2.1 Changing standard colors and configuration in twidgets/config/base.yaml

If you remove anything or let anything blank, it will just fall back to the standard configuration.
However, you will get warned.

Example:

use_standard_terminal_background: False

background_color:
  r: 31  # Red value
  g: 29  # Green value
  b: 67  # Blue value
  
...

2.2 Configure your secrets in: twidgets/config/secrets.env

Example (Full example provided in twidgets/config/secrets.env.example):

WEATHER_API_KEY='your_api_key'
WEATHER_CITY='Berlin,DE'
WEATHER_UNITS='metric'
NEWS_FEED_URL='https://feeds.bbci.co.uk/news/rss.xml?edition=uk'
NEWS_FEED_NAME='BCC'

2.3 Adjust widgets and layouts in: twidgets/config/widgets/*.yaml

Example:

name: 'clock'
title: '  Clock'
enabled: True
interval: 1
height: 5
width: 30
y: 4
x: 87

weekday_format: '%A'  # day of the week
date_format: '%d.%m.%Y'  # us: '%m.%d.%Y', international: '%Y-%m-%d'
time_format: '%H:%M:%S'  # time

For full documentation see Configuration Guide


3. Adding new widgets

See Widget Guide


📜 4. License

See 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

twidgets-1.1.1.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

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

twidgets-1.1.1-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

Details for the file twidgets-1.1.1.tar.gz.

File metadata

  • Download URL: twidgets-1.1.1.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for twidgets-1.1.1.tar.gz
Algorithm Hash digest
SHA256 9d22a924d20f8610a85aad6f931dbab65e75ba59c2fbf8c3033f5ab259b77f84
MD5 28b04c461bacc6d8a024db73e69b421b
BLAKE2b-256 168c1940f768bbd59282e4835418a8ff4241931872a13389d233ab176169cfdb

See more details on using hashes here.

File details

Details for the file twidgets-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: twidgets-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for twidgets-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c27cfecf73f375b49770463953342281119e78dbb773c02e6032d78e4f9b993
MD5 7a14e9af6305d4acccc42dba8ac3a5af
BLAKE2b-256 7fecf47db4dc8043b1353567096f589380dcb9ebf788502c126a40e3cc5ab8e1

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