liberty-framework 6.0.65__py3-none-any.whl → 6.0.67__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.
Files changed (100) hide show
  1. liberty/{alembic → framework/alembic}/env.py +4 -4
  2. liberty/{controllers → framework/controllers}/api_controller.py +4 -4
  3. liberty/{controllers → framework/controllers}/setup_controller.py +4 -4
  4. liberty/{controllers → framework/controllers}/socket_controller.py +1 -1
  5. liberty/{database → framework/database}/base_dao.py +1 -1
  6. liberty/{database → framework/database}/ora_dao.py +3 -3
  7. liberty/{database → framework/database}/pg_dao.py +2 -2
  8. liberty/{main.py → framework/main.py} +13 -13
  9. liberty/{public/frontend/assets/index-DKi0M8X4.js → framework/public/frontend/assets/index-DfARiY0K.js} +19 -19
  10. liberty/{public/frontend/assets/index-DKi0M8X4.js.map → framework/public/frontend/assets/index-DfARiY0K.js.map} +1 -1
  11. liberty/{public/frontend/assets/index.es-D6oC0jBA-Bov3KVdc.js → framework/public/frontend/assets/index.es-CBlJRKZK-CW68Tgr0.js} +2 -2
  12. liberty/{public/frontend/assets/index.es-D6oC0jBA-Bov3KVdc.js.map → framework/public/frontend/assets/index.es-CBlJRKZK-CW68Tgr0.js.map} +1 -1
  13. liberty/{public → framework/public}/frontend/index.html +1 -1
  14. liberty/{routes → framework/routes}/api_routes.py +15 -15
  15. liberty/{routes → framework/routes}/react_routes.py +1 -1
  16. liberty/{routes → framework/routes}/setup_routes.py +4 -4
  17. liberty/{routes → framework/routes}/socket_routes.py +1 -1
  18. liberty/{services → framework/services}/api_services.py +3 -3
  19. liberty/{services → framework/services}/db_pool.py +3 -3
  20. liberty/{services → framework/services}/rest_services.py +3 -3
  21. liberty/{setup → framework/setup}/services/alembic.py +6 -6
  22. liberty/{setup → framework/setup}/services/dump.py +5 -5
  23. liberty/{setup → framework/setup}/services/install.py +4 -4
  24. liberty/{setup → framework/setup}/services/models.py +3 -3
  25. liberty/{setup → framework/setup}/services/setup.py +9 -9
  26. liberty/framework/utils/__init__.py +0 -0
  27. liberty/{utils → framework/utils}/encrypt.py +1 -1
  28. liberty/{utils → framework/utils}/jwt.py +1 -1
  29. {liberty_framework-6.0.65.dist-info → liberty_framework-6.0.67.dist-info}/METADATA +3 -2
  30. liberty_framework-6.0.67.dist-info/RECORD +98 -0
  31. liberty_framework-6.0.67.dist-info/entry_points.txt +2 -0
  32. liberty/postgres/dump/test.dump +0 -0
  33. liberty_framework-6.0.65.dist-info/RECORD +0 -98
  34. liberty_framework-6.0.65.dist-info/entry_points.txt +0 -2
  35. /liberty/{business → framework}/__init__.py +0 -0
  36. /liberty/{alembic → framework/alembic}/README +0 -0
  37. /liberty/{alembic → framework/alembic}/script.py.mako +0 -0
  38. /liberty/{alembic → framework/alembic}/versions/README +0 -0
  39. /liberty/{alembic.ini → framework/alembic.ini} +0 -0
  40. /liberty/{controllers → framework/business}/__init__.py +0 -0
  41. /liberty/{business → framework/business}/oracle.py +0 -0
  42. /liberty/{business → framework/business}/postgres.py +0 -0
  43. /liberty/{config → framework/config}/__init__.py +0 -0
  44. /liberty/{config → framework/config}/files/liberty.ini +0 -0
  45. /liberty/{database → framework/controllers}/__init__.py +0 -0
  46. /liberty/{models → framework/database}/__init__.py +0 -0
  47. /liberty/{logs → framework/logs}/__init__.py +0 -0
  48. /liberty/{postgres → framework/models}/__init__.py +0 -0
  49. /liberty/{models → framework/models}/ai.py +0 -0
  50. /liberty/{models → framework/models}/apidb.py +0 -0
  51. /liberty/{models → framework/models}/applications.py +0 -0
  52. /liberty/{models → framework/models}/auth.py +0 -0
  53. /liberty/{models → framework/models}/base.py +0 -0
  54. /liberty/{models → framework/models}/modules.py +0 -0
  55. /liberty/{models → framework/models}/pool.py +0 -0
  56. /liberty/{models → framework/models}/setup.py +0 -0
  57. /liberty/{models → framework/models}/themes.py +0 -0
  58. /liberty/{routes → framework/postgres}/__init__.py +0 -0
  59. /liberty/{postgres → framework/postgres}/dump/__init__.py +0 -0
  60. /liberty/{postgres → framework/postgres}/dump/airflow.dump +0 -0
  61. /liberty/{postgres → framework/postgres}/dump/gitea.dump +0 -0
  62. /liberty/{postgres → framework/postgres}/dump/keycloak.dump +0 -0
  63. /liberty/{postgres → framework/postgres}/dump/liberty.dump +0 -0
  64. /liberty/{postgres → framework/postgres}/dump/libnetl.dump +0 -0
  65. /liberty/{postgres → framework/postgres}/dump/libnjde.dump +0 -0
  66. /liberty/{postgres → framework/postgres}/dump/libnsx1.dump +0 -0
  67. /liberty/{postgres → framework/postgres}/dump/nomajde.dump +0 -0
  68. /liberty/{postgres → framework/postgres}/dump/nomasx1.dump +0 -0
  69. /liberty/{public → framework/public}/__init__.py +0 -0
  70. /liberty/{public → framework/public}/frontend/assets/background_ly-VdfFMP8a.jpg +0 -0
  71. /liberty/{public → framework/public}/frontend/assets/logo_ly-HGj2PB94.svg +0 -0
  72. /liberty/{public → framework/public}/frontend/assets/purify.es-BGDLgQxM-VhQmH9Os.js +0 -0
  73. /liberty/{public → framework/public}/frontend/assets/purify.es-BGDLgQxM-VhQmH9Os.js.map +0 -0
  74. /liberty/{public → framework/public}/offline/assets/logo_ly.png +0 -0
  75. /liberty/{public → framework/public}/offline/index.html +0 -0
  76. /liberty/{public → framework/public}/setup/index.html +0 -0
  77. /liberty/{public → framework/public}/setup/setup/assets/background_ly-VdfFMP8a.jpg +0 -0
  78. /liberty/{public → framework/public}/setup/setup/assets/index-BBGAGXd2.css +0 -0
  79. /liberty/{public → framework/public}/setup/setup/assets/index-knz6QXph.js +0 -0
  80. /liberty/{public → framework/public}/setup/setup/assets/index-knz6QXph.js.map +0 -0
  81. /liberty/{public → framework/public}/setup/setup/assets/logo_ly-HGj2PB94.svg +0 -0
  82. /liberty/{services → framework/routes}/__init__.py +0 -0
  83. /liberty/{setup → framework/services}/__init__.py +0 -0
  84. /liberty/{setup/services → framework/setup}/__init__.py +0 -0
  85. /liberty/{setup → framework/setup}/data/__init__.py +0 -0
  86. /liberty/{setup → framework/setup}/data/liberty.json +0 -0
  87. /liberty/{setup → framework/setup}/data/libnetl.json +0 -0
  88. /liberty/{setup → framework/setup}/data/libnjde.json +0 -0
  89. /liberty/{setup → framework/setup}/data/libnsx1.json +0 -0
  90. /liberty/{setup → framework/setup}/data/nomasx1.json +0 -0
  91. /liberty/{setup → framework/setup}/models/__init__.py +0 -0
  92. /liberty/{setup → framework/setup}/models/liberty.py +0 -0
  93. /liberty/{setup → framework/setup}/models/nomasx1.py +0 -0
  94. /liberty/{utils → framework/setup/services}/__init__.py +0 -0
  95. /liberty/{utils → framework/utils}/common.py +0 -0
  96. /liberty/{utils → framework/utils}/logs.py +0 -0
  97. /liberty/{utils → framework/utils}/test.py +0 -0
  98. /liberty_framework-6.0.65.dist-info/LICENSE → /liberty_framework-6.0.67.dist-info/LICENSE.md +0 -0
  99. {liberty_framework-6.0.65.dist-info → liberty_framework-6.0.67.dist-info}/WHEEL +0 -0
  100. {liberty_framework-6.0.65.dist-info → liberty_framework-6.0.67.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: