toolkit for python
Project description
toolkit for python.
# astartool
A.Star私房工具包
唉~ 写了辣么多代码,总觉得过于臃肿。 我把简单的代码能重复利用的摘出来作为工具包,以后就引用他了
目前此代码包含一下几部分:
number
number包包含数论的一些基本代码 ishex: 判断是否是16进制字符串 gcd: 辗转相处法求最大公约 lcm: 最小公倍数
random
random包包含随机数相关的函数 random_string: 随机生成一个长度为n的字符串 random_hex_string: 随机生成n位16进制字符串 random_digit_string: 随机生成n位数字 generate_password: 随机生成密码 security_random_hex: 基于国密SM3的KDF random_ip: 随机生成一个ip地址, 目前只支持IPV4
setuptool
包含打包相关的函数
string
包含字符串处理相关函数
is_email: 判断是不是邮箱 is_mobile: 判断是否是手机号 generate_number: 生成n位带时间编号 check_number: 检验生成n位带时间编号
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
astartool-0.0.8.tar.gz
(25.3 kB
view hashes)
Built Distribution
astartool-0.0.8-py3-none-any.whl
(33.1 kB
view hashes)
Close
Hashes for astartool-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f729eea2bb9891c3e059a26546ea61dcda92b4fcfa404c17bcc93fb849339f8 |
|
MD5 | 9477b8bb7d84f23e415768cced6e4a65 |
|
BLAKE2b-256 | fe4439a0ad8bba1a76b3720b89807d88b3cb9eb9c50af45c4b73da27c8529ebf |