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.7.tar.gz
(16.8 kB
view hashes)
Built Distribution
astartool-0.0.7-py3-none-any.whl
(27.0 kB
view hashes)
Close
Hashes for astartool-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c69d3e21fc616e81777e07aaaad7ae1888dca732a6f5f9e42ae0de8ac0332e9a |
|
MD5 | 5231c02e6d85adf2a6d7ea8fb0fcaffb |
|
BLAKE2b-256 | fb3e7d46903d16885b4184ca1119824cab9be63b7dafdd2275e30e49c438e76e |