Palettes
Utility to easily use palettes
Colors
There are two palettes material and flat.
Vtint Colors
You can view them in a svg file. Those have been custom made using tints.dev.
Material Colors
You can view them in a svg file. More info at material.io.
Flat Colors
You can view them in a svg file. More info at html color codes.
Tailwind Colors
You can view them in a svg file. More info at tailwind colors.
Installation
You can install it with pip by running:
pip install v-palette
Usage
You can retrive one color or a list of colors using get_colors function:
from v_palette import get_colors
# 1. Retrive one color
get_colors(("red", 100)) # out: '#FFCDD2'
# 2. Retrive some colors
get_colors([("red", 100), ("blue", 100)]) # out: ['#FFCDD2', '#BBDEFB']
# 3. Retrive colors from others palettes
get_colors([("emerald", 100), ("silver", 100)]) # out: ['#D5F5E3', '#F2F3F4']
get_colors([("emerald", 100), ("silver", 100)], palette="flat") # out: ['#D5F5E3', '#F2F3F4']
The parameter
paletteis not necessary if the color you want is not present in the material palette. Since if the color is not found in the default palette it will look at the others palettes.
Development
This package relies on poetry and pre-commit. In order to develop you need to install both libraries with:
pip install poetry pre-commit
poetry install
pre-commit install
Then you need to add poetry run before any python shell command. For example:
# DO
poetry run python master.py
# don't do
python master.py
Authors
License
The content of this repository is licensed under a MIT.
Nomenclature
Branches and commits use some prefixes to keep everything better organized.
Branches
- f/: features
- r/: releases
- h/: hotfixs
Commits
- [NEW] new features
- [FIX] fixes
- [REF] refactors
- [PYL] pylint improvements
- [TST] tests
Metadata
Release files for vpalette 3.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vpalette-3.1.3.tar.gz | 11.6 kB | Without provenance | Details for vpalette-3.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vpalette-3.1.3-py3-none-any.whl | Python 3 | none | any | Details for vpalette-3.1.3-py3-none-any.whl |
Total release size: 22.1 kB
Release files / vpalette-3.1.3.tar.gz
| Download URL | vpalette-3.1.3.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8289ba3d1ad15878fd1bd7d34fcfdec2855f1259edb1f05ddc4c427838791dd6
|
|
BLAKE2b-256 checksum How to use checksums |
9e4f26363314871857fcbf909ee5df04a3fde1a3163563ac51ca98d906c2c481
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / vpalette-3.1.3-py3-none-any.whl
| Download URL | vpalette-3.1.3-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a56b6ca82e7cf5e3d15da490d7fc3fe93a7c8b53691cac408facd6e507c77ef4
|
|
BLAKE2b-256 checksum How to use checksums |
ecd08013babf10e0e063bbde4904144275bb72b2f39c04d16da9c219730b73db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for vpalette 3.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.