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.

Source Distribution

rustpy_tools-0.2.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

rustpy_tools-0.2.1-cp36-cp36m-macosx_10_7_x86_64.whl (457.9 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

File details

Details for the file rustpy_tools-0.2.1.tar.gz.

File metadata

  • Download URL: rustpy_tools-0.2.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.7.7

File hashes

Hashes for rustpy_tools-0.2.1.tar.gz
Algorithm Hash digest
SHA256 344e9c04a864438a4fbed61b41e65a9b84c5ae5cac7501c9b044bacda8def231
MD5 19e159db8c21063964f64d8a47600cd4
BLAKE2b-256 c80b575846d6388094712161af9e47c782875ecc61132350118b67e99a5e339e

See more details on using hashes here.

File details

Details for the file rustpy_tools-0.2.1-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustpy_tools-0.2.1-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 35e8a699811ca3fe0774522cd8586caa410c2099b4c18a66f1bfc88a093ede01
MD5 9dd12d8b1db66891b4f3399a38b5bc1f
BLAKE2b-256 68fb7a4b0598e0f61984e970ae1cfd6d7118d8f019a3556c927ea52583f7a8fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page