Client

class tokki.travis.TravisClient(token, *args, **kwargs)

Represents a client for accessing the Travis CI API.

Parameters
  • token (str) – The v1 token for accessing the user information.

  • useragent (str) – The User-Agent header that the REST calls should use.

async get_repo(slug)

Gets a project from Travis CI.

Parameters

slug (str) – The owner/repo to get the information from.

Returns

The project of the user if is present on the account.

Return type

TravisRepo

Raises

aiohttp.ClientResponseError – If the API response returned something other than a 1XX-2XX-3XX code.