Skip to main content

A useful tool Python module implement in rust-lang.

Project description

rustpy-tools

AppVeyor

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.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

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rustpy-tools, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size rustpy_tools-0.2.1.tar.gz (7.2 kB) File type Source Python version None Upload date Hashes View
Filename, size rustpy_tools-0.2.1-cp36-cp36m-macosx_10_7_x86_64.whl (457.9 kB) File type Wheel Python version cp36 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page