ppgen 0.1.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.
ppgen-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,101 @@
1
+ Metadata-Version: 2.2
2
+ Name: ppgen
3
+ Version: 0.1.0
4
+ Summary: A password/passphrase generator that uses Chinese pinyin
5
+ Author-email: Keli Hu <dev@keli.hu>
6
+ License: MIT
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Environment :: Console
9
+ Classifier: Intended Audience :: End Users/Desktop
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Topic :: Security
13
+ Classifier: Topic :: Utilities
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: click
16
+
17
+ # ppgen
18
+
19
+ 一个基于汉语拼音的密码/密码短语生成器。它可以生成易记的强密码,同时提供中文记忆提示。
20
+
21
+ ## 特性
22
+
23
+ - 支持两种密码生成模式:
24
+ - 复杂密码:使用拼音组合,并添加特殊字符和数字
25
+ - 密码短语:使用多个拼音词组,通过连字符连接
26
+ - 为每个生成的密码提供中文和拼音的记忆提示
27
+ - 支持密码强度评估
28
+ - 支持文本和JSON输出格式
29
+ - 可配置参数:最小长度、词数量、生成数量等
30
+
31
+ ## 安装
32
+
33
+ ```bash
34
+ pip install ppgen
35
+ ```
36
+
37
+ ## 使用方法
38
+
39
+ ### 基本用法
40
+
41
+ 生成密码短语(默认模式):
42
+ ```bash
43
+ ppgen
44
+ ```
45
+
46
+ 生成复杂密码:
47
+ ```bash
48
+ ppgen --password
49
+ ```
50
+
51
+ ### 常用选项
52
+
53
+ - `-p, --password`: 生成复杂密码而不是密码短语
54
+ - `-c, --count`: 生成密码的数量(默认:5)
55
+ - `-l, --min_length`: 密码最小长度(默认:12)
56
+ - `-w, --word_count`: 密码短语模式下使用的拼音词数量(默认:4)
57
+ - `-o, --output`: 输出格式,可选 text 或 json(默认:text)
58
+
59
+ ### 示例
60
+
61
+ 生成3个密码短语:
62
+ ```bash
63
+ ppgen -c 3
64
+ ```
65
+
66
+ 生成最小长度为15的复杂密码:
67
+ ```bash
68
+ ppgen -p -l 15
69
+ ```
70
+
71
+ 使用5个词生成密码短语:
72
+ ```bash
73
+ ppgen -w 5
74
+ ```
75
+
76
+ JSON格式输出:
77
+ ```bash
78
+ ppgen -o json
79
+ ```
80
+
81
+ ## 输出示例
82
+
83
+ 文本格式输出:
84
+ ```
85
+ 密码: zhongwen-yuyan-jisuanji-ruanjian
86
+ 强度: 4
87
+ 记忆提示: 中文(zhongwen)-语言(yuyan)-计算机(jisuanji)-软件(ruanjian)
88
+ ---
89
+ ```
90
+
91
+ JSON格式输出:
92
+ ```json
93
+ [
94
+ {
95
+ "password": "zhongwen-yuyan-jisuanji-ruanjian",
96
+ "strength": 4,
97
+ "hints": "中文(zhongwen)-语言(yuyan)-计算机(jisuanji)-软件(ruanjian)"
98
+ }
99
+ ]
100
+ ```
101
+
ppgen-0.1.0/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # ppgen
2
+
3
+ 一个基于汉语拼音的密码/密码短语生成器。它可以生成易记的强密码,同时提供中文记忆提示。
4
+
5
+ ## 特性
6
+
7
+ - 支持两种密码生成模式:
8
+ - 复杂密码:使用拼音组合,并添加特殊字符和数字
9
+ - 密码短语:使用多个拼音词组,通过连字符连接
10
+ - 为每个生成的密码提供中文和拼音的记忆提示
11
+ - 支持密码强度评估
12
+ - 支持文本和JSON输出格式
13
+ - 可配置参数:最小长度、词数量、生成数量等
14
+
15
+ ## 安装
16
+
17
+ ```bash
18
+ pip install ppgen
19
+ ```
20
+
21
+ ## 使用方法
22
+
23
+ ### 基本用法
24
+
25
+ 生成密码短语(默认模式):
26
+ ```bash
27
+ ppgen
28
+ ```
29
+
30
+ 生成复杂密码:
31
+ ```bash
32
+ ppgen --password
33
+ ```
34
+
35
+ ### 常用选项
36
+
37
+ - `-p, --password`: 生成复杂密码而不是密码短语
38
+ - `-c, --count`: 生成密码的数量(默认:5)
39
+ - `-l, --min_length`: 密码最小长度(默认:12)
40
+ - `-w, --word_count`: 密码短语模式下使用的拼音词数量(默认:4)
41
+ - `-o, --output`: 输出格式,可选 text 或 json(默认:text)
42
+
43
+ ### 示例
44
+
45
+ 生成3个密码短语:
46
+ ```bash
47
+ ppgen -c 3
48
+ ```
49
+
50
+ 生成最小长度为15的复杂密码:
51
+ ```bash
52
+ ppgen -p -l 15
53
+ ```
54
+
55
+ 使用5个词生成密码短语:
56
+ ```bash
57
+ ppgen -w 5
58
+ ```
59
+
60
+ JSON格式输出:
61
+ ```bash
62
+ ppgen -o json
63
+ ```
64
+
65
+ ## 输出示例
66
+
67
+ 文本格式输出:
68
+ ```
69
+ 密码: zhongwen-yuyan-jisuanji-ruanjian
70
+ 强度: 4
71
+ 记忆提示: 中文(zhongwen)-语言(yuyan)-计算机(jisuanji)-软件(ruanjian)
72
+ ---
73
+ ```
74
+
75
+ JSON格式输出:
76
+ ```json
77
+ [
78
+ {
79
+ "password": "zhongwen-yuyan-jisuanji-ruanjian",
80
+ "strength": 4,
81
+ "hints": "中文(zhongwen)-语言(yuyan)-计算机(jisuanji)-软件(ruanjian)"
82
+ }
83
+ ]
84
+ ```
85
+
@@ -0,0 +1,35 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "ppgen"
7
+ version = "0.1.0"
8
+ description = "A password/passphrase generator that uses Chinese pinyin"
9
+ authors = [
10
+ {name = "Keli Hu", email = "dev@keli.hu"}
11
+ ]
12
+ readme = "README.md"
13
+ license = {text = "MIT"}
14
+ classifiers = [
15
+ "Development Status :: 3 - Alpha",
16
+ "Environment :: Console",
17
+ "Intended Audience :: End Users/Desktop",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Programming Language :: Python :: 3",
20
+ "Topic :: Security",
21
+ "Topic :: Utilities"
22
+ ]
23
+ dependencies = [
24
+ "click",
25
+ ]
26
+
27
+ [tool.setuptools]
28
+ packages = ["ppgen"]
29
+ package-dir = {"" = "src"}
30
+
31
+ [project.scripts]
32
+ ppgen = "ppgen.cli:ppgen"
33
+
34
+ [tool.setuptools.package-data]
35
+ ppgen = ["chinese_words.txt"]
ppgen-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """
2
+ ppgen - A password/passphrase generator that uses Chinese pinyin
3
+ """