dmart 1.4.32__py3-none-any.whl → 1.4.35__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 (179) hide show
  1. {dmart_migrations → alembic}/env.py +3 -12
  2. bundler.py +0 -3
  3. {dmart-1.4.32.dist-info → dmart-1.4.35.dist-info}/METADATA +2 -4
  4. dmart-1.4.35.dist-info/RECORD +264 -0
  5. {dmart-1.4.32.dist-info → dmart-1.4.35.dist-info}/top_level.txt +2 -1
  6. dmart.py +47 -102
  7. main.py +4 -1
  8. pytests/api_user_models_erros_test.py +16 -0
  9. pytests/api_user_models_requests_test.py +98 -0
  10. pytests/archive_test.py +72 -0
  11. pytests/base_test.py +300 -0
  12. pytests/get_settings_test.py +14 -0
  13. pytests/json_to_db_migration_test.py +237 -0
  14. pytests/service_test.py +26 -0
  15. pytests/test_info.py +55 -0
  16. pytests/test_status.py +15 -0
  17. dmart-1.4.32.dist-info/RECORD +0 -278
  18. dmart_migrations/README +0 -1
  19. dmart_migrations/__pycache__/__init__.cpython-314.pyc +0 -0
  20. dmart_migrations/__pycache__/env.cpython-314.pyc +0 -0
  21. dmart_migrations/alembic.ini +0 -117
  22. dmart_migrations/notes.txt +0 -11
  23. dmart_migrations/script.py.mako +0 -28
  24. dmart_migrations/versions/__pycache__/0f3d2b1a7c21_add_authz_materialized_views.cpython-314.pyc +0 -0
  25. dmart_migrations/versions/__pycache__/10d2041b94d4_last_checksum_history.cpython-314.pyc +0 -0
  26. dmart_migrations/versions/__pycache__/1cf4e1ee3cb8_ext_permission_with_filter_fields_values.cpython-314.pyc +0 -0
  27. dmart_migrations/versions/__pycache__/26bfe19b49d4_rm_failedloginattempts.cpython-314.pyc +0 -0
  28. dmart_migrations/versions/__pycache__/3c8bca2219cc_add_otp_table.cpython-314.pyc +0 -0
  29. dmart_migrations/versions/__pycache__/6675fd9dfe42_remove_unique_from_sessions_table.cpython-314.pyc +0 -0
  30. dmart_migrations/versions/__pycache__/71bc1df82e6a_adding_user_last_login_at.cpython-314.pyc +0 -0
  31. dmart_migrations/versions/__pycache__/74288ccbd3b5_initial.cpython-314.pyc +0 -0
  32. dmart_migrations/versions/__pycache__/7520a89a8467_rm_activesession_table.cpython-314.pyc +0 -0
  33. dmart_migrations/versions/__pycache__/848b623755a4_make_created_nd_updated_at_required.cpython-314.pyc +0 -0
  34. dmart_migrations/versions/__pycache__/8640dcbebf85_add_notes_to_users.cpython-314.pyc +0 -0
  35. dmart_migrations/versions/__pycache__/91c94250232a_adding_fk_on_owner_shortname.cpython-314.pyc +0 -0
  36. dmart_migrations/versions/__pycache__/98ecd6f56f9a_ext_meta_with_owner_group_shortname.cpython-314.pyc +0 -0
  37. dmart_migrations/versions/__pycache__/9aae9138c4ef_indexing_created_at_updated_at.cpython-314.pyc +0 -0
  38. dmart_migrations/versions/__pycache__/b53f916b3f6d_json_to_jsonb.cpython-314.pyc +0 -0
  39. dmart_migrations/versions/__pycache__/eb5f1ec65156_adding_user_locked_to_device.cpython-314.pyc +0 -0
  40. dmart_migrations/versions/__pycache__/f7a4949eed19_adding_query_policies_to_meta.cpython-314.pyc +0 -0
  41. {cxb/client → alembic}/__init__.py +0 -0
  42. {dmart_migrations → alembic/scripts}/__init__.py +0 -0
  43. {dmart_migrations → alembic}/scripts/calculate_checksums.py +0 -0
  44. {dmart_migrations → alembic}/scripts/migration_f7a4949eed19.py +0 -0
  45. {dmart_migrations → alembic}/versions/0f3d2b1a7c21_add_authz_materialized_views.py +0 -0
  46. {dmart_migrations → alembic}/versions/10d2041b94d4_last_checksum_history.py +0 -0
  47. {dmart_migrations → alembic}/versions/1cf4e1ee3cb8_ext_permission_with_filter_fields_values.py +0 -0
  48. {dmart_migrations → alembic}/versions/26bfe19b49d4_rm_failedloginattempts.py +0 -0
  49. {dmart_migrations → alembic}/versions/3c8bca2219cc_add_otp_table.py +0 -0
  50. {dmart_migrations → alembic}/versions/6675fd9dfe42_remove_unique_from_sessions_table.py +0 -0
  51. {dmart_migrations → alembic}/versions/71bc1df82e6a_adding_user_last_login_at.py +0 -0
  52. {dmart_migrations → alembic}/versions/74288ccbd3b5_initial.py +0 -0
  53. {dmart_migrations → alembic}/versions/7520a89a8467_rm_activesession_table.py +0 -0
  54. {dmart_migrations → alembic}/versions/848b623755a4_make_created_nd_updated_at_required.py +0 -0
  55. {dmart_migrations → alembic}/versions/8640dcbebf85_add_notes_to_users.py +0 -0
  56. {dmart_migrations → alembic}/versions/91c94250232a_adding_fk_on_owner_shortname.py +0 -0
  57. {dmart_migrations → alembic}/versions/98ecd6f56f9a_ext_meta_with_owner_group_shortname.py +0 -0
  58. {dmart_migrations → alembic}/versions/9aae9138c4ef_indexing_created_at_updated_at.py +0 -0
  59. {dmart_migrations/scripts → alembic/versions}/__init__.py +0 -0
  60. {dmart_migrations → alembic}/versions/b53f916b3f6d_json_to_jsonb.py +0 -0
  61. {dmart_migrations → alembic}/versions/eb5f1ec65156_adding_user_locked_to_device.py +0 -0
  62. {dmart_migrations → alembic}/versions/f7a4949eed19_adding_query_policies_to_meta.py +0 -0
  63. /cxb/{client/assets → assets}/@codemirror-Rn7_6DkE.js +0 -0
  64. /cxb/{client/assets → assets}/@edraj-CS4NwVbD.js +0 -0
  65. /cxb/{client/assets → assets}/@floating-ui-BwwcF-xh.js +0 -0
  66. /cxb/{client/assets → assets}/@formatjs-yKEsAtjs.js +0 -0
  67. /cxb/{client/assets → assets}/@fortawesome-DRW1UCdr.js +0 -0
  68. /cxb/{client/assets → assets}/@jsonquerylang-laKNoFFq.js +0 -0
  69. /cxb/{client/assets → assets}/@lezer-za4Q-8Ew.js +0 -0
  70. /cxb/{client/assets → assets}/@marijn-DXwl3gUT.js +0 -0
  71. /cxb/{client/assets → assets}/@popperjs-l0sNRNKZ.js +0 -0
  72. /cxb/{client/assets → assets}/@replit--ERk53eB.js +0 -0
  73. /cxb/{client/assets → assets}/@roxi-CGMFK4i8.js +0 -0
  74. /cxb/{client/assets → assets}/@typewriter-cCzskkIv.js +0 -0
  75. /cxb/{client/assets → assets}/@zerodevx-BlBZjKxu.js +0 -0
  76. /cxb/{client/assets → assets}/@zerodevx-CVEpe6WZ.css +0 -0
  77. /cxb/{client/assets → assets}/BreadCrumbLite-DAhOx38v.js +0 -0
  78. /cxb/{client/assets → assets}/EntryRenderer-25YDhRen.js +0 -0
  79. /cxb/{client/assets → assets}/EntryRenderer-DXytdFp9.css +0 -0
  80. /cxb/{client/assets → assets}/ListView-BpAycA2h.js +0 -0
  81. /cxb/{client/assets → assets}/ListView-U8of-_c-.css +0 -0
  82. /cxb/{client/assets → assets}/Prism--hMplq-p.js +0 -0
  83. /cxb/{client/assets → assets}/Prism-Uh6uStUw.css +0 -0
  84. /cxb/{client/assets → assets}/Table2Cols-BsbwicQm.js +0 -0
  85. /cxb/{client/assets → assets}/_..-BvT6vdHa.css +0 -0
  86. /cxb/{client/assets → assets}/_...404_-fuLH_rX9.js +0 -0
  87. /cxb/{client/assets → assets}/_...fallback_-Ba_NLmAE.js +0 -0
  88. /cxb/{client/assets → assets}/_module-Bfk8MiCs.js +0 -0
  89. /cxb/{client/assets → assets}/_module-CEW0D5oI.js +0 -0
  90. /cxb/{client/assets → assets}/_module-Dgq0ZVtz.js +0 -0
  91. /cxb/{client/assets → assets}/ajv-Cpj98o6Y.js +0 -0
  92. /cxb/{client/assets → assets}/axios-CG2WSiiR.js +0 -0
  93. /cxb/{client/assets → assets}/clsx-B-dksMZM.js +0 -0
  94. /cxb/{client/assets → assets}/codemirror-wrapped-line-indent-DPhKvljI.js +0 -0
  95. /cxb/{client/assets → assets}/compare-C3AjiGFR.js +0 -0
  96. /cxb/{client/assets → assets}/compute-scroll-into-view-Bl8rNFhg.js +0 -0
  97. /cxb/{client/assets → assets}/consolite-DlCuI0F9.js +0 -0
  98. /cxb/{client/assets → assets}/crelt-C8TCjufn.js +0 -0
  99. /cxb/{client/assets → assets}/date-fns-l0sNRNKZ.js +0 -0
  100. /cxb/{client/assets → assets}/deepmerge-rn4rBaHU.js +0 -0
  101. /cxb/{client/assets → assets}/dmart_services-AL6-IdDE.js +0 -0
  102. /cxb/{client/assets → assets}/downloadFile-D08i0YDh.js +0 -0
  103. /cxb/{client/assets → assets}/easy-signal-BiPFIK3O.js +0 -0
  104. /cxb/{client/assets → assets}/esm-env-rsSWfq8L.js +0 -0
  105. /cxb/{client/assets → assets}/export-OF_rTiXu.js +0 -0
  106. /cxb/{client/assets → assets}/fast-deep-equal-l0sNRNKZ.js +0 -0
  107. /cxb/{client/assets → assets}/fast-diff-C-IidNf4.js +0 -0
  108. /cxb/{client/assets → assets}/fast-uri-l0sNRNKZ.js +0 -0
  109. /cxb/{client/assets → assets}/flowbite-svelte-BLvjb-sa.js +0 -0
  110. /cxb/{client/assets → assets}/flowbite-svelte-CD54FDqW.css +0 -0
  111. /cxb/{client/assets → assets}/flowbite-svelte-icons-BI8GVhw_.js +0 -0
  112. /cxb/{client/assets → assets}/github-slugger-CQ4oX9Ud.js +0 -0
  113. /cxb/{client/assets → assets}/global-igKv-1g9.js +0 -0
  114. /cxb/{client/assets → assets}/hookar-BMRD9G9H.js +0 -0
  115. /cxb/{client/assets → assets}/immutable-json-patch-DtRO2E_S.js +0 -0
  116. /cxb/{client/assets → assets}/import-1vE3gBat.js +0 -0
  117. /cxb/{client/assets → assets}/index-B-eTh-ZX.js +0 -0
  118. /cxb/{client/assets → assets}/index-BVyxzKtH.js +0 -0
  119. /cxb/{client/assets → assets}/index-BdeNM69f.js +0 -0
  120. /cxb/{client/assets → assets}/index-C6cPO4op.js +0 -0
  121. /cxb/{client/assets → assets}/index-CC-A1ipE.js +0 -0
  122. /cxb/{client/assets → assets}/index-CTxJ-lDp.js +0 -0
  123. /cxb/{client/assets → assets}/index-Cd-F5j_k.js +0 -0
  124. /cxb/{client/assets → assets}/index-D742rwaM.js +0 -0
  125. /cxb/{client/assets → assets}/index-DTfhnhwd.js +0 -0
  126. /cxb/{client/assets → assets}/index-DdXRK7n9.js +0 -0
  127. /cxb/{client/assets → assets}/index-DtiCmB4o.js +0 -0
  128. /cxb/{client/assets → assets}/index-NBrXBlLA.css +0 -0
  129. /cxb/{client/assets → assets}/index-ac-Buu_H.js +0 -0
  130. /cxb/{client/assets → assets}/index-iYkH7C67.js +0 -0
  131. /cxb/{client/assets → assets}/info-B986lRiM.js +0 -0
  132. /cxb/{client/assets → assets}/intl-messageformat-Dc5UU-HB.js +0 -0
  133. /cxb/{client/assets → assets}/jmespath-l0sNRNKZ.js +0 -0
  134. /cxb/{client/assets → assets}/json-schema-traverse-l0sNRNKZ.js +0 -0
  135. /cxb/{client/assets → assets}/json-source-map-DRgZidqy.js +0 -0
  136. /cxb/{client/assets → assets}/jsonpath-plus-l0sNRNKZ.js +0 -0
  137. /cxb/{client/assets → assets}/jsonrepair-B30Dx381.js +0 -0
  138. /cxb/{client/assets → assets}/lodash-es-DZVAA2ox.js +0 -0
  139. /cxb/{client/assets → assets}/marked-DKjyhwJX.js +0 -0
  140. /cxb/{client/assets → assets}/marked-gfm-heading-id-U5zO829x.js +0 -0
  141. /cxb/{client/assets → assets}/marked-mangle-CDMeiHC6.js +0 -0
  142. /cxb/{client/assets → assets}/memoize-one-BdPwpGay.js +0 -0
  143. /cxb/{client/assets → assets}/natural-compare-lite-Bg2Xcf-o.js +0 -0
  144. /cxb/{client/assets → assets}/pagination-svelte-D5CyoiE_.js +0 -0
  145. /cxb/{client/assets → assets}/pagination-svelte-v10nAbbM.css +0 -0
  146. /cxb/{client/assets → assets}/plantuml-encoder-C47mzt9T.js +0 -0
  147. /cxb/{client/assets → assets}/prismjs-DTUiLGJu.js +0 -0
  148. /cxb/{client/assets → assets}/profile-BUf-tKMe.js +0 -0
  149. /cxb/{client/assets → assets}/query-CNmXTsgf.js +0 -0
  150. /cxb/{client/assets → assets}/queryHelpers-C9iBWwqe.js +0 -0
  151. /cxb/{client/assets → assets}/scroll-into-view-if-needed-KR58zyjF.js +0 -0
  152. /cxb/{client/assets → assets}/spaces-0oyGvpii.js +0 -0
  153. /cxb/{client/assets → assets}/style-mod-Bs6eFhZE.js +0 -0
  154. /cxb/{client/assets → assets}/svelte-B2XmcTi_.js +0 -0
  155. /cxb/{client/assets → assets}/svelte-awesome-COLlx0DN.css +0 -0
  156. /cxb/{client/assets → assets}/svelte-awesome-DhnMA6Q_.js +0 -0
  157. /cxb/{client/assets → assets}/svelte-datatables-net-CY7LBj6I.js +0 -0
  158. /cxb/{client/assets → assets}/svelte-floating-ui-BlS3sOAQ.js +0 -0
  159. /cxb/{client/assets → assets}/svelte-i18n-CT2KkQaN.js +0 -0
  160. /cxb/{client/assets → assets}/svelte-jsoneditor-BzfX6Usi.css +0 -0
  161. /cxb/{client/assets → assets}/svelte-jsoneditor-CUGSvWId.js +0 -0
  162. /cxb/{client/assets → assets}/svelte-select-CegQKzqH.css +0 -0
  163. /cxb/{client/assets → assets}/svelte-select-CjHAt_85.js +0 -0
  164. /cxb/{client/assets → assets}/tailwind-merge-CJvxXMcu.js +0 -0
  165. /cxb/{client/assets → assets}/tailwind-variants-Cj20BoQ3.js +0 -0
  166. /cxb/{client/assets → assets}/toast-B9WDyfyI.js +0 -0
  167. /cxb/{client/assets → assets}/tslib-pJfR_DrR.js +0 -0
  168. /cxb/{client/assets → assets}/typewriter-editor-DkTVIJdm.js +0 -0
  169. /cxb/{client/assets → assets}/user-DeK_NB5v.js +0 -0
  170. /cxb/{client/assets → assets}/vanilla-picker-l5rcX3cq.js +0 -0
  171. /cxb/{client/assets → assets}/w3c-keyname-Vcq4gwWv.js +0 -0
  172. /cxb/{client/config.json → config.json} +0 -0
  173. /cxb/{client/config.sample.json → config.sample.json} +0 -0
  174. /cxb/{client/favicon.ico → favicon.ico} +0 -0
  175. /cxb/{client/favicon.png → favicon.png} +0 -0
  176. /cxb/{client/index.html → index.html} +0 -0
  177. {dmart-1.4.32.dist-info → dmart-1.4.35.dist-info}/WHEEL +0 -0
  178. {dmart-1.4.32.dist-info → dmart-1.4.35.dist-info}/entry_points.txt +0 -0
  179. {dmart_migrations/versions → pytests}/__init__.py +0 -0
