🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

travertino

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

travertino

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

0.5.1
Source
PyPI
Maintainers
0

.. |logo| image:: https://beeware.org/static/images/defaultlogo.png :width: 72px :target: https://beeware.org

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/travertino.svg :target: https://pypi.python.org/pypi/travertino :alt: Python Versions

.. |version| image:: https://img.shields.io/pypi/v/travertino.svg :target: https://pypi.python.org/pypi/travertino :alt: Project version

.. |maturity| image:: https://img.shields.io/pypi/status/travertino.svg :target: https://pypi.python.org/pypi/travertino :alt: Project status

.. |license| image:: https://img.shields.io/pypi/l/travertino.svg :target: https://github.com/beeware/toga/blob/main/travertino/LICENSE :alt: BSD License

.. |ci| image:: https://github.com/beeware/toga/workflows/CI/badge.svg?branch=main :target: https://github.com/beeware/toga/actions :alt: Build Status

.. |social| image:: https://img.shields.io/discord/836455665257021440?label=Discord%20Chat&logo=discord&style=plastic :target: https://beeware.org/bee/chat/ :alt: Discord server

|logo|

Travertino

|pyversions| |version| |maturity| |license| |ci| |social|

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 <https://beeware.org>_. You can talk to the community through:

  • @beeware@fosstodon.org on Mastodon <https://fosstodon.org/@beeware>__

  • Discord <https://beeware.org/bee/chat/>__

We foster a welcoming and respectful community as described in our BeeWare Community Code of Conduct <https://beeware.org/community/behavior/>__.

Contributing

If you experience problems with Toga, log them on GitHub <https://github.com/beeware/toga/issues>__.

If you'd like to contribute to Toga development, our contribution guide <https://toga.readthedocs.io/en/latest/how-to/contribute/index.html>__ details how to set up a development environment, and other requirements we have as part of our contribution process.

Keywords

css

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts