simple-module-file-storage 0.0.44__tar.gz → 0.0.45__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 (175) hide show
  1. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/PKG-INFO +6 -6
  2. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/models.py +1 -1
  3. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/package.json +1 -1
  4. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/pyproject.toml +6 -6
  5. simple_module_file_storage-0.0.45/tests/files/browse/test_file_storage_browse_index_columns.py +40 -0
  6. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/.gitignore +0 -0
  7. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/LICENSE +0 -0
  8. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/README.md +0 -0
  9. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/__init__.py +0 -0
  10. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/backends/__init__.py +0 -0
  11. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/backends/filesystem.py +0 -0
  12. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/backends/filesystem_multipart.py +0 -0
  13. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/backends/guard.py +0 -0
  14. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/backends/s3.py +0 -0
  15. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/backends/s3_multipart.py +0 -0
  16. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/backends/s3_put.py +0 -0
  17. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/contracts/__init__.py +0 -0
  18. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/contracts/events.py +0 -0
  19. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/contracts/schemas.py +0 -0
  20. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/contracts/service.py +0 -0
  21. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/__init__.py +0 -0
  22. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/audit_labels.py +0 -0
  23. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/constants.py +0 -0
  24. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/errors.py +0 -0
  25. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/format.py +0 -0
  26. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/health.py +0 -0
  27. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/object_reaper.py +0 -0
  28. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/scope.py +0 -0
  29. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/services.py +0 -0
  30. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/settings.py +0 -0
  31. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/tenant_cache.py +0 -0
  32. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/tenant_deletion.py +0 -0
  33. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/worker.py +0 -0
  34. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/core/worker_support.py +0 -0
  35. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/deps.py +0 -0
  36. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/downloads.py +0 -0
  37. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/__init__.py +0 -0
  38. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/aggregates.py +0 -0
  39. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/deletes.py +0 -0
  40. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/downloads.py +0 -0
  41. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/media_types.py +0 -0
  42. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/queries.py +0 -0
  43. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/ranges.py +0 -0
  44. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/reads.py +0 -0
  45. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/resolve.py +0 -0
  46. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/service.py +0 -0
  47. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/thumbnails.py +0 -0
  48. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/files/visibility.py +0 -0
  49. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/locales/de.json +0 -0
  50. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/locales/en.json +0 -0
  51. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/module.py +0 -0
  52. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/multipart/__init__.py +0 -0
  53. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/multipart/checksum.py +0 -0
  54. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/multipart/guards.py +0 -0
  55. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/multipart/sessions.py +0 -0
  56. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/multipart/support.py +0 -0
  57. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/pages/Browse.tsx +0 -0
  58. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/pages/api.generated.ts +0 -0
  59. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/pages/api.ts +0 -0
  60. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/py.typed +0 -0
  61. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/scope.py +0 -0
  62. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/service.py +0 -0
  63. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/settings.py +0 -0
  64. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/tasks.py +0 -0
  65. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/tenant_deletion.py +0 -0
  66. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/components/BrowseEmpty.tsx +0 -0
  67. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/components/DropzoneStrip.tsx +0 -0
  68. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/components/FileFilterBar.tsx +0 -0
  69. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/components/FileTable.tsx +0 -0
  70. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/components/SelectionFooter.tsx +0 -0
  71. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/components/UploadDropzone.tsx +0 -0
  72. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/components/UploadsCard.tsx +0 -0
  73. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/hooks/use-file-actions.ts +0 -0
  74. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/utils/constants.ts +0 -0
  75. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/utils/format.ts +0 -0
  76. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/utils/resumable-upload.ts +0 -0
  77. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/utils/resume-store.ts +0 -0
  78. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/utils/types.ts +0 -0
  79. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/utils/upload-errors.ts +0 -0
  80. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/ui/utils/upload-queue.ts +0 -0
  81. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/upload_support.py +0 -0
  82. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/__init__.py +0 -0
  83. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/body_limits.py +0 -0
  84. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/cookieless.py +0 -0
  85. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/cors.py +0 -0
  86. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/csp.py +0 -0
  87. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/deps.py +0 -0
  88. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/endpoints/__init__.py +0 -0
  89. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/endpoints/api.py +0 -0
  90. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/endpoints/public.py +0 -0
  91. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/endpoints/upload_errors.py +0 -0
  92. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/endpoints/uploads.py +0 -0
  93. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/endpoints/views.py +0 -0
  94. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/file_storage/web/serving.py +0 -0
  95. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/_file_storage_uploads_support.py +0 -0
  96. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/_file_storage_worker_support.py +0 -0
  97. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/backends/filesystem/test_file_storage_filesystem_backend.py +0 -0
  98. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/backends/filesystem/test_file_storage_filesystem_stale_objects.py +0 -0
  99. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/backends/filesystem/test_file_storage_upload_io.py +0 -0
  100. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/backends/registry/test_file_storage_backend_mismatch.py +0 -0
  101. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/backends/registry/test_file_storage_backend_registry.py +0 -0
  102. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/backends/s3/test_file_storage_s3_backend.py +0 -0
  103. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/conftest.py +0 -0
  104. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/format/test_file_storage_format.py +0 -0
  105. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/module/test_file_storage_menu_permission.py +0 -0
  106. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/module/test_file_storage_optional_ordering.py +0 -0
  107. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/module/test_file_storage_without_background_tasks.py +0 -0
  108. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/settings/test_file_storage_quota_setting.py +0 -0
  109. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/settings/test_file_storage_restart_settings.py +0 -0
  110. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/tenancy/test_file_storage_platform_scope.py +0 -0
  111. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/tenancy/test_file_storage_tenancy.py +0 -0
  112. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/tenancy/test_file_storage_tenancy_unbound.py +0 -0
  113. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/tenancy/test_file_storage_tenant_migration.py +0 -0
  114. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/tenant_deletion/test_file_storage_cleanup_chunks.py +0 -0
  115. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/tenant_deletion/test_file_storage_tenant_deletion.py +0 -0
  116. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/worker/test_file_storage_object_reaper.py +0 -0
  117. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/worker/test_file_storage_upload_tasks.py +0 -0
  118. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/worker/test_file_storage_worker.py +0 -0
  119. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/core/worker/test_file_storage_worker_failures.py +0 -0
  120. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/browse/test_file_storage_aggregates.py +0 -0
  121. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/browse/test_file_storage_browse_index.py +0 -0
  122. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/browse/test_file_storage_browse_props.py +0 -0
  123. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/browse/test_file_storage_browse_query_shape.py +0 -0
  124. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/browse/test_file_storage_filters.py +0 -0
  125. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/browse/test_file_storage_uploader_directory.py +0 -0
  126. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/browse/test_file_storage_uploader_filter.py +0 -0
  127. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/deletes/test_file_storage_bulk_delete.py +0 -0
  128. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/deletes/test_file_storage_delete_permission_modes.py +0 -0
  129. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/media/test_file_storage_media_types.py +0 -0
  130. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/media/test_file_storage_range_parse.py +0 -0
  131. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/media/test_file_storage_thumbnail_hardening.py +0 -0
  132. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/media/test_file_storage_thumbnail_session_release.py +0 -0
  133. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/media/test_file_storage_thumbnails.py +0 -0
  134. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/service/test_file_storage_commit_cleanup.py +0 -0
  135. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/service/test_file_storage_delete_variants.py +0 -0
  136. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/service/test_file_storage_owner_scope.py +0 -0
  137. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/service/test_file_storage_service.py +0 -0
  138. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/files/service/test_file_storage_timestamps.py +0 -0
  139. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/guards/test_file_storage_checksum_reconciliation.py +0 -0
  140. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/guards/test_file_storage_p3_scope_usage.py +0 -0
  141. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/guards/test_file_storage_plain_quota.py +0 -0
  142. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/guards/test_file_storage_server_put.py +0 -0
  143. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/guards/test_file_storage_upload_failure_modes.py +0 -0
  144. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/guards/test_file_storage_upload_guards.py +0 -0
  145. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/sessions/test_file_storage_busy_admission.py +0 -0
  146. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/sessions/test_file_storage_sqlite_admission_race.py +0 -0
  147. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/sessions/test_file_storage_uploads_expiry.py +0 -0
  148. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/sessions/test_file_storage_uploads_fs.py +0 -0
  149. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/sessions/test_file_storage_uploads_minio.py +0 -0
  150. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/sessions/test_file_storage_uploads_pg.py +0 -0
  151. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/sessions/test_file_storage_uploads_quota.py +0 -0
  152. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/multipart/sessions/test_file_storage_uploads_s3.py +0 -0
  153. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/api/test_file_storage_api.py +0 -0
  154. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/api/test_file_storage_deps_backend.py +0 -0
  155. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/api/test_file_storage_files_api_pagination_bounds.py +0 -0
  156. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/api/test_file_storage_page_clamp.py +0 -0
  157. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/public/test_file_storage_deleted_tenant_public.py +0 -0
  158. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/public/test_file_storage_p3_download_csp.py +0 -0
  159. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/public/test_file_storage_public.py +0 -0
  160. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/public/test_file_storage_public_cookieless.py +0 -0
  161. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/public/test_file_storage_public_cors.py +0 -0
  162. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/public/test_file_storage_public_rate.py +0 -0
  163. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/public/test_file_storage_range_download.py +0 -0
  164. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests/web/public/test_file_storage_single_tenant_public.py +0 -0
  165. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/BrowseEmptyState.test.tsx +0 -0
  166. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/FileTable.test.tsx +0 -0
  167. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/SelectionFooter.test.tsx +0 -0
  168. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/file_storage_upload_queue_cancellation.test.ts +0 -0
  169. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/file_storage_upload_queue_lifecycle.test.ts +0 -0
  170. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/file_storage_useFileActions.test.tsx +0 -0
  171. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/format.test.ts +0 -0
  172. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/resumable-queue.test.ts +0 -0
  173. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/resumable-upload.test.ts +0 -0
  174. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tests-js/upload-queue.test.ts +0 -0
  175. {simple_module_file_storage-0.0.44 → simple_module_file_storage-0.0.45}/tsconfig.json +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: simple_module_file_storage
3
- Version: 0.0.44
3
+ Version: 0.0.45
4
4
  Summary: Pluggable file upload + storage (local or S3 via extras) module for simple_module apps
5
5
  Project-URL: Homepage, https://github.com/antosubash/simple_module_python
6
6
  Project-URL: Repository, https://github.com/antosubash/simple_module_python
@@ -23,14 +23,14 @@ Classifier: Typing :: Typed
23
23
  Requires-Python: >=3.12
24
24
  Requires-Dist: aiofiles<26,>=23
25
25
  Requires-Dist: pillow<14,>=10
26
- Requires-Dist: simple-module-core==0.0.44
27
- Requires-Dist: simple-module-db==0.0.44
28
- Requires-Dist: simple-module-hosting==0.0.44
29
- Requires-Dist: simple-module-settings==0.0.44
26
+ Requires-Dist: simple-module-core==0.0.45
27
+ Requires-Dist: simple-module-db==0.0.45
28
+ Requires-Dist: simple-module-hosting==0.0.45
29
+ Requires-Dist: simple-module-settings==0.0.45
30
30
  Provides-Extra: s3
31
31
  Requires-Dist: aioboto3<16,>=13; extra == 's3'
32
32
  Provides-Extra: tasks
33
- Requires-Dist: simple-module-background-tasks==0.0.44; extra == 'tasks'
33
+ Requires-Dist: simple-module-background-tasks==0.0.45; extra == 'tasks'
34
34
  Description-Content-Type: text/markdown
