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.1.tar.gz (31.4 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.1-cp312-cp312-win_amd64.whl (97.0 kB view details)

Uploaded CPython 3.12Windows x86-64

materialyoucolor-2.0.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (118.3 kB view details)

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

materialyoucolor-2.0.1-cp312-cp312-macosx_10_9_universal2.whl (173.0 kB view details)

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

materialyoucolor-2.0.1-cp311-cp311-win_amd64.whl (97.9 kB view details)

Uploaded CPython 3.11Windows x86-64

materialyoucolor-2.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (118.6 kB view details)

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

materialyoucolor-2.0.1-cp311-cp311-macosx_10_9_universal2.whl (178.0 kB view details)

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

materialyoucolor-2.0.1-cp310-cp310-win_amd64.whl (96.8 kB view details)

Uploaded CPython 3.10Windows x86-64

materialyoucolor-2.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (117.3 kB view details)

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

materialyoucolor-2.0.1-cp310-cp310-macosx_11_0_x86_64.whl (105.4 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

materialyoucolor-2.0.1-cp310-cp310-macosx_10_9_universal2.whl (176.7 kB view details)

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

materialyoucolor-2.0.1-cp39-cp39-win_amd64.whl (96.7 kB view details)

Uploaded CPython 3.9Windows x86-64

materialyoucolor-2.0.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (117.5 kB view details)

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

materialyoucolor-2.0.1-cp39-cp39-macosx_11_0_x86_64.whl (105.5 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: materialyoucolor-2.0.1.tar.gz
  • Upload date:
  • Size: 31.4 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.1.tar.gz
Algorithm Hash digest
SHA256 6459b8de6c17b90dbbd213cbe1e055225781116e129b9e583211820bbd42b1f8
MD5 ae22915fbee439d296ab292107ea673c
BLAKE2b-256 ec6faa5a3b827656977b875c2a87c4bca24e2ffaca4c2a34402476194e13ff55

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7f2ae01a2825f9d0a27514e63ce7b05153d5bcff40511a19066226b112369358
MD5 962b8a70f3f504b45bf24fda828aa4a5
BLAKE2b-256 382f24d0ea2546616697c7b4d998bfdec82fbb57f0e2bd15bbb4531ccc133669

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7295391d3d1b8e56c892bc437bcf48a97c1f9850d5c4cb60ff6ca27737ebef7e
MD5 f62d8faa7b61fec5b38ef001433c03aa
BLAKE2b-256 794d8ff679c00287d4d851476456887deee0b100a2d544a7e3eeccdc4c815608

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7ce0aa27f0122931fe4e64d11cf0a2a231fb00a42189d421c424de0099f7f08b
MD5 f6d06c48d6116a253359d6e2ba9f386b
BLAKE2b-256 d24b9a9397a43761c4723ec69ec4d05cba0375136c516e160b27573b8978a0e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 60d4f98df3fa8691058d744d0ed04ac00fde8285811fbaa7f910d4946a417b2e
MD5 373145f4c6cb759da9fbd2bbe0308981
BLAKE2b-256 1a2fe510cb325bf2d303422aa20ed2156a134e8dad23bae73a8d5736c4bc5235

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9ad9594b85864fad6aca46c13b65803c99b00f2cf55769b1c17763792041f22e
MD5 d02dfda465f5e8cc3fef1244d7c288d9
BLAKE2b-256 64785783616738b28ae828c37400e7ecb65f2b4b108069afdaf786de5e5ba480

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4beb537a7c296ceeb8fe3a990e07b8b7469636eb1ecec68e5fffe02bd5138347
MD5 c2999675f88653ab3b2bd7a065f715e2
BLAKE2b-256 7bfe9241367c2a8c84c8d31818ee4f12b491fa1798abdac6038a7ee0583013a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e1e60d477bcc188428aaf8f02afad8c2ab6a381cf97e59654df80c1a70703e8e
MD5 3758d72ca174e36736235d3bc973664f
BLAKE2b-256 3215155c04d26a877efc325a581ce68dd67501bfef552520efd5b5c6f06db9a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8fa70da5bbc1c179f8acbc2d70e7a7ea7d15f03b3d787114006ba275bfe3554b
MD5 e06d0468b1cfa48a69b3bc511c0d93d1
BLAKE2b-256 fd563206ac6454fea981e772a15923a0ca9abecf742d2e6e69a54587b742802a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 b6d946398364e95a4fe1d088bb5953f612e7d16ecb787a54758e89f57ae59ffa
MD5 c528ea40d6d7dcbda454c4ba6f188853
BLAKE2b-256 99672a50ec9807a5fdc9bfca03624ad09d03762118a116dd2d26b17e2dff03d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c4e648b8367becd4b69a7a076071d50e44004fa387417f25414cdcdf9488b246
MD5 e76846f637cc071ebf624f5414f321b1
BLAKE2b-256 96eb86c18af535bef9fb5c5338216c33c5e3807160ef0503ea2f972158b0391c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6030dd8abcf59c01698c9853fc6808f7316cd8b17b7328544af72757d181bd9d
MD5 411218f6aa16b59784672b2ee0f3b7fa
BLAKE2b-256 ceb78abffc612759b8d0ce3492c89eff7350a964be4123d2c76c1c9eaa5fcd71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 206381892a86501286e83988776c24e0cb603495808a978375f16c042d9a74e2
MD5 797110bd552d24ff1a6759c960d16219
BLAKE2b-256 107bb5cb6645910806d633ad1979f8b04e16c894c2e2eb7269d9fb36ff8de459

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.1-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 76fdaf62780527f6b8a314e56cdb422b570f378b8673cb754d1bd45e65f909bc
MD5 9161d677f1994a20d52456eabb3a93b5
BLAKE2b-256 e8ac33bb1a2fbb7fc5dfc74d9f46d590d41e3877b712031057e955fa1c8e42fa

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