Global Time Utility (gtime) - A modern, colorful Python CLI utility for global time zone lookup, comparison, and management. It supports fuzzy search, favorites, city comparison, meeting time conversion, and a live/watch mode
Project description
Global Time Utility (gtime) 🌐
Global Time Utility (gtime) is a modern, colorful Python CLI utility for global time zone lookup, comparison, and management. It supports fuzzy search, favorites, city comparison, meeting time conversion, and a live/watch mode
Features
- Fast city lookup with fuzzy search and suggestions
- Add/remove/list favorite cities
- Compare times for multiple cities
- Meeting time conversion across favorites
- Live/watch mode for real-time updates
- Colorful, user-friendly output (using Rich)
- Comprehensive test suite (pytest)
- Performance-optimized for large city databases
Installation (from source)
Clone the repo and install locally:
pip install .
Or, install from PyPI:
pip install gtime
Demo
Note: Some command output may appear broken in the demo, but it works correctly in real use
Usage
After installation, run the CLI:
gtime [command] [arguments]
Or as a module:
python -m gtime.cli [command] [arguments]
Example commands:
gtime London— Show time for Londongtime add Tokyo— Add Tokyo to favoritesgtime list— List favorite citiesgtime compare London Tokyo— Compare citiesgtime meeting at 10:00 AM— Meeting time conversiongtime watch— Live mode
Development & Publishing
GitHub Actions
This project includes automated workflows:
- Tests: Runs on every push/PR across Python 3.8-3.12
- Publish: Automatically publishes to PyPI upon new GitHub release
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gtime-0.3.1.tar.gz.
File metadata
- Download URL: gtime-0.3.1.tar.gz
- Upload date:
- Size: 16.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49ca80f8fcf79246a6ebc517655e4f9aed90841b58dc362f62273ed2f0e622d7
|
|
| MD5 |
c71fe48be21952b97cfcde5e68b8f873
|
|
| BLAKE2b-256 |
a941b948319a9a0ebf43851368f328b4a3390011ce96d9583ad8062fc96919c9
|
File details
Details for the file gtime-0.3.1-py3-none-any.whl.
File metadata
- Download URL: gtime-0.3.1-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1040d597e6ec04585628d0933cb3ac55791259cbbe676fb1858ba6ebec0c0897
|
|
| MD5 |
b67b66dc652a4ec2fab20fb4c366cbcc
|
|
| BLAKE2b-256 |
fb6db868021ba1ec3a0578c23fd04b4592bec03e8edc7dddabb40e3404bbbd9a
|