Generate color palettes using artificial intelligence (OpenAI).
Project description
Pailettes
Generate color palettes using artificial intelligence. The OpenAI API is used for this, so you will require an account.
Installation
Pipx
pipx install pailettes
Pip
pip install pailettes
Configuration
To configure your OpenAI API key, create an environment variable as follows.
Linux
export OPENAI_KEY="your-key-goes-here"
Windows
TODO
MacOS
TODO
This will set your OpenAI key for that terminal session. If you would like to permanently set the environment variable, consult the documentation of your OS/shell.
Usage
Quick Start
pailettes retro
This creates a color palette with a "retro" theme.
Number of colors
To specify the number of colors in your palette:
pailettes retro --color-count=6
Number of palettes
To specify the number of palettes to generate:
pailettes retro --palette-count=3
Output to JSON
To output the palettes in JSON format, use the to-json parameter:
pailettes synthwave --palette-count=2 --to-json
And to output the JSON to a file, just add the json-file parameter:
pailettes synthwave --palette-count=2 --to-json --json-file=palettes.json
An example output:
[
{
"name": "Neon Sunset",
"colors": [
"#FF0066",
"#FF9900",
"#FFCC00",
"#33CCFF"
]
},
{
"name": "Digital Dusk",
"colors": [
"#6600FF",
"#00FFCC",
"#FF33FF",
"#FF6600"
]
}
]
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 pailettes-0.1.4.tar.gz.
File metadata
- Download URL: pailettes-0.1.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/6.8.0-76060800daily20240311-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce7eda9cc439299b6fe1e95ee2ccc6886fbc53e92ac751cceef5e2026c892513
|
|
| MD5 |
4ae2b09d3c85ba2ff0cface1f251aaae
|
|
| BLAKE2b-256 |
affbf85ea149dd44edcf60070676154b0318c4f98df43eae07f0990065f3d69c
|
File details
Details for the file pailettes-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pailettes-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/6.8.0-76060800daily20240311-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b67c45ac504df932ac5c9a060a66b088eb20c23d083e91c8ca9940861ef54163
|
|
| MD5 |
a66f6e172b1cb53513e247f7d0e1e419
|
|
| BLAKE2b-256 |
31eb461e7b2a33fd3d6422a93df36f99b8600bfe93634278d32287c2a7c29e55
|