dmart 0.1.8__tar.gz → 0.1.10__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 (172) hide show
  1. {dmart-0.1.8/dmart.egg-info → dmart-0.1.10}/PKG-INFO +1 -1
  2. {dmart-0.1.8 → dmart-0.1.10/dmart.egg-info}/PKG-INFO +1 -1
  3. {dmart-0.1.8 → dmart-0.1.10}/run_notification_campaign.py +3 -16
  4. {dmart-0.1.8 → dmart-0.1.10}/schema_modulate.py +1 -1
  5. {dmart-0.1.8 → dmart-0.1.10}/setup.py +1 -1
  6. {dmart-0.1.8 → dmart-0.1.10}/utils/plugin_manager.py +3 -16
  7. {dmart-0.1.8 → dmart-0.1.10}/.ruff.toml +0 -0
  8. {dmart-0.1.8 → dmart-0.1.10}/MANIFEST.in +0 -0
  9. {dmart-0.1.8 → dmart-0.1.10}/alembic/__init__.py +0 -0
  10. {dmart-0.1.8 → dmart-0.1.10}/alembic/env.py +0 -0
  11. {dmart-0.1.8 → dmart-0.1.10}/alembic/scripts/__init__.py +0 -0
  12. {dmart-0.1.8 → dmart-0.1.10}/alembic/scripts/calculate_checksums.py +0 -0
  13. {dmart-0.1.8 → dmart-0.1.10}/alembic/scripts/migration_f7a4949eed19.py +0 -0
  14. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/0f3d2b1a7c21_add_authz_materialized_views.py +0 -0
  15. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/10d2041b94d4_last_checksum_history.py +0 -0
  16. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/1cf4e1ee3cb8_ext_permission_with_filter_fields_values.py +0 -0
  17. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/26bfe19b49d4_rm_failedloginattempts.py +0 -0
  18. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/3c8bca2219cc_add_otp_table.py +0 -0
  19. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/6675fd9dfe42_remove_unique_from_sessions_table.py +0 -0
  20. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/71bc1df82e6a_adding_user_last_login_at.py +0 -0
  21. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/74288ccbd3b5_initial.py +0 -0
  22. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/7520a89a8467_rm_activesession_table.py +0 -0
  23. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/848b623755a4_make_created_nd_updated_at_required.py +0 -0
  24. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/8640dcbebf85_add_notes_to_users.py +0 -0
  25. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/91c94250232a_adding_fk_on_owner_shortname.py +0 -0
  26. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/98ecd6f56f9a_ext_meta_with_owner_group_shortname.py +0 -0
  27. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/9aae9138c4ef_indexing_created_at_updated_at.py +0 -0
  28. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/__init__.py +0 -0
  29. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/b53f916b3f6d_json_to_jsonb.py +0 -0
  30. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/eb5f1ec65156_adding_user_locked_to_device.py +0 -0
  31. {dmart-0.1.8 → dmart-0.1.10}/alembic/versions/f7a4949eed19_adding_query_policies_to_meta.py +0 -0
  32. {dmart-0.1.8 → dmart-0.1.10}/api/__init__.py +0 -0
  33. {dmart-0.1.8 → dmart-0.1.10}/api/info/__init__.py +0 -0
  34. {dmart-0.1.8 → dmart-0.1.10}/api/info/router.py +0 -0
  35. {dmart-0.1.8 → dmart-0.1.10}/api/managed/__init__.py +0 -0
  36. {dmart-0.1.8 → dmart-0.1.10}/api/managed/router.py +0 -0
  37. {dmart-0.1.8 → dmart-0.1.10}/api/managed/utils.py +0 -0
  38. {dmart-0.1.8 → dmart-0.1.10}/api/public/__init__.py +0 -0
  39. {dmart-0.1.8 → dmart-0.1.10}/api/public/router.py +0 -0
  40. {dmart-0.1.8 → dmart-0.1.10}/api/qr/__init__.py +0 -0
  41. {dmart-0.1.8 → dmart-0.1.10}/api/qr/router.py +0 -0
  42. {dmart-0.1.8 → dmart-0.1.10}/api/user/__init__.py +0 -0
  43. {dmart-0.1.8 → dmart-0.1.10}/api/user/model/__init__.py +0 -0
  44. {dmart-0.1.8 → dmart-0.1.10}/api/user/model/errors.py +0 -0
  45. {dmart-0.1.8 → dmart-0.1.10}/api/user/model/requests.py +0 -0
  46. {dmart-0.1.8 → dmart-0.1.10}/api/user/model/responses.py +0 -0
  47. {dmart-0.1.8 → dmart-0.1.10}/api/user/router.py +0 -0
  48. {dmart-0.1.8 → dmart-0.1.10}/api/user/service.py +0 -0
  49. {dmart-0.1.8 → dmart-0.1.10}/bundler.py +0 -0
  50. {dmart-0.1.8 → dmart-0.1.10}/config/__init__.py +0 -0
  51. {dmart-0.1.8 → dmart-0.1.10}/config/channels.json +0 -0
  52. {dmart-0.1.8 → dmart-0.1.10}/config/notification.json +0 -0
  53. {dmart-0.1.8 → dmart-0.1.10}/config.env.sample +0 -0
  54. {dmart-0.1.8 → dmart-0.1.10}/curl.sh +0 -0
  55. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/__init__.py +0 -0
  56. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/adapter.py +0 -0
  57. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/base_data_adapter.py +0 -0
  58. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/__init__.py +0 -0
  59. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/adapter.py +0 -0
  60. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/adapter_helpers.py +0 -0
  61. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/archive.py +0 -0
  62. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/create_index.py +0 -0
  63. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/create_users_folders.py +0 -0
  64. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/custom_validations.py +0 -0
  65. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/drop_index.py +0 -0
  66. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/health_check.py +0 -0
  67. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/file/redis_services.py +0 -0
  68. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/helpers.py +0 -0
  69. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/__init__.py +0 -0
  70. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/adapter.py +0 -0
  71. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/adapter_helpers.py +0 -0
  72. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/create_tables.py +0 -0
  73. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/create_users_folders.py +0 -0
  74. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/db_to_json_migration.py +0 -0
  75. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/health_check_sql.py +0 -0
  76. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/json_to_db_migration.py +0 -0
  77. {dmart-0.1.8 → dmart-0.1.10}/data_adapters/sql/update_query_policies.py +0 -0
  78. {dmart-0.1.8 → dmart-0.1.10}/data_generator.py +0 -0
  79. {dmart-0.1.8 → dmart-0.1.10}/dmart.egg-info/SOURCES.txt +0 -0
  80. {dmart-0.1.8 → dmart-0.1.10}/dmart.egg-info/dependency_links.txt +0 -0
  81. {dmart-0.1.8 → dmart-0.1.10}/dmart.egg-info/entry_points.txt +0 -0
  82. {dmart-0.1.8 → dmart-0.1.10}/dmart.egg-info/requires.txt +0 -0
  83. {dmart-0.1.8 → dmart-0.1.10}/dmart.egg-info/top_level.txt +0 -0
  84. {dmart-0.1.8 → dmart-0.1.10}/dmart.py +0 -0
  85. {dmart-0.1.8 → dmart-0.1.10}/get_settings.py +0 -0
  86. {dmart-0.1.8 → dmart-0.1.10}/hypercorn_config.toml +0 -0
  87. {dmart-0.1.8 → dmart-0.1.10}/info.json +0 -0
  88. {dmart-0.1.8 → dmart-0.1.10}/languages/__init__.py +0 -0
  89. {dmart-0.1.8 → dmart-0.1.10}/languages/arabic.json +0 -0
  90. {dmart-0.1.8 → dmart-0.1.10}/languages/english.json +0 -0
  91. {dmart-0.1.8 → dmart-0.1.10}/languages/kurdish.json +0 -0
  92. {dmart-0.1.8 → dmart-0.1.10}/languages/loader.py +0 -0
  93. {dmart-0.1.8 → dmart-0.1.10}/login_creds.sh +0 -0
  94. {dmart-0.1.8 → dmart-0.1.10}/login_creds.sh.sample +0 -0
  95. {dmart-0.1.8 → dmart-0.1.10}/main.py +0 -0
  96. {dmart-0.1.8 → dmart-0.1.10}/manifest.sh +0 -0
  97. {dmart-0.1.8 → dmart-0.1.10}/migrate.py +0 -0
  98. {dmart-0.1.8 → dmart-0.1.10}/models/__init__.py +0 -0
  99. {dmart-0.1.8 → dmart-0.1.10}/models/api.py +0 -0
  100. {dmart-0.1.8 → dmart-0.1.10}/models/core.py +0 -0
  101. {dmart-0.1.8 → dmart-0.1.10}/models/enums.py +0 -0
  102. {dmart-0.1.8 → dmart-0.1.10}/password_gen.py +0 -0
  103. {dmart-0.1.8 → dmart-0.1.10}/plugins/__init__.py +0 -0
  104. {dmart-0.1.8 → dmart-0.1.10}/plugins/action_log/__init__.py +0 -0
  105. {dmart-0.1.8 → dmart-0.1.10}/plugins/action_log/plugin.py +0 -0
  106. {dmart-0.1.8 → dmart-0.1.10}/plugins/admin_notification_sender/__init__.py +0 -0
  107. {dmart-0.1.8 → dmart-0.1.10}/plugins/admin_notification_sender/plugin.py +0 -0
  108. {dmart-0.1.8 → dmart-0.1.10}/plugins/ldap_manager/__init__.py +0 -0
  109. {dmart-0.1.8 → dmart-0.1.10}/plugins/ldap_manager/plugin.py +0 -0
  110. {dmart-0.1.8 → dmart-0.1.10}/plugins/local_notification/__init__.py +0 -0
  111. {dmart-0.1.8 → dmart-0.1.10}/plugins/local_notification/plugin.py +0 -0
  112. {dmart-0.1.8 → dmart-0.1.10}/plugins/realtime_updates_notifier/__init__.py +0 -0
  113. {dmart-0.1.8 → dmart-0.1.10}/plugins/realtime_updates_notifier/plugin.py +0 -0
  114. {dmart-0.1.8 → dmart-0.1.10}/plugins/redis_db_update/__init__.py +0 -0
  115. {dmart-0.1.8 → dmart-0.1.10}/plugins/redis_db_update/plugin.py +0 -0
  116. {dmart-0.1.8 → dmart-0.1.10}/plugins/resource_folders_creation/__init__.py +0 -0
  117. {dmart-0.1.8 → dmart-0.1.10}/plugins/resource_folders_creation/plugin.py +0 -0
  118. {dmart-0.1.8 → dmart-0.1.10}/plugins/system_notification_sender/__init__.py +0 -0
  119. {dmart-0.1.8 → dmart-0.1.10}/plugins/system_notification_sender/plugin.py +0 -0
  120. {dmart-0.1.8 → dmart-0.1.10}/plugins/update_access_controls/__init__.py +0 -0
  121. {dmart-0.1.8 → dmart-0.1.10}/plugins/update_access_controls/plugin.py +0 -0
  122. {dmart-0.1.8 → dmart-0.1.10}/publish.sh +0 -0
  123. {dmart-0.1.8 → dmart-0.1.10}/pylint.sh +0 -0
  124. {dmart-0.1.8 → dmart-0.1.10}/pyrightconfig.json +0 -0
  125. {dmart-0.1.8 → dmart-0.1.10}/pytests/__init__.py +0 -0
  126. {dmart-0.1.8 → dmart-0.1.10}/pytests/api_user_models_erros_test.py +0 -0
  127. {dmart-0.1.8 → dmart-0.1.10}/pytests/api_user_models_requests_test.py +0 -0
  128. {dmart-0.1.8 → dmart-0.1.10}/pytests/archive_test.py +0 -0
  129. {dmart-0.1.8 → dmart-0.1.10}/pytests/base_test.py +0 -0
  130. {dmart-0.1.8 → dmart-0.1.10}/pytests/get_settings_test.py +0 -0
  131. {dmart-0.1.8 → dmart-0.1.10}/pytests/json_to_db_migration_test.py +0 -0
  132. {dmart-0.1.8 → dmart-0.1.10}/pytests/service_test.py +0 -0
  133. {dmart-0.1.8 → dmart-0.1.10}/pytests/test_info.py +0 -0
  134. {dmart-0.1.8 → dmart-0.1.10}/pytests/test_status.py +0 -0
  135. {dmart-0.1.8 → dmart-0.1.10}/redis_connections.sh +0 -0
  136. {dmart-0.1.8 → dmart-0.1.10}/reload.sh +0 -0
  137. {dmart-0.1.8 → dmart-0.1.10}/requirements/core.txt +0 -0
  138. {dmart-0.1.8 → dmart-0.1.10}/requirements/extra.txt +0 -0
  139. {dmart-0.1.8 → dmart-0.1.10}/requirements/plugins.txt +0 -0
  140. {dmart-0.1.8 → dmart-0.1.10}/requirements/test.txt +0 -0
  141. {dmart-0.1.8 → dmart-0.1.10}/run.sh +0 -0
  142. {dmart-0.1.8 → dmart-0.1.10}/scheduled_notification_handler.py +0 -0
  143. {dmart-0.1.8 → dmart-0.1.10}/schema_migration.py +0 -0
  144. {dmart-0.1.8 → dmart-0.1.10}/set_admin_passwd.py +0 -0
  145. {dmart-0.1.8 → dmart-0.1.10}/setup.cfg +0 -0
  146. {dmart-0.1.8 → dmart-0.1.10}/sync.py +0 -0
  147. {dmart-0.1.8 → dmart-0.1.10}/utils/__init__.py +0 -0
  148. {dmart-0.1.8 → dmart-0.1.10}/utils/access_control.py +0 -0
  149. {dmart-0.1.8 → dmart-0.1.10}/utils/async_request.py +0 -0
  150. {dmart-0.1.8 → dmart-0.1.10}/utils/exporter.py +0 -0
  151. {dmart-0.1.8 → dmart-0.1.10}/utils/firebase_notifier.py +0 -0
  152. {dmart-0.1.8 → dmart-0.1.10}/utils/generate_email.py +0 -0
  153. {dmart-0.1.8 → dmart-0.1.10}/utils/helpers.py +0 -0
  154. {dmart-0.1.8 → dmart-0.1.10}/utils/hypercorn_config.py +0 -0
  155. {dmart-0.1.8 → dmart-0.1.10}/utils/internal_error_code.py +0 -0
  156. {dmart-0.1.8 → dmart-0.1.10}/utils/jwt.py +0 -0
  157. {dmart-0.1.8 → dmart-0.1.10}/utils/logger.py +0 -0
  158. {dmart-0.1.8 → dmart-0.1.10}/utils/middleware.py +0 -0
  159. {dmart-0.1.8 → dmart-0.1.10}/utils/notification.py +0 -0
  160. {dmart-0.1.8 → dmart-0.1.10}/utils/password_hashing.py +0 -0
  161. {dmart-0.1.8 → dmart-0.1.10}/utils/query_policies_helper.py +0 -0
  162. {dmart-0.1.8 → dmart-0.1.10}/utils/regex.py +0 -0
  163. {dmart-0.1.8 → dmart-0.1.10}/utils/repository.py +0 -0
  164. {dmart-0.1.8 → dmart-0.1.10}/utils/router_helper.py +0 -0
  165. {dmart-0.1.8 → dmart-0.1.10}/utils/settings.py +0 -0
  166. {dmart-0.1.8 → dmart-0.1.10}/utils/sms_notifier.py +0 -0
  167. {dmart-0.1.8 → dmart-0.1.10}/utils/social_sso.py +0 -0
  168. {dmart-0.1.8 → dmart-0.1.10}/utils/templates/activation.html.j2 +0 -0
  169. {dmart-0.1.8 → dmart-0.1.10}/utils/templates/reminder.html.j2 +0 -0
  170. {dmart-0.1.8 → dmart-0.1.10}/utils/ticket_sys_utils.py +0 -0
  171. {dmart-0.1.8 → dmart-0.1.10}/utils/web_notifier.py +0 -0
  172. {dmart-0.1.8 → dmart-0.1.10}/websocket.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dmart
