Feedzai's theme for Altair charts.
Project description
feedzai-altair-theme
Feedzai's theme for Altair charts.
Sneak peek
Quickstart
Installation
Via pip:
pip install feedzai-altair-theme
Via Pipenv:
pipenv install feedzai-altair-theme
Via Poetry:
poetry add feedzai-altair-theme
Via PDM:
pdm add feedzai-altair-theme
Via uv:
uv add feedzai-altair-theme
Usage
import altair as alt
alt.theme.enable("feedzai")
You can find some example charts in the demo.ipynb notebook.
Development
Assuming uv is installed, install Python:
uv python install
Create and activate the development environment:
uv sync
source .venv/bin/activate
After implementing changes, type-check with mypy, then lint and format the code with Ruff:
mypy
ruff check --fix
ruff format
To see the changes applied to some example charts, use the demo.ipynb notebook:
jupyter lab demo.ipynb
Once done, run the tests to confirm that the theme is working for the major supported versions of Altair:
uv run --isolated --with "altair==5.5.0" pytest
uv run --isolated --with "altair==6.0.0" pytest
Finally, deactivate the development environment:
deactivate
Deployment
Bump the package version
Bump the feedzai-altair-theme version using one of the following commands, according to the Semantic Versioning specification:
uv version --bump patch
uv version --bump minor
uv version --bump major
Next, confirm you can build the package locally:
uv build
Open a PR
Once the changes are finished and the feedzai-altair-theme version is updated, open a PR. After the PR is merged, a maintainer will ensure a new package version is released.
Release the new package version
To release a new version of feedzai-altair-theme, create a new (lightweight) tag from the master branch, and a GitHub Actions workflow will take care of the rest:
git tag "v$(uv version --short)"
git tag -n
git push origin --tags
Misc
Install the feedzai-altair-theme package in an environment without an Internet connection
Via repo
First, download the repo and move it to your environment. Then install the package with pip (or an equivalent) by pointing to the folder path and adding the necessary flags:
pip install feedzai-altair-theme/ --no-deps --no-build-isolation
This command assumes that the feedzai-altair-theme dependencies and the uv build backend are already installed in your environment. For more information about the additional flags, check the pip install documentation.
Via wheel
First, download the wheel (a.k.a. built distribution) and move it to your environment. Then install the package with pip (or an equivalent) by pointing to the file path and adding the necessary flags after replacing <VERSION>:
pip install feedzai_altair_theme-<VERSION>-py3-none-any.whl
This command assumes that the feedzai-altair-theme dependencies are already installed in your environment.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file feedzai_altair_theme-2.1.0.tar.gz.
File metadata
- Download URL: feedzai_altair_theme-2.1.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6420be7a11e52b5332202ab10db508e7dfb4c8dff3d94d0b283502bd25b42aa9
|
|
| MD5 |
4909d0cda585c8ba916b8ec4d1d43151
|
|
| BLAKE2b-256 |
41a9611982eb87c5d46f2021c5891b65e7fbf2bbc4990c346a18fdd15bd70dd9
|
File details
Details for the file feedzai_altair_theme-2.1.0-py3-none-any.whl.
File metadata
- Download URL: feedzai_altair_theme-2.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b056e582da7f484fee1d81357fcc24986be4a232106f218ef8d0198cbda1f063
|
|
| MD5 |
3de73ebe2f1e3ccc06e0da7bb8724555
|
|
| BLAKE2b-256 |
38a84a7ef6130951cf4233010d032e92d25e56e7326746493b410f5aad652276
|