src/dazzle_back/runtime/file_storage.py¶
Generated: 2026-03-30T04:38:47.230429+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
File storage backend for DNR.
Provides local and S3-compatible storage for file uploads. Metadata is stored in PostgreSQL via psycopg.
Key Exports¶
FileMetadataStorageBackendLocalStorageBackendS3StorageBackendFileMetadataStoreFileValidationErrorFileValidatorsecure_filenameFileServicecreate_local_file_servicecreate_s3_file_servicenamestoreretrievestreamdeleteget_urlnamestoreretrieve
Dependencies¶
Imports¶
__future__.annotationsosreabc.ABCabc.abstractmethodcollections.abc.AsyncIteratordatetime.UTCdatetime.datetimepathlib.Pathtyping.TYPE_CHECKINGtyping.Anytyping.BinaryIOuuid.UUIDuuid.uuid4pydantic.BaseModelpydantic.ConfigDictpydantic.Fieldpsycopgpsycopg.rows.dict_rowaioboto3
Event Interactions¶
None detected.
Invariants and Assumptions¶
- Validates: database_url is required. SQLite is no longer supported.
Tests¶
tests/unit/test_file_storage_pg.pytests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.