3
- Version: 0.1.8
3
+ Version: 0.1.10
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: fastapi
6
6
  Requires-Dist: pydantic
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dmart
3
- Version: 0.1.8
3
+ Version: 0.1.10
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: fastapi
6
6
  Requires-Dist: pydantic
@@ -11,22 +11,9 @@ from utils.settings import settings
11
11
  CUSTOM_PLUGINS_PATH = settings.spaces_folder / "custom_plugins"
12
12
 
13
13
  # Allow python to search for modules inside the custom plugins
14
- # be including the path to the parent folder of the custom plugins to sys.path
15
- back_out_of_project = 2
16
- back_to_spaces = 0
17
-
18
- for part in CUSTOM_PLUGINS_PATH.parts:
19
- if part == "..":
20
- back_to_spaces += 1
21
-
22
- if __file__.endswith(".pyc"):
23
- back_out_of_project += 1
24
-
25
- sys.path.append(
26
- "/".join(__file__.split("/")[:-(back_out_of_project+back_to_spaces)]) +
27
- "/" +
28
- "/".join(CUSTOM_PLUGINS_PATH.parts[back_to_spaces:-1])
29
- )
14
+ # by including the path to the parent folder of the custom plugins to sys.path
15
+ if CUSTOM_PLUGINS_PATH.parent.exists():
16
+ sys.path.append(str(CUSTOM_PLUGINS_PATH.parent.resolve()))
30
17
 
