Base develop tools by rust
Project description
rustpy-tools
A useful tool Python module implement in rust-lang.
Installation
pip install rustpy-tools
Quick Start
import rustpy_tools
from rustpy_tools import RegexUtil, AES
rustpy_tools.version
# 0.2.0
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
License
rustpy-tools is licensed under the MIT license.
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 Distribution
rustpy_tools-0.2.0.tar.gz
(6.3 kB
view hashes)
Built Distribution
Close
Hashes for rustpy_tools-0.2.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ce182049d9b045f7a4eff2672b5384efb6c7caf2562f4c51aa2525a897b2bf6 |
|
MD5 | 375abe4afa0e3bb91bc5be55336d95c5 |
|
BLAKE2b-256 | 4ec03c4eeb82b7e6b62c5f995efb28e83fbfc354be7ee746719dc388e9cdf6b3 |