hikepy 1.0.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.
@@ -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.
hikepy-1.0.0/PKG-INFO ADDED
@@ -0,0 +1,95 @@
1
+ Metadata-Version: 2.1
2
+ Name: hikepy
3
+ Version: 1.0.0
4
+ Summary: hikesoft python framework power by wantao
5
+ Author-email: wantao <hnck2000@126.com>
6
+ Maintainer-email: wantao <hnck2000@126.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: hikepy,framework,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.8
39
+ Classifier: Programming Language :: Python :: 3.9
40
+ Classifier: Programming Language :: Python :: 3.10
41
+ Classifier: Programming Language :: Python :: 3.11
42
+ Classifier: Programming Language :: Python :: 3.12
43
+ Classifier: Programming Language :: Python :: 3 :: Only
44
+ Requires-Python: >=3.8
45
+ Description-Content-Type: text/markdown
46
+ License-File: LICENSE.txt
47
+ Requires-Dist: fastapi[all]
48
+ Requires-Dist: uvicorn[standard]
49
+ Requires-Dist: redis
50
+ Requires-Dist: pyjwt
51
+ Requires-Dist: passlib[bcrypt]
52
+ Requires-Dist: pyyaml
53
+ Requires-Dist: sqlalchemy
54
+ Requires-Dist: aiomysql
55
+ Requires-Dist: motor
56
+
57
+ # A sample Python project
58
+
59
+ ![Python Logo](https://www.python.org/static/community_logos/python-logo.png "Sample inline image")
60
+
61
+ A sample project that exists as an aid to the [Python Packaging User
62
+ Guide][packaging guide]'s [Tutorial on Packaging and Distributing
63
+ Projects][distribution tutorial].
64
+
65
+ This project does not aim to cover best practices for Python project
66
+ development as a whole. For example, it does not provide guidance or tool
67
+ recommendations for version control, documentation, or testing.
68
+
69
+ [The source for this project is available here][src].
70
+
71
+ The metadata for a Python project is defined in the `pyproject.toml` file,
72
+ an example of which is included in this project. You should edit this file
73
+ accordingly to adapt this sample project to your needs.
74
+
75
+ ----
76
+
77
+ This is the README file for the project.
78
+
79
+ The file should use UTF-8 encoding and can be written using
80
+ [reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
81
+ use]. It will be used to generate the project webpage on PyPI and will be
82
+ displayed as the project homepage on common code-hosting services, and should be
83
+ written for that purpose.
84
+
85
+ Typical contents for this file would include an overview of the project, basic
86
+ usage examples, etc. Generally, including the project changelog in here is not a
87
+ good idea, although a simple “What's New” section for the most recent version
88
+ may be appropriate.
89
+
90
+ [packaging guide]: https://packaging.python.org
91
+ [distribution tutorial]: https://packaging.python.org/tutorials/packaging-projects/
92
+ [src]: https://github.com/pypa/sampleproject
93
+ [rst]: http://docutils.sourceforge.net/rst.html
94
+ [md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
95
+ [md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
hikepy-1.0.0/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # A sample Python project
2
+
3
+ ![Python Logo](https://www.python.org/static/community_logos/python-logo.png "Sample inline image")
4
+
5
+ A sample project that exists as an aid to the [Python Packaging User
6
+ Guide][packaging guide]'s [Tutorial on Packaging and Distributing
7
+ Projects][distribution tutorial].
8
+
9
+ This project does not aim to cover best practices for Python project
10
+ development as a whole. For example, it does not provide guidance or tool
11
+ recommendations for version control, documentation, or testing.
12
+
13
+ [The source for this project is available here][src].
14
+
15
+ The metadata for a Python project is defined in the `pyproject.toml` file,
16
+ an example of which is included in this project. You should edit this file
17
+ accordingly to adapt this sample project to your needs.
18
+
19
+ ----
20
+
21
+ This is the README file for the project.
22
+
23
+ The file should use UTF-8 encoding and can be written using
24
+ [reStructuredText][rst] or [markdown][md use] with the appropriate [key set][md
25
+ use]. It will be used to generate the project webpage on PyPI and will be
26
+ displayed as the project homepage on common code-hosting services, and should be
27
+ written for that purpose.
28
+
29
+ Typical contents for this file would include an overview of the project, basic
30
+ usage examples, etc. Generally, including the project changelog in here is not a
31
+ good idea, although a simple “What's New” section for the most recent version
32
+ may be appropriate.
33
+
34
+ [packaging guide]: https://packaging.python.org
35
+ [distribution tutorial]: https://packaging.python.org/tutorials/packaging-projects/
36
+ [src]: https://github.com/pypa/sampleproject
37
+ [rst]: http://docutils.sourceforge.net/rst.html
38
+ [md]: https://tools.ietf.org/html/rfc7764#section-3.5 "CommonMark variant"
39
+ [md use]: https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
@@ -0,0 +1,174 @@
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 = "hikepy" # 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 = "1.0.0" # 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 = "hikesoft python framework power by wantao"
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.8"
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 = ["hikepy","framework", "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 = [
76
+ {name = "wantao", email = "hnck2000@126.com" }
77
+ ]
78
+
79
+ # This should be your name or the names of the organization who currently
80
+ # maintains the project, and a valid email address corresponding to the name
81
+ # listed.
82
+ maintainers = [
83
+ {name = "wantao", email = "hnck2000@126.com" }
84
+ ]
85
+
86
+ # Classifiers help users find your project by categorizing it.
87
+ #
88
+ # For a list of valid classifiers, see https://pypi.org/classifiers/
89
+ classifiers = [
90
+ # How mature is this project? Common values are
91
+ # 3 - Alpha
92
+ # 4 - Beta
93
+ # 5 - Production/Stable
94
+ "Development Status :: 3 - Alpha",
95
+
96
+ # Indicate who your project is intended for
97
+ "Intended Audience :: Developers",
98
+ "Topic :: Software Development :: Build Tools",
99
+
100
+ # Pick your license as you wish
101
+ "License :: OSI Approved :: MIT License",
102
+
103
+ # Specify the Python versions you support here. In particular, ensure
104
+ # that you indicate you support Python 3. These classifiers are *not*
105
+ # checked by "pip install". See instead "requires-python" key in this file.
106
+ "Programming Language :: Python :: 3",
107
+ "Programming Language :: Python :: 3.8",
108
+ "Programming Language :: Python :: 3.9",
109
+ "Programming Language :: Python :: 3.10",
110
+ "Programming Language :: Python :: 3.11",
111
+ "Programming Language :: Python :: 3.12",
112
+ "Programming Language :: Python :: 3 :: Only",
113
+ ]
114
+
115
+ # This field lists other packages that your project depends on to run.
116
+ # Any package you put here will be installed by pip when your project is
117
+ # installed, so they must be valid existing projects.
118
+ #
119
+ # For an analysis of this field vs pip's requirements files see:
120
+ # https://packaging.python.org/discussions/install-requires-vs-requirements/
121
+ dependencies = [
122
+ "fastapi[all]",
123
+ "uvicorn[standard]",
124
+ "redis",
125
+ "pyjwt",
126
+ "passlib[bcrypt]",
127
+ "pyyaml",
128
+ "sqlalchemy",
129
+ "aiomysql",
130
+ "motor"
131
+ ]
132
+
133
+ # List additional groups of dependencies here (e.g. development
134
+ # dependencies). Users will be able to install these using the "extras"
135
+ # syntax, for example:
136
+ #
137
+ # $ pip install sampleproject[dev]
138
+ #
139
+ # Optional dependencies the project provides. These are commonly
140
+ # referred to as "extras". For a more extensive definition see:
141
+ # https://packaging.python.org/en/latest/specifications/dependency-specifiers/#extras
142
+ [project.optional-dependencies]
143
+ #dev = ["check-manifest"]
144
+ #test = ["coverage"]
145
+
146
+ # List URLs that are relevant to your project
147
+ #
148
+ # This field corresponds to the "Project-URL" and "Home-Page" metadata fields:
149
+ # https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
150
+ # https://packaging.python.org/specifications/core-metadata/#home-page-optional
151
+ #
152
+ # Examples listed include a pattern for specifying where the package tracks
153
+ # issues, where the source is hosted, where to say thanks to the package
154
+ # maintainers, and where to support the project financially. The key is
155
+ # what's used to render the link text on PyPI.
156
+ [project.urls]
157
+ "Homepage" = "https://github.com/pypa/sampleproject"
158
+ "Bug Reports" = "https://github.com/pypa/sampleproject/issues"
159
+ "Funding" = "https://donate.pypi.org"
160
+ "Say Thanks!" = "http://saythanks.io/to/example"
161
+ "Source" = "https://github.com/pypa/sampleproject/"
162
+
163
+ # The following would provide a command line executable called `sample`
164
+ # which executes the function `main` from this package when invoked.
165
+ [project.scripts]
166
+ #hikepy = "command:main"
167
+
168
+
169
+ # This is configuration specific to the `setuptools` build backend.
170
+ # If you are using a different build backend, you will need to change this.
171
+ [tool.setuptools]
172
+ # If there are data files included in your packages that need to be
173
+ # installed, specify them here.
174
+ #package-data = {"sample" = ["*.dat"]}
hikepy-1.0.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,36 @@
1
+ """
2
+ hikepy framework
3
+ """
4
+
5
+ from .app import hkapp,HkAuth
6
+ from .hklogger import hklog
7
+ from .tools import hkcache
8
+ from .tools import hk_db_manager,hk_mogo_manager,create_token
9
+ from .config import config
10
+ from .model import HkBaseData as baseData,HkBaseModel as baseModel,SqlModel,PageList,AuthInfo,CommonModel
11
+ from .business import HkBusinessException,service
12
+
13
+ __version__ = '1.0.0'
14
+
15
+ __all__ = [
16
+ '__version__',
17
+ 'hkapp',
18
+ 'hklog',
19
+ 'config',
20
+ 'baseData',
21
+ 'baseModel',
22
+ 'HkBusinessException',
23
+ 'service',
24
+ 'hkcache',
25
+ 'hk_db_manager',
26
+ 'SqlModel',
27
+ 'PageList',
28
+ 'hk_mogo_manager',
29
+ 'AuthInfo',
30
+ 'HkAuth',
31
+ 'create_token',
32
+ 'CommonModel'
33
+ ]
34
+
35
+ def __dir__() -> list[str]:
36
+ return __all__