def create_context(
    name: str,
    description: str = None,
    is_versioned: bool = True,
    allow_duplicates: bool = True,
    unique_keys: Optional[Dict[str, str]] = None,
    auto_counting: Optional[Dict[str, Optional[str]]] = None,
    *,
    project: Optional[str] = None,
    api_key: Optional[str] = None,
) -> None:

source code

Create a context. Arguments:
  • name - Name of the context to create.
  • description - Description of the context to create.
  • is_versioned - Whether the context is tracked via version control.
  • allow_duplicates - Whether to allow duplicates in the context.
  • unique_keys - Unique key definition. Keys are column names, values are types
  • auto_counting - Auto-counting configuration. Keys are column names to auto-increment,
  • project - Name of the project the context belongs to.
  • api_key - If specified, unify API key to be used. Defaults to the value in the
Returns: A message indicating whether the context was successfully created.