Skip to main content

Encode or Decode Blurhash strings in a PySide2/6 project.

Project description

blurhash-pyside

GitHub License GitHub Actions Workflow Status GitHub Release PyPI - Version PyPI - Python Version PyPI - Wheel

Blurhash encoding and decoding for PySide2/6

  • Encode a QImage or QPixmap into a blurhash string
  • Decode a blruhash string into a QImage or QPixmap

For more information about Blurhash visit their official page.

Local Development

Requirements:

  • Python 3.9+
  • Hatch
  • CMake 3.27+

Run the example:

# choose one:
hatch run pyside6:example

# pyside2 may not be available for all python versions or platforms
hatch run pyside2:example

Setup your local environment

Create a repo relative .venv/ dir:

hatch env create

Run the tests:

hatch test

Build the wheel for your platform:

hatch build -t wheel

The cmake project is not intended to be run on its own but it is possible to do it. The pybind11 dependency will be available after creating the default virtual environment and passing its python executable path to cmake via Python_EXECUTABLE. Some IDE's may do this for you when a python environment is activated in their configuration.

Acknowledgements

The core C++ code for the blurhash functions was source from https://github.com/Nheko-Reborn/blurhash under the Boost Software License. Some minor modifications were made.

This project is made possible by pybind11 and scikit-build-core. Multi-platform wheels are generated using the cibuildwheel project.

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

blurhash_pyside-0.2.0.tar.gz (197.2 kB view details)

Uploaded Source

Built Distributions

blurhash_pyside-0.2.0-cp312-cp312-win_amd64.whl (67.8 kB view details)

Uploaded CPython 3.12 Windows x86-64

blurhash_pyside-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (70.7 kB view details)

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

blurhash_pyside-0.2.0-cp312-cp312-macosx_11_0_x86_64.whl (58.6 kB view details)

Uploaded CPython 3.12 macOS 11.0+ x86-64

