Skip to main content

🐍 Soothing pastel theme for Python.

Project description

Logo
Catppuccin for Python

Installation

Install with pip or your preferred dependency management tool.

pip install catppuccin

Usage

>>> from catppuccin import Flavour
>>> Flavour.latte().mauve.hex
'8839ef'
>>> Flavour.mocha().teal.rgb
(148, 226, 213)

Flavour is a dataclass, so you can inspect its fields to get access to the full set of colour names and values:

>>> from dataclasses import fields
>>> flavour = Flavour.frappe()
>>> for field in fields(flavour):
        colour = getattr(flavour, field.name)
        print(f"{field.name}: #{colour.hex}")
rosewater: #f2d5cf
flamingo: #eebebe
pink: #f4b8e4
...
base: #303446
mantle: #292c3c
crust: #232634

Contribution

If you are looking to contribute, please read through our CONTRIBUTING.md first!

Development

This project is maintained with Poetry. If you don't have Poetry yet, you can install it using the installation instructions.

Install the project's dependencies:

poetry install

Code Standards

Before committing changes, it is recommended to run the following tools to ensure consistency in the codebase.

isort .
black .
pylint catppuccin.py
mypy .
pytest --cov

These tools are all installed as part of the dev dependency group with Poetry. You can use poetry shell to automatically put these tools in your path.

💝 Thanks to

 

Copyright © 2022-present Catppuccin Org

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

catppuccin-1.0.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

catppuccin-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file catppuccin-1.0.0.tar.gz.

File metadata

  • Download URL: catppuccin-1.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/6.0.5-zen1-1-zen

File hashes

Hashes for catppuccin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0ff3a2ef0b66f8d494c584f29dc6a249ea9b6f854d33401a67383d18ed2311c3
MD5 72b68cf947fef6c5579805aee8d336d5
BLAKE2b-256 ae126f54ee3e772bb92460ecc32a366d9b78e7a1cd66267fe4ed72644699d1aa

See more details on using hashes here.

File details

Details for the file catppuccin-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: catppuccin-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/6.0.5-zen1-1-zen

File hashes

Hashes for catppuccin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d515f44e43cf947cf80d42246829bb32225dd611ef657213ee8181d849566b6
MD5 a9e71af634dcafd76c7728db499e8cdc
BLAKE2b-256 38253f03dcb841989b977155d4784faef737be44b100cb3435f0b0087e785eed

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page