Rust Imaging Library's Python binding: A performant and high-level image processing library for Python written in Rust
Project description
ril
Rust Imaging Library: A performant and high-level image processing library for Python written in Rust.
What's this?
This is a python binding around ril designed to provide an easy-to-use, high-level interface around image processing in Rust. Image and animation processing has never been this easy and fast before.
Support
⚠ This package is a work in progress and it heavily depends on the progress of ril
By the first stable release, we plan to support the following image encodings:
Encoding Format | Current Status |
---|---|
PNG / APNG | Supported |
JPEG | Supported |
GIF | Supported |
WebP | Not yet supported |
BMP | Not yet supported |
TIFF | Not yet supported |
Installation
**This package is published to pypi under the name pyril
due to a pypi limitation.
It will be published under ril
in the future, if possible.
Prebuilt wheels
There will be prebuilt wheels for those platforms:
- Linux x86-64: Cpython 3.7, 3.8, 3.9, 3.10, PyPy 3.7, 3.8, 3.9
- MacOS x86-64: Cpython 3.7, 3.8, 3.9, 3.10, PyPy 3.7, 3.8, 3.9
- Windows x86-64: Cpython 3.7, 3.8, 3.9, 3.10, PyPy 3.7, 3.8, 3.9
- Linux i686: Cpython 3.7, 3.8, 3.9, 3.10, PyPy 3.7, 3.8, 3.9
- MacOS aarch64: Cpython 3.8, 3.9, 3.10
If you want another platform to have prebuilt wheels, please open an issue.
CPython 3.11 support will be available once its ABI has been stablized.
If your platform have prebuilt wheels, installing is as simple as
pip install pyril
Building from Source
In order to build from source, you will need to have the Rust compiler available in your PATH. See documentation on https://rust-lang.org to learn how to install Rust on your platform.
Then building is as simple as
pip install pyril
or from Github
pip install git+https://github.com/Cryptex-github/ril-py
Pip will handle the building process.
Examples
Open an image, invert it, and then save it:
from ril import Image
image = Image.open("example.png")
image.invert()
image.save("example.png")
Create a new black image, open the sample image, and paste it on top of the black image:
from ril import Image, Pixel
image = Image.new(600, 600, Pixel.from_rgb(0, 0, 0))
image.paste(100, 100, Image.open("sample.png"))
image.save("sample_on_black.png", "PNG") # You can also specify format if you like
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for pyril-0.2.1.post5-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42d345c93d25bdad3a4ba1592fefa85dc5839c5a752c7146af29b2a30b0a457e |
|
MD5 | 097b99d49589ae3a1aa7108a2fccc8d0 |
|
BLAKE2b-256 | f4198189f0f9c53a7cf1d20d9dc91028fde86f6ee3e6674aef0ce50a78611bc2 |
Hashes for pyril-0.2.1.post5-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71a3dbf64b86c6867fa5d63a21b04cd2198319a12161df31d23fe56111ea2cd1 |
|
MD5 | 5617fe847b629a25e81cb4bb195e2173 |
|
BLAKE2b-256 | 722ee59cfb831ce07ecaa7f889ca38dc078bb74a8b084eeca958ee6c01f2cd8b |
Hashes for pyril-0.2.1.post5-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc7fb4a4588bb73977c7181f6b84a48143c879c288f9d87185f4dc2484179fd0 |
|
MD5 | b29cfa10a392638b6443930118b44f08 |
|
BLAKE2b-256 | daee92e22db2542659f3f823fab8ee5fcd0a04e84be929a6bc1c0ca9c5d0507d |
Hashes for pyril-0.2.1.post5-pp39-pypy39_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe3d9ff0265df2eb4535fb6d5f76772fc2be30b886def5e96630f989a6ee75b |
|
MD5 | bdb11e7aa6f2d14894d60488ad090126 |
|
BLAKE2b-256 | e5867901e67f36c314b6f570ad913b15fe4c9c6e5f7c22a6a6f13e3dd18f4833 |
Hashes for pyril-0.2.1.post5-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdf6a9bbf0f546b8cb9dac0c380a53384c0539d91e7a59270ba3a5b260abb498 |
|
MD5 | 3ee5c862c42270a48df9c36b4279b236 |
|
BLAKE2b-256 | c1b901d5a382a0008e539329d9c9ca5620280a03bcb1b99e34a1b3d2901a22fc |
Hashes for pyril-0.2.1.post5-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faa2fce78fa21feeae13944d1f9927e53abbcf4ad764838cd3ecc9d1110aca32 |
|
MD5 | 92332b8ed07bda364a5f6695094eeff3 |
|
BLAKE2b-256 | 137b82ccdafbddb0809ab07fec23ff9c7755184420a753f6dd0a344cd2b0fdf0 |
Hashes for pyril-0.2.1.post5-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 260809b5d14471fe4d8aafdfd22bb2c6f26345dece6d01a2dce7b34673b9706f |
|
MD5 | aa3fca1d28fb11bb1859ea8937f0327e |
|
BLAKE2b-256 | ad7f12488508ad6c5a6324fc65024676f9065895e4c38b2a2e5cf3050a002eef |
Hashes for pyril-0.2.1.post5-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 684e073611021cde9ca92bc40c2b8ce8911a7cf68c73d1c60322b89937657b06 |
|
MD5 | 238cbd534207d4e9440184f23a0779ab |
|
BLAKE2b-256 | 78c22244d63931eb14ead9c459c437d00096c72a47ec5a8d1f4f752deef3fda3 |
Hashes for pyril-0.2.1.post5-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d59c37f9aa22bfde7d94cf9595dcd4c0ed321353285cc75e889410c103025a5 |
|
MD5 | 122dec453bd12489812d51809b4c19aa |
|
BLAKE2b-256 | d4cdc2e0072bb1d0a8b0df49a8e7457c644a77de35821613d6b00d0d33de91e4 |
Hashes for pyril-0.2.1.post5-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6104ddf78b3b68bd6cbf3f13a7978a0bde3616d7cd1e0ae77fc911d711479f8d |
|
MD5 | bfe3e74d5b68ac5154494a0278f8090e |
|
BLAKE2b-256 | 2c50c6bd0db3054069d25176589c5518b2f63688b68ea81de160c01f3a5da51c |
Hashes for pyril-0.2.1.post5-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44724dbb534c6be6a1e7a9984e606929d1fddd49929415159d65e6c16c94f810 |
|
MD5 | 5f4064e03c2442ab12cdf0f69b78249a |
|
BLAKE2b-256 | 084f4334498a502882f92f544f761c88276854be4b58b3b90a7b833a81e07791 |
Hashes for pyril-0.2.1.post5-pp37-pypy37_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac75cbaa78c25eb940edc696f61a5b1e399667edb02cb6c09dc4dcf0d8779c1a |
|
MD5 | 8cee227275eae42323bde19bbde7b9ea |
|
BLAKE2b-256 | 106f282ace11a724e71a75d7db96b99ccc710a28679a638323cec45cd671ee7d |
Hashes for pyril-0.2.1.post5-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed982cd8c17c8e6b0a875462a50861f8173368c32a17d3e376ece4a2a39faaad |
|
MD5 | 3bd9c66c2a5bfaa7546d2c20cdf5cc6c |
|
BLAKE2b-256 | 27d94da7fda16b971fa31c692af8cbec52cb2d39122091d4acaa02f8fbef57ee |
Hashes for pyril-0.2.1.post5-cp310-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f301e0a55a18a148c8ee6ab47826688effb5ccba670deea36207c1447104335 |
|
MD5 | f29b5cacda3800019042c0ed234d2f53 |
|
BLAKE2b-256 | 68e0112cda9f712b84286508b27a3b9ab614d861c3c28463ab34fe16f5598564 |
Hashes for pyril-0.2.1.post5-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fe3bac7e62c4248e911bd8a21e3569dc0137cdc72556c2621188f9e74942ffc |
|
MD5 | ffcfaa45957b8a22cfabc9794b25dff1 |
|
BLAKE2b-256 | 595c7c78ea7c82d16b87614d20cb5000fb81b2c4303f9a6e0591d5c328bff3d7 |
Hashes for pyril-0.2.1.post5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 095d471d78c10bf70117a51ce13bb2cc3cf5678c3fef1c0cc7793e85b1ada40e |
|
MD5 | ac5a1db881f8c0172435f750243af0a3 |
|
BLAKE2b-256 | 4bf4039f3e9b18496f050c4a3033d666d090d4b7d20082767fa1202b208763f7 |
Hashes for pyril-0.2.1.post5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c72a7715ae6de9e671abfdc1abe8acaa394740d1b25488b714049fea2767491 |
|
MD5 | ba8cd63d9917fa51dbf6fa56ea425807 |
|
BLAKE2b-256 | 6439f1ca8b579e93e0c8e1dfe72f81f15ead037482449ae5ca2179320161d813 |
Hashes for pyril-0.2.1.post5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2dd5ed1651327bb2b801b3c19aa30effb82c866d9ce233ff18312f4f060488 |
|
MD5 | 27ec89a96fd7408fc44fd27092744fc7 |
|
BLAKE2b-256 | 729100ef236bc023f501f2cb7f866cfe6d825abb443b11b127ecf992cf796d41 |
Hashes for pyril-0.2.1.post5-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ab15a871ae2c7b8b25161b90809d69a1aae3f5c3e3502798afb99eaafe9a19 |
|
MD5 | 184a7c23ebcdd4c1f1078a8c2eb04cab |
|
BLAKE2b-256 | 7994a02c55fc8b3337dbb238206ddc637e49f391525e538379a1c045e96e3030 |
Hashes for pyril-0.2.1.post5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31ac2e4173e0ba3e0f8fe00df8e9870070c6e7514ec3dc1a4c3a522e54410a58 |
|
MD5 | 3d915a03177105836e042b0abdd5a86d |
|
BLAKE2b-256 | bc51fbac0b4a5267621cd6fe99f269cb96fd96d3c49e9863ce245f780805ea4f |
Hashes for pyril-0.2.1.post5-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5619503339c156831c09c143b9b3f5215ab30b1f4efd366f85cade97a1e7c41a |
|
MD5 | 9595adff6435cb363911ec14825d0d4c |
|
BLAKE2b-256 | 01d2c9528f6e4dbdb001ac2f9832079284652a8b40c9ee6862dbd22b01786360 |
Hashes for pyril-0.2.1.post5-cp39-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c354537817721e8425bc36de88b1449cb5cba301b3120f14285687e10bdcc619 |
|
MD5 | d8defe30286bd58d367c0b382c18b9d6 |
|
BLAKE2b-256 | 56bb9e1f6109902964cc395e133463362619df676a141b14e44dfb12e0a577ed |
Hashes for pyril-0.2.1.post5-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfe396979480f110e622f3235b7a6f36b9d1daa124ea3a1ff29e9b952143a112 |
|
MD5 | 69905a70fce90468e910ba163504797e |
|
BLAKE2b-256 | 06a369d31517953434c098ff50bc25cf0eb92587c9073362517b83ae7db9b325 |
Hashes for pyril-0.2.1.post5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecbda856367ce16730465e57ffd83c898c309466253e2fd740e8d3efeeb35097 |
|
MD5 | 7c5e1e4f7f67f45e56bc32cfa4386524 |
|
BLAKE2b-256 | 5de8080b339c9856d23e5539b23bdd1937b74bceb0eb15bc00ef18b9bf08a235 |
Hashes for pyril-0.2.1.post5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f94e1ee1de2de2c7ad9453d026e8a52491ef9f2d93453ec525fad103ad929cad |
|
MD5 | 3f1e1f4dd9ead46f3a76ac57ac23494d |
|
BLAKE2b-256 | babd0ab74d9bd682e11a13bd64a0295fe0cbf9f896a98287650793db18165463 |
Hashes for pyril-0.2.1.post5-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e6a0fa85f26ccdeb99784f9930f2e4cc60167241f7d90d249e955c6c8d429ef |
|
MD5 | eac692053de3da14ccbad348d615ce9b |
|
BLAKE2b-256 | 0db2da4ec25f12f2a65f09e306a5f3d0765c184d4a5f28b35b517c67286e7a6c |
Hashes for pyril-0.2.1.post5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7b7d31682bd81233113aa4e18ecce77e979b9139c8a9596052a243b3e2faff2 |
|
MD5 | c3d854ecf2280524c81ffd065a5dcd51 |
|
BLAKE2b-256 | 36c8ae83c3cb59b6391c74ccf9f4683b7efcde447875b5d1269717a997513552 |
Hashes for pyril-0.2.1.post5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 115c1bcfad15bf2c759836096838962339b8cf64d1f3666a08891e826a89657c |
|
MD5 | cd215ed05625b7bfa8ec8fe6cb3e8928 |
|
BLAKE2b-256 | 98d61fa33828ffded34add966b23a2d5ceca2a079760fc8594baffdc2e428fa3 |
Hashes for pyril-0.2.1.post5-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4db18cc3e58a8db5ea4eb09c5c1ac68e7f6ef2ae5a51e2e318a516dc74153f5 |
|
MD5 | 66113c3234f43f6dd3106e5df231f0c9 |
|
BLAKE2b-256 | ba12fc462107ad577ab1e255cf08595731f0c797fe05e5c459b76a316e9ad28f |
Hashes for pyril-0.2.1.post5-cp38-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46e27d0452208ef6ce3cfc9962290c87b94489fe83bdbc1c6659ced1356999c0 |
|
MD5 | 1b444bcc847a5781014b7d24c18edad1 |
|
BLAKE2b-256 | bc6f63c1f35de2554a17fc831b9972709ea2182d241b0813e74ddb8e6af78833 |
Hashes for pyril-0.2.1.post5-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbfce0238a0bff3b7abf04c56d19267d0c6baec8b85ac35745d2b21e26183127 |
|
MD5 | 1a7713d0db8a135423b74fab10f74f5e |
|
BLAKE2b-256 | 7cb43fe4a59bd40653df7607cdc6c19c84ec6b833ecb1f063ef87f2bce671911 |
Hashes for pyril-0.2.1.post5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f55e1d35f9bbd2db6a6ad34754a749af5e86f9061b03cdaaf03e3080fe36e5e7 |
|
MD5 | 61623504b1f5e1b667d9578b4b6e1c3e |
|
BLAKE2b-256 | a046cdd1b7f497bebf351161714b455fed6a5910dd5e57f1e3856eb035d93889 |
Hashes for pyril-0.2.1.post5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abc0b00826018502ca8509992cc414ec5ec22f261c72cb9cc63565e54181b5ec |
|
MD5 | e7f540fe80693e4c0670f235b6b6367f |
|
BLAKE2b-256 | f3f91ff8bb032cae23982ffb34d7b1749dd16caf8ccc6f8c1d9ff874a50f8d7f |
Hashes for pyril-0.2.1.post5-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc115d9ccd819d2256e59d8f198e378cba7cc3d9f17b937d9667fae93610eb0e |
|
MD5 | 716b6fe2df8aea77e1b0bfbe90826919 |
|
BLAKE2b-256 | e162ef668bf4cf289c3b79876dcd677ba1de236a1fc18d54987d7d4290a13f9f |
Hashes for pyril-0.2.1.post5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcdaef87fad57dea812001e6b26724593883a27f91175e46dbb2dde3afb39af7 |
|
MD5 | ddf0b214a957c83f17b1ae7ea76d2e15 |
|
BLAKE2b-256 | 17e6c640a3b498cc752f126b538223cd5f596e9036b7996542dadd6e1ffb6128 |
Hashes for pyril-0.2.1.post5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29e669c7356cf008fe516a15e058e70a0ecbdb43778f1e90c37efb97177d10c6 |
|
MD5 | a5a229d202dbaa597eba853ec32a1230 |
|
BLAKE2b-256 | a290bf58afe5ade8503449302bebff582692c7369226b54c0c5ed875bfbd5786 |
Hashes for pyril-0.2.1.post5-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84705972aed2007ef2509b6780b69a91882567e43db353b12f2e6e851874eab5 |
|
MD5 | 40b025f224dde89eda0d4fb0225b3486 |
|
BLAKE2b-256 | 453eecd1a7dc357d593b5871207bcdac2d2444d246f61bb1616db74ba6db3794 |
Hashes for pyril-0.2.1.post5-cp37-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2152c54bd343035796ef63d7c6575f9cedf0e7594e591c4b665fe2307589e802 |
|
MD5 | 6b3f9424e4e2c5295d70ab9b6b15c142 |
|
BLAKE2b-256 | bf7311066d4ea386eb98bdf973bed56a5b52490a38a6decad0ae37d0bfddd1a3 |
Hashes for pyril-0.2.1.post5-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a7b559f3fb01fa7cf0734c73ba198b23150a056f3bf91d1a0ef3585752b146 |
|
MD5 | 01e9a159c5b6f7df51b87ea96b40a4f7 |
|
BLAKE2b-256 | 8e488ea6ee44fc28c7d70251d7405b84f870825d58aa8db2a7e9713b11523d1b |
Hashes for pyril-0.2.1.post5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a472f8f25a71f1fb141d359c4bef40601c5cf5ea2385a1a442f634551c96c24 |
|
MD5 | 4906a4882256a6e3b0646ce5bc10d082 |
|
BLAKE2b-256 | d952369121a2575500d4a1799116b7a8b334d5da95b23789de7fdbc88bdd784c |
Hashes for pyril-0.2.1.post5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c348fcf8fe15dd228c07234da84c2c9dd79c645a7302a43beb934c24b31f9d0d |
|
MD5 | 965fd636ba5b1c4634b2eff73b1345eb |
|
BLAKE2b-256 | 573b50bf959bfa6ec91f6e83c378342b1f9359b7a3a5793c3f75783e20444edf |
Hashes for pyril-0.2.1.post5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14cdb293ad44ac20fa09ce4818ade3217b515e9f9cc6c94bb1d42d311df46146 |
|
MD5 | fad63bd301695f7a3ebb604bd113bd35 |
|
BLAKE2b-256 | 3e36d1fc600c9e59f810bc6868f9431de41df6bceaaad57baf293c733bc5b02d |