rapidframework-lib 1.0.4__py3-none-any.whl → 1.0.6__py3-none-any.whl
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.
- rapidframework/frameworks/bottle.py +10 -0
- rapidframework/frameworks/cherryPy.py +10 -0
- rapidframework/frameworks/django.py +1 -1
- rapidframework/frameworks/examples/ turbogears2_example_1.py +14 -0
- rapidframework/frameworks/examples/bottle_example_1.py +7 -0
- rapidframework/frameworks/examples/cherrypy_example_1.py +8 -0
- rapidframework/frameworks/examples/grok_example_1.py +8 -0
- rapidframework/frameworks/examples/pyramid_example_1.py +0 -0
- rapidframework/frameworks/examples/socketify_example_1.py +10 -0
- rapidframework/frameworks/examples/web2py_example_1.py +2 -0
- rapidframework/frameworks/fastapi.py +2 -2
- rapidframework/frameworks/flask.py +1 -1
- rapidframework/frameworks/grok.py +11 -0
- rapidframework/frameworks/litestar.py +2 -2
- rapidframework/frameworks/pyramid.py +11 -0
- rapidframework/frameworks/socketify.py +11 -0
- rapidframework/frameworks/starlette.py +2 -2
- rapidframework/frameworks/template.py +6 -3
- rapidframework/frameworks/tornado.py +2 -2
- rapidframework/frameworks/turboGears2.py +10 -0
- rapidframework/frameworks/web2py.py +6 -0
- {rapidframework_lib-1.0.4.dist-info → rapidframework_lib-1.0.6.dist-info}/METADATA +2 -2
- rapidframework_lib-1.0.6.dist-info/RECORD +39 -0
- rapidframework_lib-1.0.4.dist-info/RECORD +0 -25
- {rapidframework_lib-1.0.4.dist-info → rapidframework_lib-1.0.6.dist-info}/WHEEL +0 -0
- {rapidframework_lib-1.0.4.dist-info → rapidframework_lib-1.0.6.dist-info}/entry_points.txt +0 -0
- {rapidframework_lib-1.0.4.dist-info → rapidframework_lib-1.0.6.dist-info}/licenses/LICENSE +0 -0
- {rapidframework_lib-1.0.4.dist-info → rapidframework_lib-1.0.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
from .template import Template
|
2
|
+
|
3
|
+
|
4
|
+
class BottleManager(Template):
|
5
|
+
def __init__(self, **kwargs):
|
6
|
+
super().__init__(**kwargs)
|
7
|
+
|
8
|
+
def install_framework(self, **kwargs):
|
9
|
+
return super().install_framework(libs=\
|
10
|
+
["sqlalchemy", "bottle-sqlalchemy", "alembic", "bottle-login", "wtforms"], **kwargs)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
from .template import Template
|
2
|
+
|
3
|
+
|
4
|
+
class CherryPyManager(Template):
|
5
|
+
def __init__(self, **kwargs):
|
6
|
+
super().__init__(**kwargs)
|
7
|
+
|
8
|
+
def install_framework(self, **kwargs):
|
9
|
+
return super().install_framework(libs=\
|
10
|
+
["sqlalchemy", "alembic", "Jinja2", "authlib"], **kwargs)
|
@@ -0,0 +1,14 @@
|
|
1
|
+
from tg import expose, TGController, AppConfig
|
2
|
+
from wsgiref.simple_server import make_server
|
3
|
+
|
4
|
+
class RootController(TGController):
|
5
|
+
@expose()
|
6
|
+
def index(self):
|
7
|
+
return "Hello, TurboGears!"
|
8
|
+
|
9
|
+
config = AppConfig(minimal=True, root_controller=RootController())
|
10
|
+
application = config.make_wsgi_app()
|
11
|
+
|
12
|
+
if __name__ == "__main__":
|
13
|
+
print("Serving on http://localhost:8080")
|
14
|
+
make_server('', 8080, application).serve_forever()
|
File without changes
|
@@ -2,11 +2,11 @@ from .template import Template
|
|
2
2
|
|
3
3
|
|
4
4
|
class FastapiManager(Template):
|
5
|
-
def __init__(self,
|
5
|
+
def __init__(self, extra_libs: list = \
|
6
6
|
["sqlalchemy", "databases", "python-multipart", "aiofiles"], **kwargs):
|
7
7
|
|
8
8
|
self.extra_libs = extra_libs
|
9
|
-
super().__init__(
|
9
|
+
super().__init__(**kwargs)
|
10
10
|
|
11
11
|
def setup_framework(self, extra_dirs=["db"]):
|
12
12
|
return super().setup_framework(extra_dirs=extra_dirs)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
from .template import Template
|
2
|
+
|
3
|
+
|
4
|
+
class GrokManager(Template):
|
5
|
+
def __init__(self, **kwargs):
|
6
|
+
super().__init__(**kwargs)
|
7
|
+
|
8
|
+
def install_framework(self, **kwargs):
|
9
|
+
return super().install_framework(libs=\
|
10
|
+
["z3c.sqlalchemy", "zope.sqlalchemy", "alembic"], **kwargs)
|
11
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
from .starlette import StarletteManager
|
2
2
|
|
3
3
|
class LitestarManager(StarletteManager):
|
4
|
-
def __init__(self,
|
4
|
+
def __init__(self, extra_libs=None, **kwargs):
|
5
5
|
extra_libs = (extra_libs or []) + ["msgspec", "starlette", "httpx"]
|
6
|
-
super().__init__(
|
6
|
+
super().__init__(extra_libs=extra_libs, **kwargs)
|
@@ -0,0 +1,11 @@
|
|
1
|
+
from .template import Template
|
2
|
+
|
3
|
+
|
4
|
+
class PyramidManager(Template):
|
5
|
+
def __init__(self, **kwargs):
|
6
|
+
super().__init__(**kwargs)
|
7
|
+
|
8
|
+
def install_framework(self, **kwargs):
|
9
|
+
return super().install_framework(libs=\
|
10
|
+
["sqlalchemy", "alembic", "pyramid_tm", "pyramid_jinja2", "pyramid_authsanity"], **kwargs)
|
11
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
from .template import Template
|
2
|
+
|
3
|
+
|
4
|
+
class SocketifyManager(Template):
|
5
|
+
def __init__(self, **kwargs):
|
6
|
+
super().__init__(**kwargs)
|
7
|
+
|
8
|
+
def install_framework(self, **kwargs):
|
9
|
+
return super().install_framework(libs=\
|
10
|
+
["ormar", "databases", "pydantic", "jinja2", "authlib"], **kwargs)
|
11
|
+
|
@@ -2,8 +2,8 @@ from .fastapi import FastapiManager
|
|
2
2
|
|
3
3
|
|
4
4
|
class StarletteManager(FastapiManager):
|
5
|
-
def __init__(self,
|
5
|
+
def __init__(self, extra_libs = \
|
6
6
|
["sqlalchemy", "aiomysql", "python-multipart", "aiofiles"], **kwargs):
|
7
7
|
|
8
8
|
self.extra_libs = extra_libs
|
9
|
-
super().__init__(
|
9
|
+
super().__init__(extra_libs, **kwargs)
|
@@ -9,15 +9,18 @@ cfg = Config()
|
|
9
9
|
class Template:
|
10
10
|
def __init__(
|
11
11
|
self,
|
12
|
-
framework_name: str,
|
12
|
+
framework_name: str | None = None,
|
13
13
|
source_dir=cfg.source_dir,
|
14
14
|
project_name=cfg.project_name,
|
15
15
|
**kwargs
|
16
16
|
):
|
17
|
-
|
17
|
+
if framework_name is None:
|
18
|
+
self.framework_name = self.__class__.__name__.lower().replace("manager", "")
|
19
|
+
else:
|
20
|
+
self.framework_name = framework_name
|
21
|
+
#
|
18
22
|
self.source_dir = source_dir
|
19
23
|
self.project_name = project_name
|
20
|
-
self.framework_name = framework_name
|
21
24
|
self.name = kwargs.get("name")
|
22
25
|
#
|
23
26
|
self.AutoManager = AutoManager()
|
@@ -2,6 +2,6 @@ from .fastapi import FastapiManager
|
|
2
2
|
|
3
3
|
|
4
4
|
class TornadoManager(FastapiManager):
|
5
|
-
def __init__(self,
|
5
|
+
def __init__(self, extra_libs = \
|
6
6
|
["motor", "aiomysql", "pytest-tornado", "aiofiles"], **kwargs):
|
7
|
-
super().__init__(
|
7
|
+
super().__init__(extra_libs, **kwargs)
|
@@ -0,0 +1,10 @@
|
|
1
|
+
from .template import Template
|
2
|
+
|
3
|
+
|
4
|
+
class TurboGears2Manager(Template):
|
5
|
+
def __init__(self, **kwargs):
|
6
|
+
super().__init__(**kwargs)
|
7
|
+
|
8
|
+
def install_framework(self, **kwargs):
|
9
|
+
return super().install_framework(libs=\
|
10
|
+
["sqlalchemy", "alembic", "tgext.auth", "tgext.admin"], **kwargs)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: rapidframework-lib
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.6
|
4
4
|
Description-Content-Type: text/markdown
|
5
5
|
License-File: LICENSE
|
6
6
|
Requires-Dist: msgspec
|
@@ -13,7 +13,7 @@ Dynamic: requires-dist
|
|
13
13
|
|
14
14
|
> **RapidFramework** is a Python library for quickly creating and setting up projects from templates.
|
15
15
|
|
16
|
-
## https://pypi.org/project/rapidframework-lib/1.0.
|
16
|
+
## https://pypi.org/project/rapidframework-lib/1.0.6/
|
17
17
|
|
18
18
|
## Installation
|
19
19
|
|
@@ -0,0 +1,39 @@
|
|
1
|
+
rapidframework/__init__.py,sha256=5HJcv-kJl0RPcWiShgyMPUVPjvRH4Qb2ormsHCJ5v5Y,272
|
2
|
+
rapidframework/config.py,sha256=lNptfXPi50MELfL2BnaQFa9-ea6lv7R9abqipFwqwYE,2767
|
3
|
+
rapidframework/main.py,sha256=evivz6o-ltpeq9P4BkLUPa6HRrdSFc5tL8PTDZ9aysM,2066
|
4
|
+
rapidframework/__pycache__/main.cpython-313.pyc,sha256=J3Y41E5fOwmGEQtwgTq-NBUl0s0VxCvDC5KUnCGvIdU,3891
|
5
|
+
rapidframework/configs/managers.json,sha256=EEBDjTVQuNXGIF_oIXuNVpXK4kTk2HsRb2aPrbmUjo4,664
|
6
|
+
rapidframework/frameworks/__init__.py,sha256=fFmRgwuTqQ9dKCY3AgjUCWt2V2xTjSN7Y2NKkaURQAk,220
|
7
|
+
rapidframework/frameworks/bottle.py,sha256=mkIwRT3ZZtE070D6OMimao8axNg7GYkQ4xgUimaIkgQ,326
|
8
|
+
rapidframework/frameworks/cherryPy.py,sha256=LPHlXrbMvM3xmYzsY5U-beXvyqWakZCbC3V1b7FDbuA,301
|
9
|
+
rapidframework/frameworks/django.py,sha256=vpUd8Yrm-_8yBn0tzv0tXWjrE1TakTFnSV5Oz5K4O_s,955
|
10
|
+
rapidframework/frameworks/fastapi.py,sha256=4Mgn_3Mzn8lZvFXSjoQnUDjNe2bOynVbtD1O_81ApKA,582
|
11
|
+
rapidframework/frameworks/flask.py,sha256=yk1tw3uRM1rL3z5vfSS3TpP2Lc-WwpKoPM6t5JQt-OY,317
|
12
|
+
rapidframework/frameworks/grok.py,sha256=aqXwlX75S0o-YdiLuOF6nqgjGU3DluqtD9qttLhq_Rw,300
|
13
|
+
rapidframework/frameworks/litestar.py,sha256=tssP54TeOlBKr7dPi8vwttbTuJC1Gyme6Hapiai78LQ,266
|
14
|
+
rapidframework/frameworks/pyramid.py,sha256=eCcBLsxAWNBV8A6pjS-CTpu4O7l7kOPd5NcGCrEppxs,334
|
15
|
+
rapidframework/frameworks/socketify.py,sha256=wuNHeFW9EqpXlLDhWV0A9yyoK-YpjQCpViTS-QoETO8,313
|
16
|
+
rapidframework/frameworks/starlette.py,sha256=1Pd-G8OZSmz8p2nnro14ge3m7avXMn6ZIQYvfWv5H-A,288
|
17
|
+
rapidframework/frameworks/template.py,sha256=DFfDJ6ry-KEVDsRvupwOevj3keX91mUyTtsRPBApVC0,1741
|
18
|
+
rapidframework/frameworks/tornado.py,sha256=5WvPV3KntAt1WrQiURl12WikXPgL5xOa4OWwQGKSDqI,233
|
19
|
+
rapidframework/frameworks/turboGears2.py,sha256=d0QpRyQ2jQ1INKm2l3pZ16_pEyHlhBPfIQoW1FRSHkQ,312
|
20
|
+
rapidframework/frameworks/web2py.py,sha256=tY9r-sGmtZsiNFPRn1k1kkn1qiCxOk4Qr_gzL_ZnZ9Q,133
|
21
|
+
rapidframework/frameworks/examples/ turbogears2_example_1.py,sha256=IytFwU7N-qSi3CDQDrN2wNHDAfV60swOw44_D-UDr-I,435
|
22
|
+
rapidframework/frameworks/examples/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
|
23
|
+
rapidframework/frameworks/examples/bottle_example_1.py,sha256=AhEqgse_IinZ0jx211y0ybyxB0dknGI-x6zhIOQ4Qos,118
|
24
|
+
rapidframework/frameworks/examples/cherrypy_example_1.py,sha256=BKNIPXOgWFTpnwyFK46NMDmPtFnhAARAPAkwgQ-0CYQ,146
|
25
|
+
rapidframework/frameworks/examples/fastapi_example_1.py,sha256=Rhmcr1BrBHR1_xhqk4UmZiF5MDqixRbucR03T6yvBvg,261
|
26
|
+
rapidframework/frameworks/examples/flask_example_1.py,sha256=DuVlouunkJtGygqrU2B_ysKUtKTP-MWCmgpHmTGqeJM,428
|
27
|
+
rapidframework/frameworks/examples/grok_example_1.py,sha256=Lz9xIGiYf1q4IJIMQVy1uzGeBLw2opXOdwqnSdv0j3A,146
|
28
|
+
rapidframework/frameworks/examples/litestar_example_1.py,sha256=kcAsS3LE5g6ZYmkNtRsrLHTNSmtCUXtsgJmoOtiubnk,220
|
29
|
+
rapidframework/frameworks/examples/pyramid_example_1.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
30
|
+
rapidframework/frameworks/examples/socketify_example_1.py,sha256=xV54kgvvXRhqhvGLet9qGE13ZdMVI3EvZ_AV1csCWx0,184
|
31
|
+
rapidframework/frameworks/examples/starlette_example_1.py,sha256=6T9tUyXJ329qHl3ZYgNOCy5eXOX8luT2HP_FWfQ6E4Y,268
|
32
|
+
rapidframework/frameworks/examples/tornado_example_1.py,sha256=vnOqnzcFyCFSMl_5x4pyfbYi6PL9EMQBn9Mv_6yXpZM,368
|
33
|
+
rapidframework/frameworks/examples/web2py_example_1.py,sha256=fscmfjeH9HUb96aDGZBLS88e9Fx_nbU1usLDb0GWbRs,41
|
34
|
+
rapidframework_lib-1.0.6.dist-info/licenses/LICENSE,sha256=lXsPzvyEfL6vjzMMCRYi7gpsIjpSUYUsDF-MvMHyhc0,1070
|
35
|
+
rapidframework_lib-1.0.6.dist-info/METADATA,sha256=ikUcutKEvXi-ofiB-_oFAX8bTfC-6V4YOwGwJ-5prmA,1237
|
36
|
+
rapidframework_lib-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
37
|
+
rapidframework_lib-1.0.6.dist-info/entry_points.txt,sha256=UaOaGJ-BDCxtmNoPp-u_TnXXLbnXtrB13PYr5BgqmHA,72
|
38
|
+
rapidframework_lib-1.0.6.dist-info/top_level.txt,sha256=7PXDkFZsYowz4aB2xVaSso4qD45jd2kHn6x3xxhMMNs,15
|
39
|
+
rapidframework_lib-1.0.6.dist-info/RECORD,,
|
@@ -1,25 +0,0 @@
|
|
1
|
-
rapidframework/__init__.py,sha256=5HJcv-kJl0RPcWiShgyMPUVPjvRH4Qb2ormsHCJ5v5Y,272
|
2
|
-
rapidframework/config.py,sha256=lNptfXPi50MELfL2BnaQFa9-ea6lv7R9abqipFwqwYE,2767
|
3
|
-
rapidframework/main.py,sha256=evivz6o-ltpeq9P4BkLUPa6HRrdSFc5tL8PTDZ9aysM,2066
|
4
|
-
rapidframework/__pycache__/main.cpython-313.pyc,sha256=J3Y41E5fOwmGEQtwgTq-NBUl0s0VxCvDC5KUnCGvIdU,3891
|
5
|
-
rapidframework/configs/managers.json,sha256=EEBDjTVQuNXGIF_oIXuNVpXK4kTk2HsRb2aPrbmUjo4,664
|
6
|
-
rapidframework/frameworks/__init__.py,sha256=fFmRgwuTqQ9dKCY3AgjUCWt2V2xTjSN7Y2NKkaURQAk,220
|
7
|
-
rapidframework/frameworks/django.py,sha256=AQkMjzRLjFwd72ZYg-DZWEx702x6qForBYg3hsRBBgw,980
|
8
|
-
rapidframework/frameworks/fastapi.py,sha256=dT0_35QEOZquBFauhTrkTnuCoh2n2B1iuKu3eSTyeKI,624
|
9
|
-
rapidframework/frameworks/flask.py,sha256=csV5jUGmtLvESm_rma15xAQYDhMhlZmVidp8TCaNGZg,343
|
10
|
-
rapidframework/frameworks/litestar.py,sha256=_fUtFga4l6p8oQJzN5LfA1VP1ycsfbsKqBadywbgUO4,309
|
11
|
-
rapidframework/frameworks/starlette.py,sha256=SIV3Bd8bdSJ_apSfOFXwR-UnZ2bN9hHNBPB5opUSCZk,332
|
12
|
-
rapidframework/frameworks/template.py,sha256=RUHd1BYTNbKUiZMGhvAwQBhaTElFv4TdWFIB6K-AHew,1576
|
13
|
-
rapidframework/frameworks/tornado.py,sha256=c1dDcRTEZ0nMlMXmMtBIE4cyxhB7hdsb1681VoN8LyE,275
|
14
|
-
rapidframework/frameworks/examples/__init__.py,sha256=ovguP4wzQEDNguczwiZnhMm4dRRVcvnzmHrfQtlRCNQ,15
|
15
|
-
rapidframework/frameworks/examples/fastapi_example_1.py,sha256=Rhmcr1BrBHR1_xhqk4UmZiF5MDqixRbucR03T6yvBvg,261
|
16
|
-
rapidframework/frameworks/examples/flask_example_1.py,sha256=DuVlouunkJtGygqrU2B_ysKUtKTP-MWCmgpHmTGqeJM,428
|
17
|
-
rapidframework/frameworks/examples/litestar_example_1.py,sha256=kcAsS3LE5g6ZYmkNtRsrLHTNSmtCUXtsgJmoOtiubnk,220
|
18
|
-
rapidframework/frameworks/examples/starlette_example_1.py,sha256=6T9tUyXJ329qHl3ZYgNOCy5eXOX8luT2HP_FWfQ6E4Y,268
|
19
|
-
rapidframework/frameworks/examples/tornado_example_1.py,sha256=vnOqnzcFyCFSMl_5x4pyfbYi6PL9EMQBn9Mv_6yXpZM,368
|
20
|
-
rapidframework_lib-1.0.4.dist-info/licenses/LICENSE,sha256=lXsPzvyEfL6vjzMMCRYi7gpsIjpSUYUsDF-MvMHyhc0,1070
|
21
|
-
rapidframework_lib-1.0.4.dist-info/METADATA,sha256=VAnqwrtIKmKJtGPRPfPRvTlRPYM4rcr2Bn6S4_ZrGyo,1237
|
22
|
-
rapidframework_lib-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
23
|
-
rapidframework_lib-1.0.4.dist-info/entry_points.txt,sha256=UaOaGJ-BDCxtmNoPp-u_TnXXLbnXtrB13PYr5BgqmHA,72
|
24
|
-
rapidframework_lib-1.0.4.dist-info/top_level.txt,sha256=7PXDkFZsYowz4aB2xVaSso4qD45jd2kHn6x3xxhMMNs,15
|
25
|
-
rapidframework_lib-1.0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|