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.4.tar.gz (49.9 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.4-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: travertino-0.5.4.tar.gz
  • Upload date:
  • Size: 49.9 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.4.tar.gz
Algorithm Hash digest
SHA256 0f712aed518cfb47391cd0ade83237f4db127711a892dd4d5cef6118d041e180
MD5 3b69bc2dc653c9136782625f515c4926
BLAKE2b-256 8504646af3aa4e464b30828d076f632827f63d2c01b4a1bbf12b57739c191229

See more details on using hashes here.

Provenance

The following attestation bundles were made for travertino-0.5.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: travertino-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 27.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aff0d275c45be3965441d47af04c271ebd7d03f53a436b2b1f8de4534077959b
MD5 7e5d2160c605c76fa9cbe5f212a805ff
BLAKE2b-256 db1e1e8a9d24ba6e72ca7822bf2e596cfe82e8fbefd477e557d78e8775169ed8

See more details on using hashes here.

Provenance

The following attestation bundles were made for travertino-0.5.4-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