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

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

⚠️ Make sure you are using 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.0.tar.gz (27.3 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.0-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: twidgets-1.1.0.tar.gz
  • Upload date:
  • Size: 27.3 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.0.tar.gz
Algorithm Hash digest
SHA256 1f14d0c2a792997a30ed8ef50f38ac41a0edba2f991d8c19287957e6d4278a13
MD5 0fe762c911a74c80dacfe33affee9067
BLAKE2b-256 860c918835617e61d6787e2d90dfa3a54d7919e86b457d9bb9e9877ad6000587

See more details on using hashes here.

File details

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

File metadata

  • Download URL: twidgets-1.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07e5bcd2110211ce5bb7f40b4822d8eb74e2b2cb3b628f13715617934b2a18e2
MD5 52ec14109a0da3f3becedb33f5f0a2f5
BLAKE2b-256 f57247917d9107bba748cb5255e19fcca2bd322ef22273bfe220bf23e11affa2

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