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

Documentation

For an API reference and usage examples, see our online documentation.

IPython Theme

A minimal configuration:

c.TerminalInteractiveShell.true_color = True
c.TerminalInteractiveShell.highlighting_style = "catppuccin-mocha"

Putting this into your IPython configuration and ensuring catppuccin[pygments] is installed in the same environment will give you Catppuccin Mocha syntax highlighting in the REPL. See here for an example of a more complete configuration.

Available IPython themes:

  • catppuccin-latte
  • catppuccin-frappe
  • catppuccin-macchiato
  • catppuccin-mocha

Contribution

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

Development

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

Install the project's dependencies including extras:

uv sync --all-extras

Codegen

catppuccin/palette.py is generated by a build script based on the contents of palette.json.

To update after downloading a new palette JSON file:

uv run build.py

Formatting this file is done manually as with any other file, see Code Standards below.

Code Standards

All of the tools listed in this section are automatically installed by uv as part of the dev dependency group.

Unit Tests

Tests are run with pytest.

To run tests and display coverage:

pytest --cov catppuccin
Type Checking

Type checking is performed by mypy.

To run type checks:

mypy .
Lints and Formatting

Code linting and formatting is done by ruff.

To lint the code:

ruff check

To format the code:

ruff format

💝 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-2.5.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

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

catppuccin-2.5.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: catppuccin-2.5.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.3

File hashes

Hashes for catppuccin-2.5.0.tar.gz
Algorithm Hash digest
SHA256 3035f3bf35bc2369d1cb4c754272a494708592a1e62d42655a371863ac7c6834
MD5 1e45b8f1510a94ce66462759639c3e4b
BLAKE2b-256 b63187c3ca25d29678e076e1f0d151ef8792f0557b26a8dc865035b5f1fa96c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: catppuccin-2.5.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.3

File hashes

Hashes for catppuccin-2.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74a1f1db79d527905225f1afce1c8858d06e2dd1231e4300a72a812797cdb572
MD5 c728a09dfef2bf60a6279831a258b014
BLAKE2b-256 c89c7908f34009eec72884fe9448a62188423a3621f04ee58e2abaec379c9cc0

See more details on using hashes here.

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