secrets-plus 0.2.0__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: secrets-plus
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Windows BCrypt 加密安全随机数C扩展,与secrets接口完全一致
5
5
  Author: Tevend_geven
6
6
  Author-email: yanxiao_feng2013@163.com
@@ -28,7 +28,7 @@ Dynamic: platform
28
28
  Dynamic: requires-python
29
29
  Dynamic: summary
30
30
 
31
- # token-gen-win
31
+ # secrets-plus
32
32
  Windows平台专用高性能C扩展,基于系统原生 **BCrypt API** 实现加密安全随机数,完整复刻Python标准库 `secrets` 常用接口,性能优于原生Python实现。
33
33
 
34
34
  ## 平台限制
@@ -47,26 +47,26 @@ Linux / macOS 无系统BCrypt依赖库,无法编译、安装。
47
47
 
48
48
  ## 安装方式
49
49
  ```bash
50
- pip install token-gen
50
+ pip install secrets-plus
51
51
  ```
52
52
 
53
53
  ## 快速使用
54
54
  ```python
55
- import token_gen
55
+ import secplus
56
56
 
57
57
  # 生成各类安全令牌
58
- print(token_gen.token_urlsafe())
59
- print(token_gen.token_hex(16))
60
- print(token_gen.token_bytes(32))
58
+ print(secplus.token_urlsafe())
59
+ print(secplus.token_hex(16))
60
+ print(secplus.token_bytes(32))
61
61
 
62
62
  # 随机数工具
63
- print(token_gen.randbelow(1000))
64
- print(token_gen.randbits(12))
63
+ print(secplus.randbelow(1000))
64
+ print(secplus.randbits(12))
65
65
 
66
66
  # 序列操作
67
67
  lst = [1,2,3,4,5]
68
- print(token_gen.choice(lst))
69
- token_gen.shuffle(lst)
68
+ print(secplus.choice(lst))
69
+ secplus.shuffle(lst)
70
70
  print(lst)
71
71
  ```
72
72
 
@@ -1,4 +1,4 @@
1
- # token-gen-win
1
+ # secrets-plus
2
2
  Windows平台专用高性能C扩展,基于系统原生 **BCrypt API** 实现加密安全随机数,完整复刻Python标准库 `secrets` 常用接口,性能优于原生Python实现。
3
3
 
4
4
  ## 平台限制
@@ -17,26 +17,26 @@ Linux / macOS 无系统BCrypt依赖库,无法编译、安装。
17
17
 
18
18
  ## 安装方式
19
19
  ```bash
20
- pip install token-gen
20
+ pip install secrets-plus
21
21
  ```
22
22
 
23
23
  ## 快速使用
24
24
  ```python
25
- import token_gen
25
+ import secplus
26
26
 
27
27
  # 生成各类安全令牌
28
- print(token_gen.token_urlsafe())
29
- print(token_gen.token_hex(16))
30
- print(token_gen.token_bytes(32))
28
+ print(secplus.token_urlsafe())
29
+ print(secplus.token_hex(16))
30
+ print(secplus.token_bytes(32))
31
31
 
32
32
  # 随机数工具
33
- print(token_gen.randbelow(1000))
34
- print(token_gen.randbits(12))
33
+ print(secplus.randbelow(1000))
34
+ print(secplus.randbits(12))
35
35
 
36
36
  # 序列操作
37
37
  lst = [1,2,3,4,5]
38
- print(token_gen.choice(lst))
39
- token_gen.shuffle(lst)
38
+ print(secplus.choice(lst))
39
+ secplus.shuffle(lst)
40
40
  print(lst)
41
41
  ```
42
42
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: secrets-plus
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Windows BCrypt 加密安全随机数C扩展,与secrets接口完全一致
5
5
  Author: Tevend_geven
6
6
  Author-email: yanxiao_feng2013@163.com
@@ -28,7 +28,7 @@ Dynamic: platform
28
28
  Dynamic: requires-python
29
29
  Dynamic: summary
30
30
 
31
- # token-gen-win
31
+ # secrets-plus
32
32
  Windows平台专用高性能C扩展,基于系统原生 **BCrypt API** 实现加密安全随机数,完整复刻Python标准库 `secrets` 常用接口,性能优于原生Python实现。
33
33
 
34
34
  ## 平台限制
@@ -47,26 +47,26 @@ Linux / macOS 无系统BCrypt依赖库,无法编译、安装。
47
47
 
48
48
  ## 安装方式
49
49
  ```bash
50
- pip install token-gen
50
+ pip install secrets-plus
51
51
  ```
52
52
 
53
53
  ## 快速使用
54
54
  ```python
55
- import token_gen
55
+ import secplus
56
56
 
57
57
  # 生成各类安全令牌
58
- print(token_gen.token_urlsafe())
59
- print(token_gen.token_hex(16))
60
- print(token_gen.token_bytes(32))
58
+ print(secplus.token_urlsafe())
59
+ print(secplus.token_hex(16))
60
+ print(secplus.token_bytes(32))
61
61
 
62
62
  # 随机数工具
63
- print(token_gen.randbelow(1000))
64
- print(token_gen.randbits(12))
63
+ print(secplus.randbelow(1000))
64
+ print(secplus.randbits(12))
65
65
 
66
66
  # 序列操作
67
67
  lst = [1,2,3,4,5]
68
- print(token_gen.choice(lst))
69
- token_gen.shuffle(lst)
68
+ print(secplus.choice(lst))
69
+ secplus.shuffle(lst)
70
70
  print(lst)
71
71
  ```
72
72
 
@@ -1,5 +1,4 @@
1
1
  README.md
2
- pyproject.toml
3
2
  secplus.c
4
3
  setup.py
5
4
  secrets_plus.egg-info/PKG-INFO
@@ -14,7 +14,7 @@ ext_module = Extension(
14
14
 
15
15
  setup(
16
16
  name="secrets-plus", # PyPI包名
17
- version="0.2.0",
17
+ version="0.3.0",
18
18
  description="Windows BCrypt 加密安全随机数C扩展,与secrets接口完全一致",
19
19
  long_description=README,
20
20
  long_description_content_type="text/markdown",
@@ -1,3 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=68.0", "wheel"]
3
- build-backend = "setuptools.build_meta"
File without changes
File without changes