rapidframework-lib 1.0.3__tar.gz → 1.0.5__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.
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/PKG-INFO +2 -2
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/README.md +1 -1
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/config.py +1 -3
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/django.py +1 -1
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/fastapi.py +2 -2
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/flask.py +1 -1
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/litestar.py +2 -2
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/starlette.py +2 -2
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/template.py +6 -3
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/tornado.py +2 -2
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/PKG-INFO +2 -2
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/setup.py +1 -1
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/LICENSE +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/pyproject.toml +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/__init__.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/__pycache__/main.cpython-313.pyc +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/configs/managers.json +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/__init__.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/__init__.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/fastapi_example_1.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/flask_example_1.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/litestar_example_1.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/starlette_example_1.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/tornado_example_1.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/main.py +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/SOURCES.txt +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/dependency_links.txt +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/entry_points.txt +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/requires.txt +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/top_level.txt +0 -0
- {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: rapidframework-lib
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.5
|
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.5/
|
17
17
|
|
18
18
|
## Installation
|
19
19
|
|
@@ -80,6 +80,4 @@ class AutoManager:
|
|
80
80
|
|
81
81
|
def install_libs(cls, libs: list) -> None:
|
82
82
|
print(libs)
|
83
|
-
|
84
|
-
print([cls.get_pkg_manager(), cls.get_config_managers().managers.get(cls.get_pkg_manager()), lib])
|
85
|
-
run([cls.get_pkg_manager(), cls.get_config_managers().managers.get(cls.get_pkg_manager()).install, lib])
|
83
|
+
run([cls.get_pkg_manager(), cls.get_config_managers().managers.get(cls.get_pkg_manager()).install] + libs)
|
@@ -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)
|
@@ -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)
|
{rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/starlette.py
RENAMED
@@ -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)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: rapidframework-lib
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.5
|
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.5/
|
17
17
|
|
18
18
|
## Installation
|
19
19
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/entry_points.txt
RENAMED
File without changes
|
{rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/requires.txt
RENAMED
File without changes
|
{rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|