Metadata-Version: 2.5
Name: catppuccin
Version: 2.6.0
Summary: 🐍 Soothing pastel theme for Python.
Author-email: backwardspy <backwardspy@pigeon.life>
License-File: LICENSE
Requires-Python: >=3.11.0
Provides-Extra: gh-pages
Requires-Dist: pdoc>=15.0.1; extra == 'gh-pages'
Requires-Dist: tinycss2>=1.2.1; extra == 'gh-pages'
Provides-Extra: ipython
Requires-Dist: ipython>=9.18.0; extra == 'ipython'
Provides-Extra: matplotlib
Requires-Dist: matplotlib>=3.8.4; extra == 'matplotlib'
Provides-Extra: pygments
Requires-Dist: pygments>=2.17.2; extra == 'pygments'
Provides-Extra: rich
Requires-Dist: rich>=13.7.0; extra == 'rich'
Description-Content-Type: text/markdown

<h3 align="center">
	<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/logos/exports/1544x1544_circle.png" width="100" alt="Logo"/><br/>
	<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height="30" width="0px"/>
	Catppuccin for <a href="https://www.python.org/">Python</a>
	<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height="30" width="0px"/>
</h3>

<p align="center">
	<a href="https://github.com/catppuccin/python/stargazers"><img src="https://img.shields.io/github/stars/catppuccin/python?colorA=363a4f&colorB=b7bdf8&style=for-the-badge"></a>
	<a href="https://github.com/catppuccin/python/issues"><img src="https://img.shields.io/github/issues/catppuccin/python?colorA=363a4f&colorB=f5a97f&style=for-the-badge"></a>
	<a href="https://github.com/catppuccin/python/contributors"><img src="https://img.shields.io/github/contributors/catppuccin/python?colorA=363a4f&colorB=a6da95&style=for-the-badge"></a>
</p>

## 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](https://python.catppuccin.com/docs).

## IPython Theme

Install `catppuccin[ipython]` in the same environment as IPython, for example as a uv tool:

```
uv tool install ipython --with "catppuccin[ipython]"
```

or with pip:

```
pip install "catppuccin[ipython]"
```

If you don't have an [IPython configuration](https://ipython.readthedocs.io/en/stable/config/intro.html)
file yet, create one with:

```
ipython profile create
```

Then add the following to your `ipython_config.py`:

```python
c.TerminalInteractiveShell.true_color = True
c.TerminalInteractiveShell.colors = "catppuccin-mocha"
```

You can also switch themes interactively with `%colors catppuccin-latte`.

Available IPython themes:

- `catppuccin-latte`
- `catppuccin-frappe`
- `catppuccin-macchiato`
- `catppuccin-mocha`

Each theme also has a variant without italics, such as `catppuccin-mocha:noitalic`.

> [!IMPORTANT]
> This requires IPython 9.18 or newer.
>
> IPython versions 9.0-9.17 are in a weird place where it requires an extension for the theme to work.
> I've chosen to skip that in the hope you can upgrade to 9.18 and use the new theme system.
> If you absolutely require support for these pre-9.18 versions, then open an issue explaining
> your situation and I will reconsider adding the extension as an option.
>
> For IPython 8, install `catppuccin[pygments]` and use
> `c.TerminalInteractiveShell.highlighting_style = "catppuccin-mocha"` instead.

## Contribution

If you are looking to contribute, please read through our
[CONTRIBUTING.md](https://github.com/catppuccin/.github/blob/main/CONTRIBUTING.md)
first!

### Development

This project is maintained with [uv](https://docs.astral.sh/uv/). If you
don't have uv yet, you can install it using the [installation
instructions](https://docs.astral.sh/uv/getting-started/installation/).

Install the project's dependencies including extras:

```
uv sync --all-extras
```

#### Codegen

[`catppuccin/palette.py`](./catppuccin/palette.py) is generated by a [build script](./build.py) based on the contents of [`palette.json`](./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`](#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`](https://docs.pytest.org/en/stable/).

To run tests and display coverage:

```
pytest --cov catppuccin
```

##### Type Checking

Type checking is performed by [`mypy`](https://www.mypy-lang.org/).

To run type checks:

```
mypy .
```

##### Lints and Formatting

Code linting and formatting is done by [`ruff`](https://docs.astral.sh/ruff/).

To lint the code:

```
ruff check
```

To format the code:

```
ruff format
```

## 💝 Thanks to

- [backwardspy](https://github.com/backwardspy)
- [Bram de Wilde](https://github.com/brambozz)
- [miloth](https://github.com/miloth)

&nbsp;

<p align="center">
	<img src="https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/footers/gray0_ctp_on_line.svg?sanitize=true" />
</p>
<p align="center">
	Copyright &copy; 2022-present <a href="https://github.com/catppuccin" target="_blank">Catppuccin Org</a>
</p>
<p align="center">
	<a href="https://github.com/catppuccin/catppuccin/blob/main/LICENSE"><img src="https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&logoColor=d9e0ee&colorA=363a4f&colorB=b7bdf8"/></a>
</p>
