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.
Files changed (31) hide show
  1. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/PKG-INFO +2 -2
  2. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/README.md +1 -1
  3. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/config.py +1 -3
  4. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/django.py +1 -1
  5. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/fastapi.py +2 -2
  6. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/flask.py +1 -1
  7. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/litestar.py +2 -2
  8. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/starlette.py +2 -2
  9. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/template.py +6 -3
  10. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/tornado.py +2 -2
  11. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/PKG-INFO +2 -2
  12. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/setup.py +1 -1
  13. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/LICENSE +0 -0
  14. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/pyproject.toml +0 -0
  15. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/__init__.py +0 -0
  16. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/__pycache__/main.cpython-313.pyc +0 -0
  17. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/configs/managers.json +0 -0
  18. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/__init__.py +0 -0
  19. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/__init__.py +0 -0
  20. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/fastapi_example_1.py +0 -0
  21. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/flask_example_1.py +0 -0
  22. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/litestar_example_1.py +0 -0
  23. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/starlette_example_1.py +0 -0
  24. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/frameworks/examples/tornado_example_1.py +0 -0
  25. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework/main.py +0 -0
  26. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/SOURCES.txt +0 -0
  27. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/dependency_links.txt +0 -0
  28. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/entry_points.txt +0 -0
  29. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/requires.txt +0 -0
  30. {rapidframework_lib-1.0.3 → rapidframework_lib-1.0.5}/rapidframework_lib.egg-info/top_level.txt +0 -0
  31. {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
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.2/
16
+ ## https://pypi.org/project/rapidframework-lib/1.0.5/
17
17
 
18
18
  ## Installation
19
19
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **RapidFramework** is a Python library for quickly creating and setting up projects from templates.
4
4
 
5
- ## https://pypi.org/project/rapidframework-lib/1.0.2/
5
+ ## https://pypi.org/project/rapidframework-lib/1.0.5/
6
6
 
7
7
  ## Installation
8
8
 
@@ -80,6 +80,4 @@ class AutoManager:
80
80
 
81
81
  def install_libs(cls, libs: list) -> None:
82
82
  print(libs)
83
- for lib in libs:
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)
@@ -5,7 +5,7 @@ from os import chdir
5
5
 
6
6
  class DjangoManager(Template):
7
7
  def __init__(self, **kwargs):
8
- super().__init__(framework_name="django", **kwargs)
8
+ super().__init__(**kwargs)
9
9
 
10
10
  def run_manage(self, commands: list):
11
11
  chdir(f"{self.source_dir}/{self.project_name}")
@@ -2,11 +2,11 @@ from .template import Template
2
2
 
3
3
 
4
4
  class FastapiManager(Template):
5
- def __init__(self, framework_name="fastapi", extra_libs: list = \
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__(framework_name, **kwargs)
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)
@@ -3,7 +3,7 @@ from .template import Template
3
3
 
4
4
  class FlaskManager(Template):
5
5
  def __init__(self, **kwargs):
6
- super().__init__(framework_name = 'flask', **kwargs)
6
+ super().__init__(**kwargs)
7
7
 
8
8
  def install_framework(self, **kwargs):
9
9
  return super().install_framework(libs=\
@@ -1,6 +1,6 @@
1
1
  from .starlette import StarletteManager
2
2
 
3
3
  class LitestarManager(StarletteManager):
4
- def __init__(self, framework_name="litestar", extra_libs=None, **kwargs):
4
+ def __init__(self, extra_libs=None, **kwargs):
5
5
  extra_libs = (extra_libs or []) + ["msgspec", "starlette", "httpx"]
6
- super().__init__(framework_name, extra_libs=extra_libs, **kwargs)
6
+ super().__init__(extra_libs=extra_libs, **kwargs)
@@ -2,8 +2,8 @@ from .fastapi import FastapiManager
2
2
 
3
3
 
4
4
  class StarletteManager(FastapiManager):
5
- def __init__(self, framework_name="starlette", extra_libs = \
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__(framework_name, extra_libs, **kwargs)
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, framework_name="tornado", extra_libs = \
5
+ def __init__(self, extra_libs = \
6
6
  ["motor", "aiomysql", "pytest-tornado", "aiofiles"], **kwargs):
7
- super().__init__(framework_name, extra_libs, **kwargs)
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
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.2/
16
+ ## https://pypi.org/project/rapidframework-lib/1.0.5/
17
17
 
18
18
  ## Installation
19
19
 
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
3
3
 
4
4
  setup(
5
5
  name="rapidframework-lib",
6
- version="1.0.3",
6
+ version="1.0.5",
7
7
  packages=find_packages(),
8
8
  install_requires=[
9
9
  "msgspec"