semvec/pypi-packages huggingface dataset:
ril 0.4.0
Rust Imaging Library's Python binding: A performant and high-level image processing library for Python written in Rust
License: MIT
Requires Python: >=3.7
Keywords: ril,imaging,image,processing,editing

# ril-py
**R**ust **I**maging **L**ibrary for Python: Python bindings for [ril](https://github.com/jay3332/ril), a performant and high-level image processing library written in Rust.

## What's this?
This is a python binding around [ril](https://github.com/jay3332/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](https://github.com/jay3332/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

### Prebuilt wheels

There will be prebuilt wheels for these 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 stabilized. 

If your platform has prebuilt wheels, installing is as simple as

```
pip install ril
```

### 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](https://rust-lang.org) to learn how to install Rust on your platform.

Then building is as simple as

```
pip install ril
```

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:
```py
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:
```py
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
```
cosmos-proto 0.0.0
The Python Protobuf implementation for Cosmos SDK chains
License: MIT
Requires Python: >=3.7,<4.0
Keywords: jigu,blockchain,cosmos,defi,crypto

# Python implementation for cosmos.proto

Currently, this repo contains generated python files for Terra 2 and Osmosis Blockchains supported Modules.

### Setup

1. Create virtual environment 

```
$ python3 -m venv env
$ source env/bin/activate
```

2. Install poetry
```
$ pip install poetry
```

3. Install packages,

```
$ pip install poetry
$ poetry install
```

If you encounter "version solving failed." error, try `poetry add <package_name>`, followed by `poetry lock` and then `poetry install`

### Generating python files for new proto files

We use `betterproto[compiler]` for generating python code from proto files, and it is party a manual process. Here are a few pointers to help you through the process - 


- `cd` into each module and make sure all *.proto files are in one place.
- For each .proto file, check the import paths and update them if needed. 
- Once the paths are corrected, use the following command to generate python files. 

```
$ protoc -I . --python_betterproto_out=<OUTPUT DIR NAME> <PROTO FILE NAMES>
```

For eq - protoc -I . --python_betterproto_out=py genesis.proto query.proto gov.proto feetoken.proto

To install `betterproto[compiler]`, use - 

```
pip install "betterproto[compiler]"
```




TO DO : Update the scripts