Models

Account

class dathost.models.account.AccountModel

Holds infomation around a account.

account_id
Type

str

email
Type

str

gravatar_url
Type

str

credits
Type

str

seconds_left
Type

int

time_left
Type

int

roles
Type

str

trial
Type

bool

accepted_terms_of_service_version
Type

int

subscription_pay_with_credits
Type

bool

affiliate
Type

bool

first_month_discount_percentage
Type

float

confirmed_at
Type

datetime

Backup

class dathost.models.backup.BackupModel

Holds detail on backups.

backup_name
Type

str

timestamp
Type

datetime.datetime

File

class dathost.models.file.FileModel

Used to hold details on file.

path
Type

str

size
Type

str, optional

Match

class dathost.models.match.MatchModel

Holds match details.

match_id
Type

str

server_id
Type

str

connect_time
Type

int

round_end_webhook
Type

str

match_end_webhook
Type

str

finished
Type

bool

cancel_reason
Type

str

rounds_played
Type

int

spectators
Type

list

team_1
Type

TeamModel

team_2
Type

TeamModel

knife_round
Type

bool

playwin
Type

bool

playwin_webhook
Type

str

playwin_result
Type

dict

warmup_time
Type

int

wait_for_spectators
Type

bool

for ... in players()Generator[dathost.models.match.MatchPlayerModel, None, None]

Used to list players.

Yields

PlayerModel – Holds details on player.

class dathost.models.match.MatchPlayerModel

Holds match player details.

steamid
Type

str

kills
Type

int

deaths
Type

int

assists
Type

int

kdr
Type

float

class dathost.models.match.TeamModel

Holds details on team.

score
Type

int

players
Type

list

Metric

class dathost.models.metrics.MetricsModel
for ... in all_time_players()Generator[dathost.models.metrics.PlayerModel, None, None]

Used to list all time players.

Yields

PlayerModel – Holds details on online players.

for ... in maps()Generator[dathost.models.metrics.MapsModel, None, None]

Used to list all maps what have been played.

Yields

MapsModel – Holds details on maps.

for ... in players_online()Generator[dathost.models.metrics.PlayerModel, None, None]

Used to list all players online.

Yields

PlayerModel – Holds details on online players.

for ... in players_online_graph()Generator[dathost.models.metrics.PlayersOnlineGraphModel, None, None]

Used to list all players online graph.

Yields

PlayersOnlineGraphModel – Holds details on online player times.

class dathost.models.metrics.MapsModel

Holds map details

map
Type

str

seconds
Type

int

class dathost.models.metrics.PlayerModel

Holds player details

name
Type

str

duration
Type

int

score
Type

int

class dathost.models.metrics.PlayersOnlineGraphModel

Holds player graph details

timestamp
Type

str

value
Type

str

Server

class dathost.models.server.ServerModel

Holds details on server

server_id
Type

str

name
Type

str

user_data
Type

str

match_id
Type

str

game
Type

str

location
Type

str

players_online
Type

int

status
Type

list

booting
Type

bool

server_error
Type

str

ip
Type

str

raw_ip
Type

str

on
Type

bool

ports
Type

PortsModel

confirmed
Type

bool

cost_per_hour
Type

int

max_cost_per_hour
Type

int

month_credits
Type

float

month_reset_at
Type

datetime

max_cost_per_month
Type

float

subscription_cycle_months
Type

int

subscription_renewal_failed_attempts
Type

int

mysql
Type

bool

autostop
Type

bool

autostop_minutes
Type

int

mysql_username
Type

str

mysql_password
Type

str

ftp_password
Type

str

disk_usage_bytes
Type

int

default_file_locations
Type

list

custom_domain
Type

str

added_voice_server
Type

str

duplicate_source_server
Type

str

teamspeak
Type

TeamspeakModel

teamfortress
Type

TeamFortressModel

valheim
Type

ValheimModel

csgo
Type

CsgoModel

max_disk_usage_gb
Type

int

reboot_on_crash
Type

bool

core_dump
Type

bool

prefer_dedicated
Type

bool

for ... in scheduled_commands()Generator[dathost.models.server.ScheduledCommandsModel, None, None]

Lists scheduled commands.

Yields

ScheduledCommandsModel – Holds data on scheduled commands.

class dathost.models.server.PortsModel

Holds details on ports

game
Type

int

gotv
Type

int

class dathost.models.server.ScheduledCommandsModel

Holds details on scheduled commands

name
Type

str

action
Type

str

command
Type

str

run_at
Type

str

repeat
Type

bool

class dathost.models.server.TeamspeakModel

Holds details on teamspeak server

slots
Type

int

admin_token
Type

str

class dathost.models.server.TeamFortressModel

Holds details on tf2.

slots
Type

int

rcon
Type

str

password
Type

str

admins
Type

str

gotv
Type

bool

sourcemod
Type

bool

insecure
Type

bool

class dathost.models.server.ValheimModel

Holds details on valheim server

admins
Type

List[Int]

plus
Type

bool

slots
Type

int

password
Type

str

world_name
Type

str