blurhash_pyside-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (56.3 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

blurhash_pyside-0.2.0-cp311-cp311-win_amd64.whl (67.5 kB view details)

Uploaded CPython 3.11 Windows x86-64

blurhash_pyside-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (71.5 kB view details)

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

blurhash_pyside-0.2.0-cp311-cp311-macosx_11_0_x86_64.whl (60.0 kB view details)

Uploaded CPython 3.11 macOS 11.0+ x86-64

blurhash_pyside-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (56.9 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

blurhash_pyside-0.2.0-cp310-cp310-win_amd64.whl (66.4 kB view details)

Uploaded CPython 3.10 Windows x86-64

blurhash_pyside-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (69.9 kB view details)

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

blurhash_pyside-0.2.0-cp310-cp310-macosx_11_0_x86_64.whl (58.6 kB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

blurhash_pyside-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (55.6 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

blurhash_pyside-0.2.0-cp39-cp39-win_amd64.whl (66.4 kB view details)

Uploaded CPython 3.9 Windows x86-64

blurhash_pyside-0.2.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (69.8 kB view details)

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

blurhash_pyside-0.2.0-cp39-cp39-macosx_11_0_x86_64.whl (58.8 kB view details)

Uploaded CPython 3.9 macOS 11.0+ x86-64

blurhash_pyside-0.2.0-cp39-cp39-macosx_11_0_arm64.whl (55.7 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

File details

Details for the file blurhash_pyside-0.2.0.tar.gz.

File metadata

  • Download URL: blurhash_pyside-0.2.0.tar.gz
  • Upload date:
  • Size: 197.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for blurhash_pyside-0.2.0.tar.gz
Algorithm Hash digest
SHA256 97693139fc23b946043f77930963cc316eb1d2f6a3325832fe01229a4c540769
MD5 f5620495bcb67c5eac2400dec3b6575b
BLAKE2b-256 8d87f06afa692219a2137201bbe394a27068c182be3401d948a42bc542428342

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bc109e08de206fb4027a217a0228f48c3d0d36c7aa93ff772198de92cb9a0fa1
MD5 c750d767c5fd2a6aa4978ec36a214b7a
BLAKE2b-256 01c5ecb2e8e6fa246464363ba34cfa8febf43cd1a33396475e06072329412385

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 150f9af2fa1c156645b5e4c3fe143cedbfd1fbc6cc265b5b4c5cbcb833708ae1
MD5 6c2a350ff9a3a18ac390eb3e75f52b48
BLAKE2b-256 79318833f5b77b583d090d2a5ba97a4b5ff9eacc74480ee548837e56e2c54e8c

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 7881104caa2fb7a0e226f7143c04e9ef40dff694e27891d4730367c7a352e3f0
MD5 b71fa0667105c5a92d7f29b1bfa46231
BLAKE2b-256 4b786f51df6fed7ea51323c13c88f8f92fe99b92726ce104763ff632cf4dcbd2

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3827d60708fa2e3626922e85d45abf4f07a5c9f0f01d69119fd0c875cc3252a
MD5 20cf5b609f2c761bcb8d3b32dff0e217
BLAKE2b-256 0f2804dd58ef54974cbe6ec374793e34458314f54038365edaa076c5522ac161

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5c54d18e61dce7be2fb275c35b37e9d417ab52856ac46c64208c3b3ba75e7a99
MD5 6b2cda4b33251f16c45540fbbe7e3349
BLAKE2b-256 3460e9e5801290cee0ef50f988e5b2590acca8d71e4877ebcd27808f7db0f0b4

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 291bb19413d902ef003e6bfdbbdff39b151fa3fcfe1fd96e3a3c55fc26df7018
MD5 d17ca29cd4e1b9fe0fffc730f00df48d
BLAKE2b-256 95d117f945dca2cd886606cf4d7be133c72fb403fb57e29d5ba3b1892c9687aa

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 d10270082fc8b3113726419bd5bf6da7e38d9aee066db02ec10c379d0ea26e80
MD5 0734a5aa1614de83280ad602a9f051a9
BLAKE2b-256 d779b3ef44180ddbae4b06925cccb4f82f5dfc7d8d627bb605f2c3c7c3c90d50

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3772382fcd3b948db1a8aec7daea78a09c0e013e4871824920e92867828860b
MD5 4ec6aabab163b2d1c7ecce1e739c62df
BLAKE2b-256 7b95ea03b1323b630a04718911f749c63145307dca823292ee01884c9a7d12ab

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9170dda62af02af6f84e1b87e2895269ab9516170c70819bfc0d7dfcde302833
MD5 24c98c6750139ac0d4d2986fbcac0dd6
BLAKE2b-256 11c9c966c56b8c53bb5e88345a762cfaaa0fa2a9ba40c8b0a70c16db44233a12

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 382222f73b46231330aa08e4617c206bcad3237f4ab5a34bfa230fab2853c0fc
MD5 6e3fc4415d4b376d24f5d90b8f484faf
BLAKE2b-256 00aa1efd75ac3b02f268e75145cddf8a8ce68a1fc0bf04cd39865d875ad5e2e3

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 1843f210c312b8e57865310d5bce1c57daf5367a78f697b8cea0bb556d680859
MD5 f6e989a0b4f04c086de5f596181210a0
BLAKE2b-256 1cb5fcc578201365422f283c1e7267e6ed2240233d4ad664c8a42ca146d4ba71

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d69b3fefaa04cfc2696e1b11ef0dc2878aafb28f3a2f59f0fcd0b1bd52ea00f
MD5 bce3322a2541c84567c66e7339ced4b7
BLAKE2b-256 d895aa89b476dbc15995bcdeda9ecbc7ae5001e4593ab9afc707e0f57dfc1b41

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 aa117c014ba60433fdcbff3a43176cdfc4c54322b7b641f603df660e4f0e451c
MD5 9415c8ebfdd2e6ddd281918ffc03864c
BLAKE2b-256 3dfa578931f0ee5f073c1e8d47ab6cbd8cf0ed64e5e813de04fc2832bd5ad407

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5322975fc1ed68d05286cc18fd67dd54ef1ede6de2ad10cac33bbfce71c31470
MD5 78adfe2c970417eea3cf31e3009e62bf
BLAKE2b-256 7e4773d1592780529c3bd4ba435bd0666f827a005aa6fd1d47c5fc3445fe551a

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 8d69d6e4e262427f97c42366b222735cdc9c1f7d073fde38536c69af85643fd6
MD5 87bbc03f872e8e173bcd8925f88f58f7
BLAKE2b-256 14bc1ac561f75d21f2bc44dde6f82a57563539bf9827d4befba198d90c4c60b7

See more details on using hashes here.

File details

Details for the file blurhash_pyside-0.2.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for blurhash_pyside-0.2.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e40d584924a4c4aea21d8ed11faeb76b87eb68d6624efaf6f7f4ffcd24d06e76
MD5 975c49aa773b4278f995a61d892b52f4
BLAKE2b-256 335d6bfcee832dc3802686f44f8e11af95d6d5a14a56f80064efafa7c70c466e

See more details on using hashes here.

Supported by

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