Module datatap.api.types.repository

Expand source code
from typing import List
from typing_extensions import TypedDict

class JsonSplit(TypedDict):
    split: str
    annotationCount: int

class JsonTag(TypedDict):
    tag: str
    dataset: str
    updatedAt: int
    splits: List[JsonSplit]

class JsonRepository(TypedDict):
    """
    The API type of a repository.
    """
    namespace: str
    name: str
    tags: List[JsonTag]

Classes

class JsonRepository (*args, **kwargs)

The API type of a repository.

Expand source code
class JsonRepository(TypedDict):
    """
    The API type of a repository.
    """
    namespace: str
    name: str
    tags: List[JsonTag]

Ancestors

  • builtins.dict

Class variables

var name : str
var namespace : str
var tags : List[JsonTag]
class JsonSplit (*args, **kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

Expand source code
class JsonSplit(TypedDict):
    split: str
    annotationCount: int

Ancestors

  • builtins.dict

Class variables

var annotationCount : int
var split : str
class JsonTag (*args, **kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

Expand source code
class JsonTag(TypedDict):
    tag: str
    dataset: str
    updatedAt: int
    splits: List[JsonSplit]

Ancestors

  • builtins.dict

Class variables

var dataset : str
var splits : List[JsonSplit]
var tag : str
var updatedAt : int