<filename>benchengine/api/serialize/labels.py
# This file is part of the Reproducible Open Benchmarks for Data Analysis
# Platform (ROB).
#
# Copyright (C) 2019 NYU.
#
# ROB is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.

"""Define common labels that are used on resource serializations."""

# Common resource labels
DATA_TYPE = 'type'
ID = 'id'
NAME = 'name'
STATE = 'state'
VERSION = 'version'

# Benchmark resources
BENCHMARKS = 'benchmarks'
DESCRIPTION = 'description'
INSTRUCTIONS = 'instructions'
PARAMETERS = 'parameters'

# Benchmark leaderboard
RESULTS = 'results'
RUNS = 'runs'
SCHEMA = 'schema'
VALUE = 'value'
# Benchmark runs
STARTED_AT = 'startedAt'
FINISHED_AT = 'finishedAt'
MESSAGES = 'messages'

# Files
CREATED_AT = 'createdAt'
FILESIZE = 'size'

# HATEOAS
LINKS = 'links'
REF = 'href'
REL = 'rel'

# Teams
MEMBER_COUNT = 'memberCount'
MEMBERS = 'members'
OWNER_ID = 'ownerId'
TEAMS = 'teams'

# Users
ACCESS_TOKEN = 'token'
USERNAME = 'username'
PASSWORD = 'password'

<filename>benchengine/api/serialize/labels.py
# This file is part of the Reproducible Open Benchmarks for Data Analysis
# Platform (ROB).
#
# Copyright (C) 2019 NYU.
#
# ROB is free software; you can redistribute it and/or modify it under the
# terms of the MIT License; see LICENSE file for more details.

"""Define common labels that are used on resource serializations."""

# Common resource labels
DATA_TYPE = 'type'
ID = 'id'
NAME = 'name'
STATE = 'state'
VERSION = 'version'

# Benchmark resources
BENCHMARKS = 'benchmarks'
DESCRIPTION = 'description'
INSTRUCTIONS = 'instructions'
PARAMETERS = 'parameters'

# Benchmark leaderboard
RESULTS = 'results'
RUNS = 'runs'
SCHEMA = 'schema'
VALUE = 'value'
# Benchmark runs
STARTED_AT = 'startedAt'
FINISHED_AT = 'finishedAt'
MESSAGES = 'messages'

# Files
CREATED_AT = 'createdAt'
FILESIZE = 'size'

# HATEOAS
LINKS = 'links'
REF = 'href'
REL = 'rel'

# Teams
MEMBER_COUNT = 'memberCount'
MEMBERS = 'members'
OWNER_ID = 'ownerId'
TEAMS = 'teams'

# Users
ACCESS_TOKEN = 'token'
USERNAME = 'username'
PASSWORD = 'password'

# This file is part of the Reproducible Open Benchmarks for Data Analysis # Platform (ROB). # # Copyright (C) 2019 NYU. # # ROB is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. Define common labels that are used on resource serializations. # Common resource labels # Benchmark resources # Benchmark leaderboard # Benchmark runs # Files # HATEOAS # Teams # Users