31
18
  def load_notification_plugin():
32
19
  # Load the plugin module
@@ -4,7 +4,7 @@ from enum import StrEnum
4
4
 
5
5
  from sqlalchemy import update
6
6
  from typing import Any
7
- from .data_adapters.sql.adapter import SQLAdapter
7
+ from data_adapters.sql.adapter import SQLAdapter
8
8
  from data_adapters.sql.create_tables import Users, Roles, Permissions, Entries, Spaces, Attachments
9
9
  from utils.settings import settings
10
10
  import argparse
@@ -16,7 +16,7 @@ plugins_requires = parse_requirements('requirements/plugins.txt')
16
16
 
17
17
  setup(
18
18
  name="dmart",
19
- version="0.1.8",
19
+ version="0.1.10",
20
20
  packages=find_packages(),
21
21
  py_modules=["dmart", "main", "sync", "bundler", "migrate", "password_gen", "get_settings", "data_generator", "schema_modulate", "schema_migration", "set_admin_passwd", "run_notification_campaign", "scheduled_notification_handler", "websocket"],
22
22
  install_requires=install_requires,
@@ -21,22 +21,9 @@ from utils.settings import settings
21
21
  CUSTOM_PLUGINS_PATH = settings.spaces_folder / "custom_plugins"
22
22
 
23
23
  # Allow python to search for modules inside the custom plugins
24
- # be including the path to the parent folder of the custom plugins to sys.path
25
- back_out_of_project = 2
26
- back_to_spaces = 0
27
-
28
- for part in CUSTOM_PLUGINS_PATH.parts:
29
- if part == "..":
30
- back_to_spaces += 1
31
-
32
- if __file__.endswith(".pyc"):
33
- back_out_of_project += 1
34
-
35
- sys.path.append(
36
- "/".join(__file__.split("/")[:-(back_out_of_project+back_to_spaces)]) +
37
- "/" +
38
- "/".join(CUSTOM_PLUGINS_PATH.parts[back_to_spaces:-1])
39
- )
24
+ # by including the path to the parent folder of the custom plugins to sys.path
25
+ if CUSTOM_PLUGINS_PATH.parent.exists():
26
+ sys.path.append(str(CUSTOM_PLUGINS_PATH.parent.resolve()))
40
27
 
41
28
  class PluginManager:
42
29
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes