Skip to main content

A set of constants and base classes for describing user interface layouts.

Project description

Travertino

Python Versions BSD-3-Clause License Project status

Travertino is a set of constants and utilities for describing user interfaces, including:

  • colors
  • directions
  • text alignment
  • sizes

Usage

Install Travertino:

$ pip install travertino

Then in your python code, import and use it:

>>> from travertino.colors import color, rgb

# Define a new color as an RGB triple
>>> red = rgb(0xff, 0x00, 0x00)

# Parse a color from a string
>>> Color.parse('#dead00')
rgb(0xde, 0xad, 0x00)

# Reference a pre-defined color
>>> Color.parse('RebeccaPurple')
rgb(102, 51, 153)

Community

Travertino is part of the BeeWare suite. You can talk to the community through:

We foster a welcoming and respectful community as described in our BeeWare Community Code of Conduct.

Contributing

If you experience problems with Toga, log them on GitHub.

If you'd like to contribute to Toga development, our contribution guide details how to set up a development environment, and other requirements we have as part of our contribution process.

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

travertino-0.5.6.tar.gz (50.0 kB view details)

Uploaded Source

Built Distribution

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

travertino-0.5.6-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file travertino-0.5.6.tar.gz.

File metadata

  • Download URL: travertino-0.5.6.tar.gz
  • Upload date:
  • Size: 50.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for travertino-0.5.6.tar.gz
Algorithm Hash digest
SHA256 9eafb6f7db785f7fde8a10054418288e67299094fe3dd4cb09ed9c7a96572791
MD5 cdd27cf3f5f123baec86b9f025c02acb
BLAKE2b-256 df3664d9b7281ccb1ca4620749da5a39552c8d11e36d4736b003fad69cfa337b

See more details on using hashes here.

Provenance

The following attestation bundles were made for travertino-0.5.6.tar.gz:

Publisher: publish.yml on beeware/toga

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file travertino-0.5.6-py3-none-any.whl.

File metadata

  • Download URL: travertino-0.5.6-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for travertino-0.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe7d196398bd48bea9a2acc8c095f5ecff1f1dc081d33b8040810ef9f93b0d9
MD5 e165b8fe50b941e0b6b746c1a5b833f4
BLAKE2b-256 2b9d6f71574c31073ae884c78158eb9d476d8325c376b1ed3e87489e73ea9229

See more details on using hashes here.

Provenance

The following attestation bundles were made for travertino-0.5.6-py3-none-any.whl:

Publisher: publish.yml on beeware/toga

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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