julee.repositories.memory.assembly ================================== .. py:module:: julee.repositories.memory.assembly .. autoapi-nested-parse:: Memory implementation of AssemblyRepository. This module provides an in-memory implementation of the AssemblyRepository protocol that follows the Clean Architecture patterns defined in the Fun-Police Framework. It handles assembly storage in memory dictionaries, ensuring idempotency and proper error handling. The implementation uses Python dictionaries to store assembly data, making it ideal for testing scenarios where external dependencies should be avoided. All operations are still async to maintain interface compatibility. Attributes ---------- .. autoapisummary:: julee.repositories.memory.assembly.logger Classes ------- .. autoapisummary:: julee.repositories.memory.assembly.MemoryAssemblyRepository Module Contents --------------- .. py:class:: MemoryAssemblyRepository Bases: :py:obj:`julee.domain.repositories.assembly.AssemblyRepository`, :py:obj:`julee.repositories.memory.base.MemoryRepositoryMixin`\ [\ :py:obj:`julee.domain.models.assembly.Assembly`\ ] Memory implementation of AssemblyRepository using Python dictionaries. This implementation stores assembly data in memory using a dictionary keyed by assembly_id. This provides a lightweight, dependency-free option for testing. .. py:method:: generate_id() :async: Generate a unique assembly identifier. :returns: Unique assembly ID string .. py:method:: get(assembly_id) :async: Retrieve an assembly by ID. :param assembly_id: Unique assembly identifier :returns: Assembly if found, None otherwise .. py:method:: get_many(assembly_ids) :async: Retrieve multiple assemblies by ID. :param assembly_ids: List of unique assembly identifiers :returns: Dict mapping assembly_id to Assembly (or None if not found) .. py:method:: save(assembly) :async: Save assembly metadata (status, updated_at, etc.). :param assembly: Assembly entity .. py:attribute:: entity_name :value: 'Assembly' .. py:attribute:: logger .. py:attribute:: storage_dict :type: dict[str, julee.domain.models.assembly.Assembly] .. py:data:: logger