Skip to main content

Material You color generation algorithms in pure python!

Project description

image

Material You color algorithms for python!

Minimal running example:

Run file tests/test_color_gen.py as:

python3 test_color_gen.py <image path> <quality>

Maximum quality is 1 that means use all pixels, and quality number more than 1 means how many pixels to skip in between while reading, also you can see it as compression.

Click to view result

Image Used, size was 8MB

image image

Install

You can easily install it from pip by executing:

pip3 install materialyoucolor --upgrade

Prebuilt binaries are avaliable for linux, windows and macos.

Build and install

It is built in reference with offical typescript implementation but it's color quantization part is based on c++ implementation thanks to pybind.

# Install pybind 11 
pip3 install pybind11
pip3 install https://github.com/T-Dynamos/materialyoucolor-pyhton/archive/develop.zip

FAQ

  1. How it is different from avanisubbiah/material-color-utilities?

See https://github.com/T-Dynamos/materialyoucolor-pyhton/issues/3

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

materialyoucolor-2.0.5.tar.gz (44.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

materialyoucolor-2.0.5-cp312-cp312-win_amd64.whl (105.8 kB view details)

Uploaded CPython 3.12Windows x86-64

materialyoucolor-2.0.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (127.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

materialyoucolor-2.0.5-cp312-cp312-macosx_10_9_universal2.whl (183.7 kB view details)

Uploaded CPython 3.12macOS 10.9+ universal2 (ARM64, x86-64)

materialyoucolor-2.0.5-cp311-cp311-win_amd64.whl (105.4 kB view details)

Uploaded CPython 3.11Windows x86-64

materialyoucolor-2.0.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (127.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

materialyoucolor-2.0.5-cp311-cp311-macosx_10_9_universal2.whl (188.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

materialyoucolor-2.0.5-cp310-cp310-win_amd64.whl (104.3 kB view details)

Uploaded CPython 3.10Windows x86-64

materialyoucolor-2.0.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (126.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

materialyoucolor-2.0.5-cp310-cp310-macosx_11_0_x86_64.whl (114.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

materialyoucolor-2.0.5-cp310-cp310-macosx_10_9_universal2.whl (187.3 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

materialyoucolor-2.0.5-cp39-cp39-win_amd64.whl (104.2 kB view details)

Uploaded CPython 3.9Windows x86-64

materialyoucolor-2.0.5-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (126.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

materialyoucolor-2.0.5-cp39-cp39-macosx_11_0_x86_64.whl (114.9 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

materialyoucolor-2.0.5-cp39-cp39-macosx_10_9_universal2.whl (187.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file materialyoucolor-2.0.5.tar.gz.

File metadata

  • Download URL: materialyoucolor-2.0.5.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for materialyoucolor-2.0.5.tar.gz
Algorithm Hash digest
SHA256 869888a1bc2a1966cb6982e967fadc1ef9eb0b63c52a4e0300e017ce87da92e3
MD5 053b0a2d8f6e76c6f8e5f95cc3cee566
BLAKE2b-256 904bd619676eb3baf0e756088daa18f59e4e5a24d3dde1ee75faa29089c414b5

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7aca78c9cad53bf5c86cead8c23bba45913b92d8039252ba1a778318fa48cd52
MD5 553c6199e96e0a5d0ddc80daf2098751
BLAKE2b-256 729e65ada58895f219bba5ac0efb2b8b7c7e016440c0f8924af666e2e9b0a01b

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dae027a0c846e0764fca721e6702321cda8b653542d6c4dffadceadfc1850fcc
MD5 3403ab8776f439f246f28f46d4fc7dee
BLAKE2b-256 7042fd1b48addd3b6e966982c24cca884a0e07a17cc144614fcfce387d38381c

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ed9a46a2c5a3c2e240ffd903a3ee1fab0b1690521636221729faea95d20fde0e
MD5 5cbeb30373b02477b016ff63955c3762
BLAKE2b-256 244ddebf169e6cd6f2f974c4535c205c4b942677baad8cd2d29bea9675c73e76

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5b578607dafb8bddcf41603f6ffb575bab1dd0ab89b72edc4b404e6163ed43e2
MD5 8d3a2c3cf88de0efc768909cccfb9221
BLAKE2b-256 bc7834a0e262506aecfddf3413acac0405d10ee2fcf43bfa1aedc93146731add

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6f44a07ae00e3299f037d37ebe4c9741fb7959f7fa47fb49f167ca868009e7cb
MD5 09f1b214a2953c27c9e08de71a447daf
BLAKE2b-256 ca261ce6490955eb6adcb69d3e1d9aa436bec853729e00c122528b1f5e419218

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 44e01c29b942fcc1ea32812d2ba55a5b489768f1f8e7e987c5eca067364892cc
MD5 6ed49e356a292960e840b0733c3b5737
BLAKE2b-256 fb137edd4315673a737c99df74cb2b3bf3617415169bc198609e7467fd5cd638

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0a5b9f8eed845ce7502801204daad84ef4575d07cc519b96cc00ce8e0107ae9f
MD5 fd0dedee10386c7a2910e923e3483bed
BLAKE2b-256 a2094b329b28d775075576ea8892c5cd7878dd8206fa85671cda4b412ec0523f

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5864941ec5757c3a029845691a1b2aa0dc226d88f5fbda45d9d41f1ffc8b1c47
MD5 aa4f337d1790d98d69ed4bb91b2dd0bd
BLAKE2b-256 64eec4015d9fc4986b00e56b7f4cad57d53686e94521ab4db09873babff7dbf0

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 d6d7c08b1e22a00884d3fb0aa1f3954db54bfc680a18edba4059c1badfa1ac16
MD5 400f5fded748a88f629ba8eff488d09f
BLAKE2b-256 d7b23f6c442847572cc1ccfea81906f1d31786385310e127850248c0d420a3c1

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 62d3d623e15254b9e74ac28774bc907f049a86169c4394f635f8136b3f921d10
MD5 62c42f1ec88f900487b04f46397d7d1a
BLAKE2b-256 4992593f793a819767bd5a721cd03141f52a3dcc5ce519db82717f9ec323ff00

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dc621963fb2c99957e4d05f74db5bb4ee755a3722683cf8f08c30383f7c6bae4
MD5 e55f1f4693f65b0a5b5ed5e734f91a96
BLAKE2b-256 7a9b5b0459a8200677838a8261991fdaf88c5ea2b5f20a7c24474a7bfdde5b4d

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 75c7e0a744b4bd4f56caafc380d32be5e1faed6314b646a24a3ae3f1f44709c3
MD5 b685c7e610e21779e227453b6182815a
BLAKE2b-256 e48eb06d66ec9096f1ac09616233872dec5d705f420d830e95b2c0d2457e6167

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 2e115130b2e55e1f42a905e409f47d66c6d8551a47df37132d87fe9c0d3eb81b
MD5 5d3d856e77881c1169978ebe559822f3
BLAKE2b-256 8c9497559e5cac0bd863b64bd5f5e3349feee95c8a10ba4e8cf4c714870ca2c9

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.5-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.5-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2a2d362aedf1c910e8dc84c4a31b04d45eb1f161fbd03056db3c3910f6d66a8f
MD5 1e0a1dde2d2818db7bcaaffe32b2ca42
BLAKE2b-256 cf4c3098ffa2c152094d1f5e4fef8e8c0dd89f540f1729982b6d9425df75ff2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page