Create data that displays generative art when mapped into a 'plotnine' plot. Functionality includes specialized data frame creation for geometric shapes, tools that define artistic color palettes, tools for geometrically transforming data, and other miscellaneous tools that are helpful when using 'plotnine' for generative art.
Project description
artpack
Python port of the R package artpack, bringing generative art color palettes to the Python ecosystem.
About
artpack provides curated color palettes designed for generative art and data visualization. This is a work-in-progress port of the original R package.
Installation
pip install artpack-py
Quick Start
from artpack import art_pals
# Get 5 colors from the ocean palette
colors = art_pals("ocean", n=5)
print(colors)
# ['#12012E', '#144267', '#15698C', '#0695AA', '#156275']
# Reverse the palette
colors_rev = art_pals("ocean", n=5, direction = "reverse")
# Randomize color order
colors_random = art_pals("rainbow", n = 10, randomize = True)
Available Palettes
"arctic", "beach", "bw", "brood", "cosmos", "explorer", "gemstones", "grays", "icecream", "imagination", "majestic", "nature", "neon", "ocean", "plants", "rainbow", "sunnyside", "super"
Development Status
🚧 Work in Progress - Currently porting core functionality from the R version. More features coming soon!
Currently implemented:
- ✅ Color palette generation (
art_pals()) - ✅ Circle data generation (
circle_data()) - ✅ 100% test coverage
- ✅ CI/CD with GitHub Actions
Roadmap:
- Additional color palette tools (Functions that help with color-related tasks.)
- Asset creation (Functions that help with making data for generative art.)
- Geometric testing tools (Functions that help with geometric/spatial analysis for generative art.)
- Grouping tools (Functions that help with grouping generative art data.)
- Sequencing tools (Functions that help with numeric sequencing.)
- Transformation tools (Functions that help with transforming existing generative art data.)
Links
- Python Package (PyPI): artpack-py
- Original R Package (CRAN): artpack
- GitHub Repository: github.com/Meghansaha/artpack-py
License
MIT License
Copyright (c) 2025 Meghan Harris
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Author
Meghan Harris (@meghansaha)
Project details
Release history Release notifications | RSS feed
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 artpack-0.2.0.tar.gz.
File metadata
- Download URL: artpack-0.2.0.tar.gz
- Upload date:
- Size: 552.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a5da00f7c409dcd949a9ced0dc1a107b08084365801ef4840e47cf2f7819c45
|
|
| MD5 |
2557275c9ec4a2dfe1d999e33e8ccdc3
|
|
| BLAKE2b-256 |
d49f4e0cf305ad43cab756c110a1e48d380065c73a47127fafadca1f9f9ce87c
|
File details
Details for the file artpack-0.2.0-py3-none-any.whl.
File metadata
- Download URL: artpack-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a9033622f0d2df69951b0aa6fab4f82d730933fb6c2c31db337ba7cd2640383
|
|
| MD5 |
61cd1342b2f91b3a7d6e2f5dd6735280
|
|
| BLAKE2b-256 |
edec64230fcea0382d61b5a5ee792161de335b7f9f2b45686809bb7e2f0d1602
|