Skip to main content

randomcolor Build Status

A port of David Merfield's randomColor (currently davidmerfield/randomColor@0.4.4) to python. Tested against python versions 3.6, 3.7, 3.8, 3.9, pypy, and pypy3.

Usage

Generating a completely random color:

import randomcolor
rand_color = randomcolor.RandomColor()
print(rand_color.generate())

Generating 3 random blue colors:

print(rand_color.generate(hue="blue", count=3))

Refer to the tests for examples and README at davidmerfield/randomColor for full usage details.

Tests

Run python setup.py test to run the test suite with stored expected colors generated from a seeded randomcolor object.

Run python tests/test_randomcolor_visual.py to generate an html page with random colors generated from using this package. Open randomcolors.html to confirm that the colors fall within the parameters pased in. This is in addition to unit tests since it's much easier to visually confirm that the colors generated are correct than determine correctness programatically.

Release files for randomcolor 0.4.4.6

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

Source distribution (sdist)

Source distribution for randomcolor 0.4.4.6
File Size Uploaded
randomcolor-0.4.4.6.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for randomcolor 0.4.4.6
File Interpreter ABI Platform
randomcolor-0.4.4.6-py3-none-any.whl Python 3 none any Details

Total release size: 9.4 kB

Release files / randomcolor-0.4.4.6.tar.gz

Download URL randomcolor-0.4.4.6.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d2b66f07ea8606aee55b648aed82e810964bbd3f6dfba0e6d57818761d437c93
BLAKE2b-256 checksum
How to use checksums
50961f3bfafcb0e7bd7fbc122fa1fd4af7fc6b59543ceaf98786cc14a070db25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.2

Release files / randomcolor-0.4.4.6-py3-none-any.whl

Download URL randomcolor-0.4.4.6-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f1a81d39cacae560c499fda390913a6bf47d6c0c1cd61f625a2a87a16dfff45
BLAKE2b-256 checksum
How to use checksums
c964b246ee088465046ae2111c8eb3373062014b77ce6ab9af9c70bf976af980
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.4.4.6 This release

2 release files

0.4.4.4

1 release file

0.4.4.0

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