Huge News!Announcing our $40M Series B led by Abstract Ventures.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

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

  • 0.3.0
  • Source
  • PyPI
  • Socket score

Maintainers
0

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

Travertino

.. image:: https://img.shields.io/pypi/pyversions/travertino.svg :target: https://pypi.python.org/pypi/travertino

.. image:: https://img.shields.io/pypi/v/travertino.svg :target: https://pypi.python.org/pypi/travertino

.. image:: https://img.shields.io/pypi/status/travertino.svg :target: https://pypi.python.org/pypi/travertino

.. image:: https://img.shields.io/pypi/l/travertino.svg :target: https://github.com/beeware/travertino/blob/main/LICENSE

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

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

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:

  • @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_.

Contributing

If you experience problems with Travertino, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request_.

Travertino uses Pre-commit <https://pre-commit.com/>__ and TownCrier <https://pypi.org/project/towncrier/>__ to help maintain code quality. For details on how to use these tools as part of your development environment, see the Briefcase code contribution guide <https://briefcase.readthedocs.io/en/stable/how-to/contribute-code.html>__. Although that document is for a different project, the details about setting up your development environment are the same.

.. _BeeWare suite: http://beeware.org .. _Read The Docs: https://travertino.readthedocs.io .. _@pybeeware on Twitter: https://twitter.com/pybeeware .. _BeeWare Community Code of Conduct: http://beeware.org/community/behavior/ .. _log them on Github: https://github.com/beeware/travertino/issues .. _fork the code: https://github.com/beeware/travertino .. _submit a pull request: https://github.com/beeware/travertino/pulls

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc