Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Running tests will automatically update the database of files used by the color systems by fetching it from the respective sources.

Build status

CircleCI Status

Credits

This package has been derived from pywikibot/pycolorname. Which in turn was extracted out of pywikibot/compat. These packages were created by DrTrigon who is the original author of this package.

LICENSE

MIT

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.

Metadata

Release files for pycolorname 0.0.1.dev20160311025804

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycolorname 0.0.1.dev20160311025804
File Size Uploaded Provenance Actions
pycolorname-0.0.1.dev20160311025804.tar.gz 60.4 kB Without provenance Details for pycolorname-0.0.1.dev20160311025804.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycolorname 0.0.1.dev20160311025804
File Interpreter ABI Platform Actions
pycolorname-0.0.1.dev20160311025804-py3-none-any.whl Python 3 none any Details for pycolorname-0.0.1.dev20160311025804-py3-none-any.whl

Total release size: 126.7 kB

Release files / pycolorname-0.0.1.dev20160311025804.tar.gz

Download URL pycolorname-0.0.1.dev20160311025804.tar.gz
Size 60.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f018b87081db33ae129882e75c205c34b606d5675cb5a410225488771d860fab
BLAKE2b-256 checksum
How to use checksums
e23e25c1bdb3c0b96a22819a1a2bd880e3f80ae04b0c2511584cea15193be155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycolorname-0.0.1.dev20160311025804-py3-none-any.whl

Download URL pycolorname-0.0.1.dev20160311025804-py3-none-any.whl
Size 66.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
639dc88d2f91f79576995cb165be39231aa2131c5adec99d748fffb8552e6ca7
BLAKE2b-256 checksum
How to use checksums
6b41c10568e7034938c0f1c61aec29729dc170d65a03e19df27b784d206f8e4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pycolorname 0.0.1.dev20160311025804

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page