farben
This library provides an easy way to generate color palettes:
In computer graphics, a palette is a finite set of colors. — Wikipedia article 'Palette (Computing)'
.. often referred to as Swatches (as branded by Adobe Inc.):
Swatches are named colors, tints, gradients, and patterns. — Adobe Illustrator
.. featuring the following (proprietary) color spaces:
For now, farben creates master palettes for use in
Installation
It's available from PyPi:
# Using 'pip'
pip install farben
# Using 'poetry'
poetry add farben
Getting started
Using this library is straightforward - otherwise, --help is your friend:
$ farben fetch --help
Usage: farben [OPTIONS] COMMAND [ARGS]...
PANTONE®, RAL®, Dulux®, Copic®, NCS®, HKS® and Prismacolor® color palettes
for Scribus, GIMP, AutoCAD, Inkscape, Krita & LibreOffice.
Options:
-v, --version Show the version and exit.
-h, --help Show this message and exit.
Commands:
fetch BRANDS: pantone | ral | dulux | copic | ncs | hks | prismacolor
Using its fetch command is fairly easy, like that:
# Example 1
# - all brands
# - all palettes
$ farben fetch
# Example 2
# - all brands
# - only specific palette(s)
$ farben fetch -p gpl
$ farben fetch -p gpl -p acb
# Example 3
# - only specific brand(s)
$ farben fetch copic
$ farben fetch copic dulux
.. you get the idea!
FAQ
Q: But where do all those files go? A: That depends, ..
- ..
.xmlfiles may be loaded individually withEdit - Colours & Fills - Solid Colours - Import(Scribus) - ..
.socfiles belong here:~\AppData\Roaming\libreoffice\3\user(Windows + PowerShell, otherwise%userprofile%)~/Library/Application Support/libreoffice/4/user/config(Mac)~/.config/libreoffice/4/user/config(Linux)
- .. installing
.gplfiles boils down to:- moving them to any path specified in
Edit - Preferences - Folders - Palettes(GIMP) - moving them to
palettesunder directory specified inEdit - Preferences - System - User Config(Inkscape) - importing them using the palette docker (Krita)
- moving them to any path specified in
- .. installing
.acbfiles is pretty straightforward
Color samples
If you are looking for a quick way to browse PANTONE® colors, check out the Pantone Finder package or visit their website to get started.
Once you retrieved color palettes, you can
- view them using PHP like this:
cd examples/{brand} && php -S localhost:8000 - view static HTML page like this:
cd examples && python build.py
When clicking on a color tile, its hex value is copied to your clipboard (powered by clipboard.js).
Copyright
Whenever mentioned throughout this project, PANTONE® and related trademarks are the property of Pantone LLC, a division of X-Rite, a Danaher company.
The same applies to ..
- RAL® and related trademarks of RAL gGmbH (non-profit LLC) and RAL Deutsches Institut für Gütesicherung und Kennzeichnung e. V.
- Dulux® and related trademarks of AkzoNobel N.V. (worldwide) and DuluxGroup (Australia & New Zealand)
- Copic® and related trademarks of Too Marker Corporation
- Natural Colour System® and related trademarks of NCS Colour AB
- HKS® and related trademarks of HKS Warenzeichenverband e.V
- Prismacolor® and related trademarks of Berol Corporation, owned by Sanford L.P., a Newell Brands company.
We assume neither ownership nor intellectual property of any kind - color codes (and names), sRGB and/or hexadecimal values are publically available on the internet.
Similar projects
- For Scribus, there's also the (currently unmaintained) package
SwatchBooker
Happy coding!
©️ Fundevogel Kinder- und Jugendbuchhandlung
Metadata
Release files for farben 2.1.0
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 |
|---|---|---|---|---|
| farben-2.1.0.tar.gz | 17.7 kB | Without provenance | Details for farben-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| farben-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for farben-2.1.0-py3-none-any.whl |
Total release size: 37.5 kB
Release files / farben-2.1.0.tar.gz
| Download URL | farben-2.1.0.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68d88ab6d47138feb421867f96079bf920dd5faf1e0c99bae1d056c1275f3844
|
|
BLAKE2b-256 checksum How to use checksums |
fb519bc4eb89bcbc15e8d20421a9f5de11cc14df20a602085c272389a32f1c4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.4 Linux/5.19.0-76051900-generic
|
Release files / farben-2.1.0-py3-none-any.whl
| Download URL | farben-2.1.0-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d70eb3b7eaa653aaabf83ffbb8357d23d5441f2afa7b9146c0ea1ae97deaf15
|
|
BLAKE2b-256 checksum How to use checksums |
95457eef1eb6dafbc6eb7fe15d740bddaec274d0c319c5fb2d03df44b031b5d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.4 Linux/5.19.0-76051900-generic
|
Security for farben 2.1.0
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.