35
35
 
36
36
  # simple_module_file_storage
@@ -66,7 +66,7 @@ class StoredFile(Base, AuditMixin, SoftDeleteMixin, MultiTenantMixin, table=True
66
66
  f"ix_{constants.TABLE_STORED_FILE}_tenant_browse",
67
67
  "tenant_id",
68
68
  "is_deleted",
69
- sa.text("created_at DESC"),
69
+ sa.desc(sa.column("created_at")),
70
70
  "id",
71
71
  ),
72
72
  )
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-module-py/file-storage",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "private": true,
5
5
  "description": "Frontend assets for the FileStorage module",
6
6
  "peerDependencies": {
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "simple_module_file_storage"
3
- version = "0.0.44"
3
+ version = "0.0.45"
4
4
  description = "Pluggable file upload + storage (local or S3 via extras) module for simple_module apps"
5
5
  readme = "README.md"
6
6
  license = "MIT"
@@ -21,17 +21,17 @@ classifiers = [
21
21
  "Typing :: Typed",
22
22
  ]
23
23
  dependencies = [
24
- "simple_module_core==0.0.44",
25
- "simple_module_db==0.0.44",
26
- "simple_module_hosting==0.0.44",
27
- "simple_module_settings==0.0.44",
24
+ "simple_module_core==0.0.45",
25
+ "simple_module_db==0.0.45",
26
+ "simple_module_hosting==0.0.45",
27
+ "simple_module_settings==0.0.45",
28
28
  "aiofiles>=23,<26",
29
29
  "pillow>=10,<14",
30
30
  ]
31
31
 
32
32
  [project.optional-dependencies]
33
33
  s3 = ["aioboto3>=13,<16"]
34
- tasks = ["simple_module_background_tasks==0.0.44"]
34
+ tasks = ["simple_module_background_tasks==0.0.45"]
35
35
 
36
36
  [project.entry-points.simple_module]
37
37
  file_storage = "file_storage.module:FileStorageModule"
@@ -0,0 +1,40 @@
1
+ """The browse index is written with column constructs SQLite can reflect (GH #869).
2
+
3
+ ``sa.text("created_at DESC")`` and ``sa.desc("created_at")`` are both expressions
4
+ to Alembic, and SQLite reflects the index as plain columns, so every SQLite
5
+ autogenerate reported the index as changed. ``sa.desc(sa.column(...))`` compares
6
+ as a column.
7
+ """
8
+
9
+ import sqlalchemy as sa
10
+ from file_storage.models import StoredFile
11
+ from sqlalchemy.sql.elements import ColumnClause, UnaryExpression
12
+ from sqlalchemy.sql.operators import desc_op
13
+
14
+ _INDEX = "ix_file_storage_stored_file_tenant_browse"
15
+
16
+
17
+ def _browse_index() -> sa.Index:
18
+ return next(i for i in StoredFile.__table__.indexes if i.name == _INDEX)
19
+
20
+
21
+ def test_every_element_is_a_column_or_a_descending_column():
22
+ names = []
23
+ for expr in _browse_index().expressions:
24
+ if isinstance(expr, UnaryExpression):
25
+ assert expr.modifier is desc_op
26
+ expr = expr.element
27
+ assert isinstance(expr, ColumnClause), f"{expr!r} is an expression to Alembic"
28
+ names.append(expr.name)
29
+ assert names == ["tenant_id", "is_deleted", "created_at", "id"]
30
+ assert isinstance(_browse_index().expressions[2], UnaryExpression)
31
+
32
+
33
+ def test_the_ddl_is_unchanged():
34
+ """Same ``CREATE INDEX`` as revision ``f6c2d4e8b109``, so no migration is needed."""
35
+ from sqlalchemy.dialects import postgresql, sqlite
36
+ from sqlalchemy.schema import CreateIndex
37
+
38
+ for dialect in (sqlite.dialect(), postgresql.dialect()):
39
+ ddl = str(CreateIndex(_browse_index()).compile(dialect=dialect))
40
+ assert ddl.endswith("(tenant_id, is_deleted, created_at DESC, id)"), ddl