Repository Models

class paperswithcode.models.repository.Repository(*, url: str, owner: str, name: str, description: str, stars: int, framework: str, is_official: bool = None)[source]

Repository object.

url

URL of the repository.

Type

str

owner

Repository owner.

Type

str

name

Repository name.

Type

str

description

Repository description.

Type

str

stars

Number of repository stars.

Type

int

framework

Implementation framework (TensorFlow, PyTorch, MXNet, Torch, Jax, Caffee2…).

Type

str

is_official

Is this an official implementation of the paper. Available only when listing repositories for a specific paper.

Type

bool

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

class paperswithcode.models.repository.Repositories(*, count: int, next_page: int = None, previous_page: int = None, results: List[paperswithcode.models.repository.Repository])[source]

Object representing a paginated page of repositories.

count

Number of elements matching the query.

Type

int

next_page

Number of the next page.

Type

int, optional

previous_page

Number of the previous page.

Type

int, optional

results

List of repositories on this page.

Type

List[Repository]

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.