Metadata-Version: 2.1
Name: rustpy-tools
Version: 0.2.1
Summary: A useful tool Python module implement in rust-lang.
Home-Page: https://github.com/leohowell/rustpy-tools
Author: leohowell.com@gmail.com
Author-Email: leohowell.com@gmail.com
License: BSD-2-Clause
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# rustpy-tools

![AppVeyor](https://img.shields.io/badge/build-passing-brightgreen)

A useful tool Python module implement in rust-lang.  

### Installation
```bash
pip install rustpy-tools
```

### Quick Start

```python
import rustpy_tools
from rustpy_tools import RegexUtil, AES

rustpy_tools.version
# 0.2.1

RegexUtil.is_match(r'^\w+@\w+$', 'xxx@gamil.com')
# True

message = 'hello, world'
key = 'yrbv8qlrGJsfo28C'
iv = 'TcwqrwsShZ2FfUSi'
rustpy_tools.AES.encrypt(message, key, iv)
# GSk0f16bYJm+SUbd49PBkw==

rustpy_tools.AES.decrypt('GSk0f16bYJm+SUbd49PBkw==', key, iv)
# 'hello, world'
```

### Credit
[PyO3](https://github.com/PyO3)

### License
rustpy-tools is licensed under the BSD 2-Clause license.

