Skip to main content

Various time related widgets & functionality for Textual.

Project description

PyPI - Version PyPI - Python Version GitHub Actions Workflow Status

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

  • DatePicker
  • DurationPicker
  • TimePicker
  • DateTimePicker
  • DateRangePicker
  • DateTimeRangePicker
  • ActivityHeatmap
  • HeatmapManager
  • And more to come...

License

MIT. Check LICENSE for more information.

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

textual_timepiece-0.3.0.tar.gz (204.2 kB view details)

Uploaded Source

Built Distribution

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

textual_timepiece-0.3.0-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

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

Hashes for textual_timepiece-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ea60a0b911340a9d5dd34b715bb4020939ded1c7822cb3e574d70e5a71495e67
MD5 56906b55f60b4177a6cd03d8716eee51
BLAKE2b-256 b82fb53cba36264e77777c2f30ec0729a64aa2a626daab227d33f711febaf1fa

See more details on using hashes here.

File details

Details for the file textual_timepiece-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for textual_timepiece-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a788904b5a1065f3629b0bad802edd1898e35a28fcda740386846085dde3f7f4
MD5 b0ef22db59fc1108262f01c82386a54d
BLAKE2b-256 c8bc6284bfcdf1f5c333c4cb82360dcf0f767fcc7eb647e89e6790e86f123dcd

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