liberty-framework 6.0.65__py3-none-any.whl → 6.0.66__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.
- liberty/{alembic → framework/alembic}/env.py +4 -4
- liberty/{controllers → framework/controllers}/api_controller.py +4 -4
- liberty/{controllers → framework/controllers}/setup_controller.py +4 -4
- liberty/{controllers → framework/controllers}/socket_controller.py +1 -1
- liberty/{database → framework/database}/base_dao.py +1 -1
- liberty/{database → framework/database}/ora_dao.py +3 -3
- liberty/{database → framework/database}/pg_dao.py +2 -2
- liberty/{main.py → framework/main.py} +13 -13
- liberty/{public/frontend/assets/index-DKi0M8X4.js → framework/public/frontend/assets/index-JciO17Ha.js} +3 -3
- liberty/{public/frontend/assets/index-DKi0M8X4.js.map → framework/public/frontend/assets/index-JciO17Ha.js.map} +1 -1
- liberty/{public/frontend/assets/index.es-D6oC0jBA-Bov3KVdc.js → framework/public/frontend/assets/index.es-D6oC0jBA-D4MGSJYE.js} +2 -2
- liberty/{public/frontend/assets/index.es-D6oC0jBA-Bov3KVdc.js.map → framework/public/frontend/assets/index.es-D6oC0jBA-D4MGSJYE.js.map} +1 -1
- liberty/{public → framework/public}/frontend/index.html +1 -1
- liberty/{routes → framework/routes}/api_routes.py +15 -15
- liberty/{routes → framework/routes}/react_routes.py +1 -1
- liberty/{routes → framework/routes}/setup_routes.py +4 -4
- liberty/{routes → framework/routes}/socket_routes.py +1 -1
- liberty/{services → framework/services}/api_services.py +3 -3
- liberty/{services → framework/services}/db_pool.py +3 -3
- liberty/{services → framework/services}/rest_services.py +3 -3
- liberty/{setup → framework/setup}/services/alembic.py +6 -6
- liberty/{setup → framework/setup}/services/dump.py +5 -5
- liberty/{setup → framework/setup}/services/install.py +4 -4
- liberty/{setup → framework/setup}/services/models.py +3 -3
- liberty/{setup → framework/setup}/services/setup.py +9 -9
- liberty/framework/utils/__init__.py +0 -0
- liberty/{utils → framework/utils}/encrypt.py +1 -1
- liberty/{utils → framework/utils}/jwt.py +1 -1
- {liberty_framework-6.0.65.dist-info → liberty_framework-6.0.66.dist-info}/METADATA +3 -2
- liberty_framework-6.0.66.dist-info/RECORD +98 -0
- liberty_framework-6.0.66.dist-info/entry_points.txt +2 -0
- liberty/postgres/dump/test.dump +0 -0
- liberty_framework-6.0.65.dist-info/RECORD +0 -98
- liberty_framework-6.0.65.dist-info/entry_points.txt +0 -2
- /liberty/{business → framework}/__init__.py +0 -0
- /liberty/{alembic → framework/alembic}/README +0 -0
- /liberty/{alembic → framework/alembic}/script.py.mako +0 -0
- /liberty/{alembic → framework/alembic}/versions/README +0 -0
- /liberty/{alembic.ini → framework/alembic.ini} +0 -0
- /liberty/{controllers → framework/business}/__init__.py +0 -0
- /liberty/{business → framework/business}/oracle.py +0 -0
- /liberty/{business → framework/business}/postgres.py +0 -0
- /liberty/{config → framework/config}/__init__.py +0 -0
- /liberty/{config → framework/config}/files/liberty.ini +0 -0
- /liberty/{database → framework/controllers}/__init__.py +0 -0
- /liberty/{models → framework/database}/__init__.py +0 -0
- /liberty/{logs → framework/logs}/__init__.py +0 -0
- /liberty/{postgres → framework/models}/__init__.py +0 -0
- /liberty/{models → framework/models}/ai.py +0 -0
- /liberty/{models → framework/models}/apidb.py +0 -0
- /liberty/{models → framework/models}/applications.py +0 -0
- /liberty/{models → framework/models}/auth.py +0 -0
- /liberty/{models → framework/models}/base.py +0 -0
- /liberty/{models → framework/models}/modules.py +0 -0
- /liberty/{models → framework/models}/pool.py +0 -0
- /liberty/{models → framework/models}/setup.py +0 -0
- /liberty/{models → framework/models}/themes.py +0 -0
- /liberty/{routes → framework/postgres}/__init__.py +0 -0
- /liberty/{postgres → framework/postgres}/dump/__init__.py +0 -0
- /liberty/{postgres → framework/postgres}/dump/airflow.dump +0 -0
- /liberty/{postgres → framework/postgres}/dump/gitea.dump +0 -0
- /liberty/{postgres → framework/postgres}/dump/keycloak.dump +0 -0
- /liberty/{postgres → framework/postgres}/dump/liberty.dump +0 -0
- /liberty/{postgres → framework/postgres}/dump/libnetl.dump +0 -0
- /liberty/{postgres → framework/postgres}/dump/libnjde.dump +0 -0
- /liberty/{postgres → framework/postgres}/dump/libnsx1.dump +0 -0
- /liberty/{postgres → framework/postgres}/dump/nomajde.dump +0 -0
- /liberty/{postgres → framework/postgres}/dump/nomasx1.dump +0 -0
- /liberty/{public → framework/public}/__init__.py +0 -0
- /liberty/{public → framework/public}/frontend/assets/background_ly-VdfFMP8a.jpg +0 -0
- /liberty/{public → framework/public}/frontend/assets/logo_ly-HGj2PB94.svg +0 -0
- /liberty/{public → framework/public}/frontend/assets/purify.es-BGDLgQxM-VhQmH9Os.js +0 -0
- /liberty/{public → framework/public}/frontend/assets/purify.es-BGDLgQxM-VhQmH9Os.js.map +0 -0
- /liberty/{public → framework/public}/offline/assets/logo_ly.png +0 -0
- /liberty/{public → framework/public}/offline/index.html +0 -0
- /liberty/{public → framework/public}/setup/index.html +0 -0
- /liberty/{public → framework/public}/setup/setup/assets/background_ly-VdfFMP8a.jpg +0 -0
- /liberty/{public → framework/public}/setup/setup/assets/index-BBGAGXd2.css +0 -0
- /liberty/{public → framework/public}/setup/setup/assets/index-knz6QXph.js +0 -0
- /liberty/{public → framework/public}/setup/setup/assets/index-knz6QXph.js.map +0 -0
- /liberty/{public → framework/public}/setup/setup/assets/logo_ly-HGj2PB94.svg +0 -0
- /liberty/{services → framework/routes}/__init__.py +0 -0
- /liberty/{setup → framework/services}/__init__.py +0 -0
- /liberty/{setup/services → framework/setup}/__init__.py +0 -0
- /liberty/{setup → framework/setup}/data/__init__.py +0 -0
- /liberty/{setup → framework/setup}/data/liberty.json +0 -0
- /liberty/{setup → framework/setup}/data/libnetl.json +0 -0
- /liberty/{setup → framework/setup}/data/libnjde.json +0 -0
- /liberty/{setup → framework/setup}/data/libnsx1.json +0 -0
- /liberty/{setup → framework/setup}/data/nomasx1.json +0 -0
- /liberty/{setup → framework/setup}/models/__init__.py +0 -0
- /liberty/{setup → framework/setup}/models/liberty.py +0 -0
- /liberty/{setup → framework/setup}/models/nomasx1.py +0 -0
- /liberty/{utils → framework/setup/services}/__init__.py +0 -0
- /liberty/{utils → framework/utils}/common.py +0 -0
- /liberty/{utils → framework/utils}/logs.py +0 -0
- /liberty/{utils → framework/utils}/test.py +0 -0
- /liberty_framework-6.0.65.dist-info/LICENSE → /liberty_framework-6.0.66.dist-info/LICENSE.md +0 -0
- {liberty_framework-6.0.65.dist-info → liberty_framework-6.0.66.dist-info}/WHEEL +0 -0
- {liberty_framework-6.0.65.dist-info → liberty_framework-6.0.66.dist-info}/top_level.txt +0 -0
|
@@ -8,10 +8,10 @@ from sqlalchemy import create_engine, engine_from_config
|
|
|
8
8
|
from sqlalchemy import pool
|
|
9
9
|
|
|
10
10
|
from alembic import context
|
|
11
|
-
from liberty.config import get_db_properties_path
|
|
12
|
-
from liberty.setup.models import liberty, nomasx1
|
|
13
|
-
from liberty.utils.encrypt import Encryption
|
|
14
|
-
from liberty.utils.jwt import JWT
|
|
11
|
+
from liberty.framework.config import get_db_properties_path
|
|
12
|
+
from liberty.framework.setup.models import liberty, nomasx1
|
|
13
|
+
from liberty.framework.utils.encrypt import Encryption
|
|
14
|
+
from liberty.framework.utils.jwt import JWT
|
|
15
15
|
|
|
16
16
|
USE_TWOPHASE = False
|
|
17
17
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from fastapi import HTTPException, Request
|
|
2
|
-
from liberty.utils.encrypt import Encryption
|
|
3
|
-
from liberty.utils.jwt import JWT
|
|
4
|
-
from liberty.services.api_services import API
|
|
5
|
-
from liberty.services.rest_services import Rest
|
|
2
|
+
from liberty.framework.utils.encrypt import Encryption
|
|
3
|
+
from liberty.framework.utils.jwt import JWT
|
|
4
|
+
from liberty.framework.services.api_services import API
|
|
5
|
+
from liberty.framework.services.rest_services import Rest
|
|
6
6
|
|
|
7
7
|
class ApiController:
|
|
8
8
|
def __init__(self, jwt: JWT, api: API = None, rest: Rest = None):
|
|
@@ -2,10 +2,10 @@ import logging
|
|
|
2
2
|
logger = logging.getLogger(__name__)
|
|
3
3
|
|
|
4
4
|
from fastapi import Request
|
|
5
|
-
from liberty.controllers.api_controller import ApiController
|
|
6
|
-
from liberty.utils.jwt import JWT
|
|
7
|
-
from liberty.setup.services.setup import Setup
|
|
8
|
-
from liberty.setup.services.alembic import Alembic
|
|
5
|
+
from liberty.framework.controllers.api_controller import ApiController
|
|
6
|
+
from liberty.framework.utils.jwt import JWT
|
|
7
|
+
from liberty.framework.setup.services.setup import Setup
|
|
8
|
+
from liberty.framework.setup.services.alembic import Alembic
|
|
9
9
|
|
|
10
10
|
class SetupController:
|
|
11
11
|
def __init__(self, apiController: ApiController, jwt: JWT):
|
|
@@ -7,7 +7,7 @@ from fastapi.responses import JSONResponse, HTMLResponse
|
|
|
7
7
|
from typing import Optional
|
|
8
8
|
from socketio import ASGIApp, AsyncServer
|
|
9
9
|
from fastapi import FastAPI
|
|
10
|
-
from liberty.controllers.api_controller import ApiController
|
|
10
|
+
from liberty.framework.controllers.api_controller import ApiController
|
|
11
11
|
|
|
12
12
|
class SocketController:
|
|
13
13
|
def __init__(self, io: Optional[AsyncServer] = None):
|
|
@@ -9,7 +9,7 @@ from sqlalchemy import text
|
|
|
9
9
|
import re
|
|
10
10
|
from abc import abstractmethod
|
|
11
11
|
import json
|
|
12
|
-
from liberty.business.postgres import PostgresQuery
|
|
12
|
+
from liberty.framework.business.postgres import PostgresQuery
|
|
13
13
|
|
|
14
14
|
class BaseDAO:
|
|
15
15
|
def __init__(self, config: dict):
|
|
@@ -4,9 +4,9 @@ import re
|
|
|
4
4
|
from sqlalchemy import text
|
|
5
5
|
from sqlalchemy.ext.asyncio import create_async_engine
|
|
6
6
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
7
|
-
from liberty.database.base_dao import BaseDAO
|
|
8
|
-
from liberty.utils.common import PoolConfig
|
|
9
|
-
from liberty.business.oracle import OracleQuery
|
|
7
|
+
from liberty.framework.database.base_dao import BaseDAO
|
|
8
|
+
from liberty.framework.utils.common import PoolConfig
|
|
9
|
+
from liberty.framework.business.oracle import OracleQuery
|
|
10
10
|
from sqlalchemy.orm import sessionmaker
|
|
11
11
|
from typing import Dict, List
|
|
12
12
|
|
|
@@ -3,8 +3,8 @@ logger = logging.getLogger(__name__)
|
|
|
3
3
|
import re
|
|
4
4
|
from sqlalchemy import text
|
|
5
5
|
from sqlalchemy.ext.asyncio import create_async_engine
|
|
6
|
-
from liberty.database.base_dao import BaseDAO
|
|
7
|
-
from liberty.business.postgres import PostgresQuery
|
|
6
|
+
from liberty.framework.database.base_dao import BaseDAO
|
|
7
|
+
from liberty.framework.business.postgres import PostgresQuery
|
|
8
8
|
from typing import Dict, List
|
|
9
9
|
from sqlalchemy.ext.asyncio import AsyncSession
|
|
10
10
|
from sqlalchemy.orm import sessionmaker
|
|
@@ -14,19 +14,19 @@ from fastapi import FastAPI, HTTPException, Query, Request
|
|
|
14
14
|
from fastapi.staticfiles import StaticFiles
|
|
15
15
|
from fastapi_socketio import SocketManager
|
|
16
16
|
import uvicorn
|
|
17
|
-
from liberty.utils.jwt import JWT
|
|
18
|
-
from liberty.controllers.setup_controller import SetupController
|
|
19
|
-
from liberty.controllers.api_controller import ApiController
|
|
20
|
-
from liberty.controllers.socket_controller import SocketController
|
|
21
|
-
from liberty.routes.api_routes import setup_api_routes
|
|
22
|
-
from liberty.routes.react_routes import setup_react_routes
|
|
23
|
-
from liberty.routes.socket_routes import setup_socket_routes
|
|
24
|
-
from liberty.routes.setup_routes import setup_setup_routes
|
|
25
|
-
from liberty.config import get_db_properties_path
|
|
17
|
+
from liberty.framework.utils.jwt import JWT
|
|
18
|
+
from liberty.framework.controllers.setup_controller import SetupController
|
|
19
|
+
from liberty.framework.controllers.api_controller import ApiController
|
|
20
|
+
from liberty.framework.controllers.socket_controller import SocketController
|
|
21
|
+
from liberty.framework.routes.api_routes import setup_api_routes
|
|
22
|
+
from liberty.framework.routes.react_routes import setup_react_routes
|
|
23
|
+
from liberty.framework.routes.socket_routes import setup_socket_routes
|
|
24
|
+
from liberty.framework.routes.setup_routes import setup_setup_routes
|
|
25
|
+
from liberty.framework.config import get_db_properties_path
|
|
26
26
|
from contextlib import asynccontextmanager
|
|
27
|
-
from liberty.public import get_frontend_assets_path, get_offline_assets_path, get_setup_assets_path
|
|
28
|
-
from liberty.services.rest_services import Rest
|
|
29
|
-
from liberty.services.api_services import API
|
|
27
|
+
from liberty.framework.public import get_frontend_assets_path, get_offline_assets_path, get_setup_assets_path
|
|
28
|
+
from liberty.framework.services.rest_services import Rest
|
|
29
|
+
from liberty.framework.services.api_services import API
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
class BackendAPI:
|
|
@@ -217,7 +217,7 @@ async def lifespan(app: FastAPI):
|
|
|
217
217
|
|
|
218
218
|
def main():
|
|
219
219
|
"""Entry point for running the application."""
|
|
220
|
-
config = uvicorn.Config("liberty.main:app", host="0.0.0.0", port=8000, reload=True, log_level="warning")
|
|
220
|
+
config = uvicorn.Config("liberty.framework.main:app", host="0.0.0.0", port=8000, reload=True, log_level="warning")
|
|
221
221
|
server = uvicorn.Server(config)
|
|
222
222
|
|
|
223
223
|
try:
|