@@ -1,117 +0,0 @@
1
- # A generic, single database configuration.
2
-
3
- [alembic]
4
- # path to migration scripts
5
- # Use forward slashes (/) also on windows to provide an os agnostic path
6
- script_location = dmart_migrations
7
-
8
- # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
9
- # Uncomment the line below if you want the files to be prepended with date and time
10
- # see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file
11
- # for all available tokens
12
- # file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
13
-
14
- # sys.path path, will be prepended to sys.path if present.
15
- # defaults to the current working directory.
16
- prepend_sys_path = .
17
-
18
- # timezone to use when rendering the date within the migration file
19
- # as well as the filename.
20
- # If specified, requires the python>=3.9 or backports.zoneinfo library.
21
- # Any required deps can installed by adding `alembic[tz]` to the pip requirements
22
- # string value is passed to ZoneInfo()
23
- # leave blank for localtime
24
- # timezone =
25
-
26
- # max length of characters to apply to the "slug" field
27
- # truncate_slug_length = 40
28
-
29
- # set to 'true' to run the environment during
30
- # the 'revision' command, regardless of autogenerate
31
- # revision_environment = false
32
-
33
- # set to 'true' to allow .pyc and .pyo files without
34
- # a source .py file to be detected as revisions in the
35
- # versions/ directory
36
- # sourceless = false
37
-
38
- # version location specification; This defaults
39
- # to alembic/versions. When using multiple version
40
- # directories, initial revisions must be specified with --version-path.
41
- # The path separator used here should be the separator specified by "version_path_separator" below.
42
- # version_locations = %(here)s/bar:%(here)s/bat:alembic/versions
43
-
44
- # version path separator; As mentioned above, this is the character used to split
45
- # version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
46
- # If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas.
47
- # Valid values for version_path_separator are:
48
- #
49
- # version_path_separator = :
50
- # version_path_separator = ;
51
- # version_path_separator = space
52
- # version_path_separator = newline
53
- version_path_separator = os # Use os.pathsep. Default configuration used for new projects.
54
-
55
- # set to 'true' to search source files recursively
56
- # in each "version_locations" directory
57
- # new in Alembic version 1.10
58
- # recursive_version_locations = false
59
-
60
- # the output encoding used when revision files
61
- # are written from script.py.mako
62
- # output_encoding = utf-8
63
-
64
- sqlalchemy.url = postgresql+asyncpg://dmart:somepassword@localhost:5432/dmart
65
-
66
-
67
- [post_write_hooks]
68
- # post_write_hooks defines scripts or Python functions that are run
69
- # on newly generated revision scripts. See the documentation for further
70
- # detail and examples
71
-
72
- # format using "black" - use the console_scripts runner, against the "black" entrypoint
73
- # hooks = black
74
- # black.type = console_scripts
75
- # black.entrypoint = black
76
- # black.options = -l 79 REVISION_SCRIPT_FILENAME
77
-
78
- # lint with attempts to fix using "ruff" - use the exec runner, execute a binary
79
- # hooks = ruff
80
- # ruff.type = exec
81
- # ruff.executable = %(here)s/.venv/bin/ruff
82
- # ruff.options = --fix REVISION_SCRIPT_FILENAME
83
-
84
- # Logging configuration
85
- [loggers]
86
- keys = root,sqlalchemy,alembic
87
-
88
- [handlers]
89
- keys = console
90
-
91
- [formatters]
92
- keys = generic
93
-
94
- [logger_root]
95
- level = WARNING
96
- handlers = console
97
- qualname =
98
-
99
- [logger_sqlalchemy]
100
- level = WARNING
101
- handlers =
102
- qualname = sqlalchemy.engine
103
-
104
- [logger_alembic]
105
- level = INFO
106
- handlers =
107
- qualname = alembic
108
-
109
- [handler_console]
110
- class = StreamHandler
111
- args = (sys.stderr,)
112
- level = NOTSET
113
- formatter = generic
114
-
115
- [formatter_generic]
116
- format = %(levelname)-5.5s [%(name)s] %(message)s
117
- datefmt = %H:%M:%S
@@ -1,11 +0,0 @@
1
- # 1st : Make sure in alembic.ini to have proper db config for sqlalchemy.url
2
-
3
-
4
- # To establish the base for a previously created database run the following
5
-
6
- CREATE TABLE alembic_version (
7
- version_num VARCHAR(32) NOT NULL,
8
- CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
9
- );
10
-
11
- INSERT INTO alembic_version (version_num) VALUES ('74288ccbd3b5') RETURNING alembic_version.version_num;
@@ -1,28 +0,0 @@
1
- """${message}
2
-
3
- Revision ID: ${up_revision}
4
- Revises: ${down_revision | comma,n}
5
- Create Date: ${create_date}
6
-
7
- """
8
- from typing import Sequence, Union
9
-
10
- from alembic import op
11
- import sqlalchemy as sa
12
- import sqlmodel
13
- import sqlmodel.sql.sqltypes
14
- ${imports if imports else ""}
15
-
16
- # revision identifiers, used by Alembic.
17
- revision: str = ${repr(up_revision)}
18
- down_revision: Union[str, None] = ${repr(down_revision)}
19
- branch_labels: Union[str, Sequence[str], None] = ${repr(branch_labels)}
20
- depends_on: Union[str, Sequence[str], None] = ${repr(depends_on)}
21
-
22
-
23
- def upgrade() -> None:
24
- ${upgrades if upgrades else "pass"}
25
-
26
-
27
- def downgrade() -> None:
28
- ${downgrades if downgrades else "pass"}
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