Various time related widgets & functionality for Textual.
Project description
Textual Timepiece
Various time management related widgets for the Textual framework.
Documentation | Changelog | PyPi
Demo
Try the widgets out beforehand with uv:
uvx --from textual-timepiece demo
Install
pip install textual-timepiece
uv add textual-timepiece
poetry add textual-timepiece
[!NOTE] Requires whenever as an additional dependency.
Quick Start
DatePicker
from textual.app import App, ComposeResult
from textual_timepiece.pickers import DatePicker
from whenever import Date
class DatePickerApp(App[None]):
def compose(self) -> ComposeResult:
yield DatePicker(Date.today_in_system_tz())
if __name__ == "__main__":
DatePickerApp().run()
DateTimePicker
from textual.app import App, ComposeResult
from textual_timepiece.pickers import DateTimePicker
from whenever import SystemDateTime
class DateTimePickerApp(App[None]):
def compose(self) -> ComposeResult:
yield DateTimePicker(SystemDateTime.now().local())
if __name__ == "__main__":
DateTimePickerApp().run()
- More examples can be found here.
Included Widgets
DatePickerDurationPickerTimePickerDateTimePickerDateRangePickerDateTimeRangePickerActivityHeatmapHeatmapManager- And more to come...
License
MIT. Check LICENSE for more information.
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
textual_timepiece-0.3.0.tar.gz
(204.2 kB
view details)
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 textual_timepiece-0.3.0.tar.gz.
File metadata
- Download URL: textual_timepiece-0.3.0.tar.gz
- Upload date:
- Size: 204.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea60a0b911340a9d5dd34b715bb4020939ded1c7822cb3e574d70e5a71495e67
|
|
| MD5 |
56906b55f60b4177a6cd03d8716eee51
|
|
| BLAKE2b-256 |
b82fb53cba36264e77777c2f30ec0729a64aa2a626daab227d33f711febaf1fa
|
File details
Details for the file textual_timepiece-0.3.0-py3-none-any.whl.
File metadata
- Download URL: textual_timepiece-0.3.0-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a788904b5a1065f3629b0bad802edd1898e35a28fcda740386846085dde3f7f4
|
|
| MD5 |
b0ef22db59fc1108262f01c82386a54d
|
|
| BLAKE2b-256 |
c8bc6284bfcdf1f5c333c4cb82360dcf0f767fcc7eb647e89e6790e86f123dcd
|