Provides common color systems.
Project description
Introduction
pycolorname is a python package that aims to provide common color systems scraped from various sites.
Supported systems
Pantone
RAL-Classic
Installation
The easiest way to install the library is using pip. To install the latest stable version run:
$ pip install pycolorname
To get bightly builds from the master branch of the github repo, use:
$ pip install --pre pycolorname
Usage
To use a colorsystem, import a source from the module corresponsing to the system and create an instance of it.
To use the pantone color system, find the sources available in the pycolorname.pantone module and use one of them. For example, the PantonePaint source can be used in the following manner:
>>> from pycolorname.pantone.pantonepaint import PantonePaint >>> pantone_colors = PantonePaint() >>> pantone_colors["PMS 19-4914 TPX (Deep Teal)"] (23, 73, 80)
Another example using the RAL-Classic color system from the Wikipedia source:
>>> from pycolorname.ral.classic.wikipedia import Wikipedia >>> ral_colors = Wikipedia() >>> ral_colors["RAL 1000 (Green beige)"] (204, 197, 143)
Development
Testing
To test the code, install dependencies using:
$ pip install -r test-requirements.txt
and then execute:
$ python -m pytest
Build status
LICENSE
This code falls under the MIT License. Please note that some files or content may be copied from other places and have their own licenses. Dependencies that are being used to generate the databases also have their own licenses.
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
File details
Details for the file pycolorname-0.0.1.dev20160305214106.tar.gz
.
File metadata
- Download URL: pycolorname-0.0.1.dev20160305214106.tar.gz
- Upload date:
- Size: 60.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a65e644aaca8fd47d78753883511017f96368e10d13a9a8991338f67e927e76 |
|
MD5 | c5a6d90ee4bd40828ce65ca1dd1bf3c0 |
|
BLAKE2b-256 | 68351a1f47f6bc016b87ba1877188cb938b258ccc1e1a95fe893c010a4d0a987 |
File details
Details for the file pycolorname-0.0.1.dev20160305214106-py3-none-any.whl
.
File metadata
- Download URL: pycolorname-0.0.1.dev20160305214106-py3-none-any.whl
- Upload date:
- Size: 66.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1941327936d4ec6b6ed30d27b90a40f5a5d28fac977f9d1e7ffe7a91b0f4b64 |
|
MD5 | 6b84ea17284ad8e4ca031e11f0da02d1 |
|
BLAKE2b-256 | 663bb900743351c2c6c260da9cc938f669683d995cea8b7112e924cd0ae96c80 |