zytools-fs 0.0.1__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.
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2016 The Python Packaging Authority (PyPA)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: zytools-fs
3
+ Version: 0.0.1
4
+ Summary: 总结自己的代码 优化公司代码
5
+ Author-email: "A. Random Developer" <author@example.com>
6
+ Maintainer-email: "A. Great Maintainer" <maintainer@example.com>
7
+ License: Copyright (c) 2016 The Python Packaging Authority (PyPA)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
10
+ this software and associated documentation files (the "Software"), to deal in
11
+ the Software without restriction, including without limitation the rights to
12
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
13
+ of the Software, and to permit persons to whom the Software is furnished to do
14
+ so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Project-URL: Homepage, https://github.com/pypa/sampleproject
28
+ Project-URL: Bug Reports, https://github.com/pypa/sampleproject/issues
29
+ Project-URL: Funding, https://donate.pypi.org
30
+ Project-URL: Say Thanks!, http://saythanks.io/to/example
31
+ Project-URL: Source, https://github.com/pypa/sampleproject/
32
+ Keywords: sample,setuptools,development
33
+ Classifier: Development Status :: 3 - Alpha
34
+ Classifier: Intended Audience :: Developers
35
+ Classifier: Topic :: Software Development :: Build Tools
36
+ Classifier: License :: OSI Approved :: MIT License
37
+ Classifier: Programming Language :: Python :: 3
38
+ Classifier: Programming Language :: Python :: 3.9
39
+ Classifier: Programming Language :: Python :: 3.10
40
+ Classifier: Programming Language :: Python :: 3.11
41
+ Classifier: Programming Language :: Python :: 3.12
42
+ Classifier: Programming Language :: Python :: 3.13
43
+ Classifier: Programming Language :: Python :: 3 :: Only
44
+ Requires-Python: >=3.9
45
+ Description-Content-Type: text/markdown
46
+ License-File: LICENSE.txt
47
+ Requires-Dist: peppercorn
48
+ Provides-Extra: dev
49
+ Requires-Dist: check-manifest; extra == "dev"
50
+ Provides-Extra: test
51
+ Requires-Dist: coverage; extra == "test"
52
+ Dynamic: license-file
53
+
54
+ # zytools
55
+
56
+ `zytools` 是一个个人 Python 工具包,用来保存和复用平时常用的小函数。
57
+
58
+ 当前版本包含一个简单示例函数,后续可以继续加入文件处理、字符串处理、数据处理等工具方法。
59
+
60
+ ## 安装
61
+
62
+ ```bash
63
+ pip install zytools
64
+ ```
65
+
66
+ 如果是从 TestPyPI 测试安装:
67
+
68
+ ```bash
69
+ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ zytools
70
+ ```
71
+
72
+ ## 使用示例
73
+
74
+ ```python
75
+ from zytools.demo import say_hello
76
+
77
+ say_hello()
78
+ ```
79
+
80
+ 输出:
81
+
82
+ ```text
83
+ Hello World
84
+ ```
85
+
86
+ ## 命令行
87
+
88
+ 安装后可以在终端执行:
89
+
90
+ ```bash
91
+ zytools
92
+ ```
93
+
94
+ 当前命令行入口还只是示例输出,后续可以根据实际需求扩展。
95
+
96
+ ## 开发
97
+
98
+ 本地构建:
99
+
100
+ ```bash
101
+ python -m build
102
+ ```
103
+
104
+ 上传到 PyPI:
105
+
106
+ ```bash
107
+ python -m twine upload dist/*
108
+ ```
@@ -0,0 +1,55 @@
1
+ # zytools
2
+
3
+ `zytools` 是一个个人 Python 工具包,用来保存和复用平时常用的小函数。
4
+
5
+ 当前版本包含一个简单示例函数,后续可以继续加入文件处理、字符串处理、数据处理等工具方法。
6
+
7
+ ## 安装
8
+
9
+ ```bash
10
+ pip install zytools
11
+ ```
12
+
13
+ 如果是从 TestPyPI 测试安装:
14
+
15
+ ```bash
16
+ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ zytools
17
+ ```
18
+
19
+ ## 使用示例
20
+
21
+ ```python
22
+ from zytools.demo import say_hello
23
+
24
+ say_hello()
25
+ ```
26
+
27
+ 输出:
28
+
29
+ ```text
30
+ Hello World
31
+ ```
32
+
33
+ ## 命令行
34
+
35
+ 安装后可以在终端执行:
36
+
37
+ ```bash
38
+ zytools
39
+ ```
40
+
41
+ 当前命令行入口还只是示例输出,后续可以根据实际需求扩展。
42
+
43
+ ## 开发
44
+
45
+ 本地构建:
46
+
47
+ ```bash
48
+ python -m build
49
+ ```
50
+
51
+ 上传到 PyPI:
52
+
53
+ ```bash
54
+ python -m twine upload dist/*
55
+ ```
@@ -0,0 +1,162 @@
1
+ # Guide (user-friendly):
2
+ # https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
3
+
4
+ # Specification (technical, formal):
5
+ # https://packaging.python.org/en/latest/specifications/pyproject-toml/
6
+
7
+
8
+ # Choosing a build backend:
9
+ # https://packaging.python.org/en/latest/tutorials/packaging-projects/#choosing-a-build-backend
10
+ [build-system]
11
+ # A list of packages that are needed to build your package:
12
+ requires = ["setuptools"] # REQUIRED if [build-system] table is used
13
+ # The name of the Python object that frontends will use to perform the build:
14
+ build-backend = "setuptools.build_meta" # If not defined, then legacy behavior can happen.
15
+
16
+
17
+ [project]
18
+ # This is the name of your project. The first time you publish this
19
+ # package, this name will be registered for you. It will determine how
20
+ # users can install this project, e.g.:
21
+ #
22
+ # $ pip install sampleproject
23
+ #
24
+ # And where it will live on PyPI: https://pypi.org/project/sampleproject/
25
+ #
26
+ # There are some restrictions on what makes a valid project name
27
+ # specification here:
28
+ # https://packaging.python.org/specifications/core-metadata/#name
29
+ name = "zytools-fs" # REQUIRED, is the only field that cannot be marked as dynamic.
30
+
31
+ # Versions should comply with PEP 440:
32
+ # https://www.python.org/dev/peps/pep-0440/
33
+ #
34
+ # For a discussion on single-sourcing the version, see
35
+ # https://packaging.python.org/guides/single-sourcing-package-version/
36
+ version = "0.0.1" # REQUIRED, although can be dynamic
37
+
38
+ # This is a one-line description or tagline of what your project does. This
39
+ # corresponds to the "Summary" metadata field:
40
+ # https://packaging.python.org/specifications/core-metadata/#summary
41
+ description = "总结自己的代码 优化公司代码"
42
+
43
+ # This is an optional longer description of your project that represents
44
+ # the body of text which users will see when they visit PyPI.
45
+ #
46
+ # Often, this is the same as your README, so you can just read it in from
47
+ # that file directly.
48
+ #
49
+ # This field corresponds to the "Description" metadata field:
50
+ # https://packaging.python.org/specifications/core-metadata/#description-optional
51
+ readme = "README.md"
52
+
53
+ # Specify which Python versions you support. In contrast to the
54
+ # 'Programming Language' classifiers in this file, 'pip install' will check this
55
+ # and refuse to install the project if the version does not match. See
56
+ # https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
57
+ requires-python = ">=3.9"
58
+
59
+ # This is either text indicating the license for the distribution, or a file
60
+ # that contains the license.
61
+ # https://packaging.python.org/en/latest/specifications/core-metadata/#license
62
+ license = { file = "LICENSE.txt" }
63
+
64
+ # This field adds keywords for your project which will appear on the
65
+ # project page. What does your project relate to?
66
+ #
67
+ # Note that this is a list of additional keywords, separated
68
+ # by commas, to be used to assist searching for the distribution in a
69
+ # larger catalog.
70
+ keywords = ["sample", "setuptools", "development"]
71
+
72
+ # This should be your name or the name of the organization who originally
73
+ # authored the project, and a valid email address corresponding to the name
74
+ # listed.
75
+ authors = [{ name = "A. Random Developer", email = "author@example.com" }]
76
+
77
+ # This should be your name or the names of the organization who currently
78
+ # maintains the project, and a valid email address corresponding to the name
79
+ # listed.
80
+ maintainers = [
81
+ { name = "A. Great Maintainer", email = "maintainer@example.com" },
82
+ ]
83
+
84
+ # Classifiers help users find your project by categorizing it.
85
+ #
86
+ # For a list of valid classifiers, see https://pypi.org/classifiers/
87
+ classifiers = [
88
+ # How mature is this project? Common values are
89
+ # 3 - Alpha
90
+ # 4 - Beta
91
+ # 5 - Production/Stable
92
+ "Development Status :: 3 - Alpha",
93
+
94
+ # Indicate who your project is intended for
95
+ "Intended Audience :: Developers",
96
+ "Topic :: Software Development :: Build Tools",
97
+
98
+ # Pick your license as you wish
99
+ "License :: OSI Approved :: MIT License",
100
+
101
+ # Specify the Python versions you support here. In particular, ensure
102
+ # that you indicate you support Python 3. These classifiers are *not*
103
+ # checked by "pip install". See instead "requires-python" key in this file.
104
+ "Programming Language :: Python :: 3",
105
+ "Programming Language :: Python :: 3.9",
106
+ "Programming Language :: Python :: 3.10",
107
+ "Programming Language :: Python :: 3.11",
108
+ "Programming Language :: Python :: 3.12",
109
+ "Programming Language :: Python :: 3.13",
110
+ "Programming Language :: Python :: 3 :: Only",
111
+ ]
112
+
113
+ # This field lists other packages that your project depends on to run.
114
+ # Any package you put here will be installed by pip when your project is
115
+ # installed, so they must be valid existing projects.
116
+ #
117
+ # For an analysis of this field vs pip's requirements files see:
118
+ # https://packaging.python.org/discussions/install-requires-vs-requirements/
119
+ dependencies = ["peppercorn"]
120
+
121
+ # List additional groups of dependencies here (e.g. development
122
+ # dependencies). Users will be able to install these using the "extras"
123
+ # syntax, for example:
124
+ #
125
+ # $ pip install sampleproject[dev]
126
+ #
127
+ # Optional dependencies the project provides. These are commonly
128
+ # referred to as "extras". For a more extensive definition see:
129
+ # https://packaging.python.org/en/latest/specifications/dependency-specifiers/#extras
130
+ [project.optional-dependencies]
131
+ dev = ["check-manifest"]
132
+ test = ["coverage"]
133
+
134
+ # List URLs that are relevant to your project
135
+ #
136
+ # This field corresponds to the "Project-URL" and "Home-Page" metadata fields:
137
+ # https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
138
+ # https://packaging.python.org/specifications/core-metadata/#home-page-optional
139
+ #
140
+ # Examples listed include a pattern for specifying where the package tracks
141
+ # issues, where the source is hosted, where to say thanks to the package
142
+ # maintainers, and where to support the project financially. The key is
143
+ # what's used to render the link text on PyPI.
144
+ [project.urls]
145
+ "Homepage" = "https://github.com/pypa/sampleproject"
146
+ "Bug Reports" = "https://github.com/pypa/sampleproject/issues"
147
+ "Funding" = "https://donate.pypi.org"
148
+ "Say Thanks!" = "http://saythanks.io/to/example"
149
+ "Source" = "https://github.com/pypa/sampleproject/"
150
+
151
+ # The following would provide a command line executable called `zytools`
152
+ # which executes the function `main` from this package when invoked.
153
+ [project.scripts]
154
+ zytools = "zytools:main"
155
+
156
+
157
+ # This is configuration specific to the `setuptools` build backend.
158
+ # If you are using a different build backend, you will need to change this.
159
+ [tool.setuptools]
160
+ # If there are data files included in your packages that need to be
161
+ # installed, specify them here.
162
+ package-data = {}
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ def main():
2
+ """Entry point for the application script"""
3
+ print("Call your main application code here")
@@ -0,0 +1,2 @@
1
+ def say_hello():
2
+ print("Hello World")
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: zytools-fs
3
+ Version: 0.0.1
4
+ Summary: 总结自己的代码 优化公司代码
5
+ Author-email: "A. Random Developer" <author@example.com>
6
+ Maintainer-email: "A. Great Maintainer" <maintainer@example.com>
7
+ License: Copyright (c) 2016 The Python Packaging Authority (PyPA)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
10
+ this software and associated documentation files (the "Software"), to deal in
11
+ the Software without restriction, including without limitation the rights to
12
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
13
+ of the Software, and to permit persons to whom the Software is furnished to do
14
+ so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Project-URL: Homepage, https://github.com/pypa/sampleproject
28
+ Project-URL: Bug Reports, https://github.com/pypa/sampleproject/issues
29
+ Project-URL: Funding, https://donate.pypi.org
30
+ Project-URL: Say Thanks!, http://saythanks.io/to/example
31
+ Project-URL: Source, https://github.com/pypa/sampleproject/
32
+ Keywords: sample,setuptools,development
33
+ Classifier: Development Status :: 3 - Alpha
34
+ Classifier: Intended Audience :: Developers
35
+ Classifier: Topic :: Software Development :: Build Tools
36
+ Classifier: License :: OSI Approved :: MIT License
37
+ Classifier: Programming Language :: Python :: 3
38
+ Classifier: Programming Language :: Python :: 3.9
39
+ Classifier: Programming Language :: Python :: 3.10
40
+ Classifier: Programming Language :: Python :: 3.11
41
+ Classifier: Programming Language :: Python :: 3.12
42
+ Classifier: Programming Language :: Python :: 3.13
43
+ Classifier: Programming Language :: Python :: 3 :: Only
44
+ Requires-Python: >=3.9
45
+ Description-Content-Type: text/markdown
46
+ License-File: LICENSE.txt
47
+ Requires-Dist: peppercorn
48
+ Provides-Extra: dev
49
+ Requires-Dist: check-manifest; extra == "dev"
50
+ Provides-Extra: test
51
+ Requires-Dist: coverage; extra == "test"
52
+ Dynamic: license-file
53
+
54
+ # zytools
55
+
56
+ `zytools` 是一个个人 Python 工具包,用来保存和复用平时常用的小函数。
57
+
58
+ 当前版本包含一个简单示例函数,后续可以继续加入文件处理、字符串处理、数据处理等工具方法。
59
+
60
+ ## 安装
61
+
62
+ ```bash
63
+ pip install zytools
64
+ ```
65
+
66
+ 如果是从 TestPyPI 测试安装:
67
+
68
+ ```bash
69
+ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ zytools
70
+ ```
71
+
72
+ ## 使用示例
73
+
74
+ ```python
75
+ from zytools.demo import say_hello
76
+
77
+ say_hello()
78
+ ```
79
+
80
+ 输出:
81
+
82
+ ```text
83
+ Hello World
84
+ ```
85
+
86
+ ## 命令行
87
+
88
+ 安装后可以在终端执行:
89
+
90
+ ```bash
91
+ zytools
92
+ ```
93
+
94
+ 当前命令行入口还只是示例输出,后续可以根据实际需求扩展。
95
+
96
+ ## 开发
97
+
98
+ 本地构建:
99
+
100
+ ```bash
101
+ python -m build
102
+ ```
103
+
104
+ 上传到 PyPI:
105
+
106
+ ```bash
107
+ python -m twine upload dist/*
108
+ ```
@@ -0,0 +1,12 @@
1
+ LICENSE.txt
2
+ README.md
3
+ pyproject.toml
4
+ src/zytools/__init__.py
5
+ src/zytools/demo.py
6
+ src/zytools_fs.egg-info/PKG-INFO
7
+ src/zytools_fs.egg-info/SOURCES.txt
8
+ src/zytools_fs.egg-info/dependency_links.txt
9
+ src/zytools_fs.egg-info/entry_points.txt
10
+ src/zytools_fs.egg-info/requires.txt
11
+ src/zytools_fs.egg-info/top_level.txt
12
+ tests/test_simple.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ zytools = zytools:main
@@ -0,0 +1,7 @@
1
+ peppercorn
2
+
3
+ [dev]
4
+ check-manifest
5
+
6
+ [test]
7
+ coverage
@@ -0,0 +1 @@
1
+ zytools
@@ -0,0 +1,17 @@
1
+ # the inclusion of the tests module is not meant to offer best practices for
2
+ # testing in general, but rather to support the `find_packages` example in
3
+ # setup.py that excludes installing the "tests" package
4
+
5
+ import unittest
6
+
7
+ from sample.simple import add_one
8
+
9
+
10
+ class TestSimple(unittest.TestCase):
11
+
12
+ def test_add_one(self):
13
+ self.assertEqual(add_one(5), 6)
14
+
15
+
16
+ if __name__ == '__main__':
17
+ unittest.main()