Skip to main content

Read brand yaml files, a unified way to store brand information.

Project description

brand.yml Python Package

Create reports, apps, dashboards, plots and more that match your company’s brand guidelines with a single _brand.yml file.

brand.yml is a simple, portable YAML file that codifies your company’s brand guidelines into a format that can be used by Quarto, Python and R tooling to create branded outputs. Our goal is to support unified, branded theming for all of Posit’s open source tools—from web applications to printed reports to dashboards and presentations—with a consistent look and feel.

With a single _brand.yml file you can collect brand logos, colors, fonts and typographic choices, typically found in your company’s brand guidelines. This _brand.yml can be used Quarto and Shiny for Python to instantly basic themes that match the brand guidelines.

Example

from brand_yml import Brand

brand = Brand.from_yaml_str(
    # Typically, this file is stored in `_brand.yml`
    # and read with `Brand.from_yaml()`.
    """
    meta:
      name: Posit Software, PBC
      link: https://posit.co
    color:
      palette:
        pblue: "#447099"
        green: "#72994E"
        teal: "#419599"
        orange: "#EE6331"
        purple: "#9A4665"
        gray: "#707073"
      primary: blue
      secondary: gray
      success: green
      info: teal
      warning: orange
      danger: purple
    typography:
      base:
        family: Open Sans
        weight: 300
    """
)
brand.meta.name
BrandMetaName(full='Posit Software, PBC')
brand.color.primary
'blue'
brand.typography.base.model_dump()
{'family': 'Open Sans', 'weight': 300, 'size': None, 'line_height': None}

Installation

From PyPI

uv pip install brand_yml

From GitHub

uv pip install "git+https://github.com/posit-dev/brand-yml"

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

brand_yml-0.1.1.tar.gz (773.1 kB view details)

Uploaded Source

Built Distribution

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

brand_yml-0.1.1-py3-none-any.whl (787.5 kB view details)

Uploaded Python 3

File details

Details for the file brand_yml-0.1.1.tar.gz.

File metadata

  • Download URL: brand_yml-0.1.1.tar.gz
  • Upload date:
  • Size: 773.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for brand_yml-0.1.1.tar.gz
Algorithm Hash digest
SHA256 db2df05d2eb013221b1d5d4740d5ada894e1fe94e81eb82b4404d90de75bd7bd
MD5 f3857adfa7f8a729dd9a49a366ad6af3
BLAKE2b-256 6931edad83c5d083e4cb673257f9a0e74965b2ef84ddf84b4e476e43e7c145a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for brand_yml-0.1.1.tar.gz:

Publisher: py-release.yml on posit-dev/brand-yml

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

File details

Details for the file brand_yml-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: brand_yml-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 787.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for brand_yml-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1bd13fe32eee43b3e36a483184b038575bc386d4576e95ac44ca9522fab58ee
MD5 c9e07ccdecfb2d3bbbe6c65125126719
BLAKE2b-256 aab305814422cbd0abfb554b5d411fc82f23c85e8fa587f976ec05cef4fc323b

See more details on using hashes here.

Provenance

The following attestation bundles were made for brand_yml-0.1.1-py3-none-any.whl:

Publisher: py-release.yml on posit-dev/brand-yml

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