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('#dead00')
rgb(0xde, 0xad, 0x00)

# Reference a pre-defined color
>>> color('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.3.tar.gz (48.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.3-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for travertino-0.5.3.tar.gz
Algorithm Hash digest
SHA256 fdbdf3a2c78335ce6c357c334defe6f15e8315c0e213c43e59d1975e77df7cf3
MD5 13fcbebd65043d8c777c5aa02b546ffa
BLAKE2b-256 c8590940b241c3af6939a9c9fe22d218e77970b2fbeef7471dadafaeb3d59531

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for travertino-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9f6f6840760af28295bba76aa175f35678aba33782ff29e78053b3cbdafafabf
MD5 ad29703a7e5d6202cf4decd807697db6
BLAKE2b-256 8ff0dd7f32b7cb6e2102d5247150a57d74dc31fc09fea8a9212b7c2507e7df77

See more details on using hashes here.

Provenance

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