Coverage for src/fluree_py/http/protocol/endpoint/create.py: 100%
8 statements
« prev ^ index » next coverage.py v7.8.0, created at 2025-04-02 03:03 +0000
« prev ^ index » next coverage.py v7.8.0, created at 2025-04-02 03:03 +0000
1"""Protocols for creating new entities in the Fluree ledger."""
3from typing import Protocol
5from fluree_py.http.protocol.mixin import (
6 SupportsCommitable,
7 SupportsContext,
8 SupportsInsert,
9 SupportsRequestCreation,
10)
11from fluree_py.http.protocol.mixin.context import HasContextData
12from fluree_py.http.protocol.mixin.insert import HasInsertData
15class CreateBuilder(
16 SupportsContext["CreateBuilder"], SupportsInsert["CreateReadyToCommit"], Protocol
17):
18 """Protocol for building create operations."""
20 pass
23class CreateReadyToCommit(
24 SupportsRequestCreation, SupportsCommitable, HasInsertData, HasContextData, Protocol
25):
26 """Protocol for create operations ready to be committed."""
28 pass