architectonics 0.0.22__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.
File without changes
File without changes
File without changes
@@ -0,0 +1,13 @@
1
+ import os
2
+
3
+ from dotenv import load_dotenv
4
+ from pydantic import BaseModel
5
+
6
+ load_dotenv()
7
+
8
+
9
+ class ApplicationSettings(BaseModel):
10
+ DEBUG: bool = os.getenv("DEBUG", "False").lower() == "true"
11
+
12
+
13
+ application_settings = ApplicationSettings()
File without changes
@@ -0,0 +1,30 @@
1
+ from fastapi import FastAPI
2
+ from fastapi.middleware.cors import CORSMiddleware
3
+
4
+ from architectonics.core.config.application_settings import application_settings
5
+
6
+
7
+ class BaseAppFactory:
8
+ @classmethod
9
+ def create(cls, title) -> FastAPI:
10
+ app = FastAPI(
11
+ debug=application_settings.DEBUG,
12
+ title=title,
13
+ docs_url="/docs/",
14
+ )
15
+
16
+ app.add_middleware(
17
+ CORSMiddleware,
18
+ allow_origins=["*"],
19
+ allow_credentials=True,
20
+ allow_methods=["*"],
21
+ allow_headers=["*"],
22
+ )
23
+
24
+ cls._register_app_routes(app)
25
+
26
+ return app
27
+
28
+ @classmethod
29
+ def _register_app_routes(cls, app: FastAPI):
30
+ raise NotImplementedError()
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.1
2
+ Name: architectonics
3
+ Version: 0.0.22
4
+ Summary:
5
+ Author: Your Name
6
+ Author-email: you@example.com
7
+ Requires-Python: >=3.14,<4.0
8
+ Classifier: Programming Language :: Python :: 3
9
+ Requires-Dist: SQLAlchemy (==2.0.46)
10
+ Requires-Dist: aio-pika (==9.5.8)
11
+ Requires-Dist: alembic (==1.18.1)
12
+ Requires-Dist: asyncpg (==0.31.0)
13
+ Requires-Dist: dotenv (==0.9.9)
14
+ Requires-Dist: fastapi (==0.128.0)
15
+ Requires-Dist: pydantic (==2.12.5)
16
+ Requires-Dist: uvicorn (==0.40.0)
@@ -0,0 +1,9 @@
1
+ architectonics/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ architectonics/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ architectonics/core/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ architectonics/core/config/application_settings.py,sha256=DmCjQCbm4BsxMoZuQ212Pjjl_3spQ2vK5TUyZdDcklM,239
5
+ architectonics/core/factory/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ architectonics/core/factory/factory.py,sha256=ZfFfLW_aWIqPavmADkpmYJEbiJhqrh0735yhghgm56Q,740
7
+ architectonics-0.0.22.dist-info/WHEEL,sha256=y3eDiaFVSNTPbgzfNn0nYn5tEn1cX6WrdetDlQM4xWw,83
8
+ architectonics-0.0.22.dist-info/METADATA,sha256=A9WcUvaCaAJVz7xpJsZtRgXzb6qyou4L3TYwiKLenXk,469
9
+ architectonics-0.0.22.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry 1.0.7
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any