valo_api_official.exceptions package

Submodules

valo_api_official.exceptions.rate_limit module

Classes:

RateLimit()

Functions:

rate_limit()

Returns the current rate limit for the API.

class RateLimit

Bases: object

Attributes:

limit

The number of requests you can make in the current period.

count

The number of requests you did in the current period.

limit: str

The number of requests you can make in the current period.

count: str

The number of requests you did in the current period.

rate_limit()

Returns the current rate limit for the API.

Returns:

A RateLimit object.

Return type:

RateLimit

valo_api_official.exceptions.valo_api_exception module

Exceptions:

ValoAPIException(response)

Base exception for all exceptions in the Valo API.

exception ValoAPIException(response)

Bases: Exception

Base exception for all exceptions in the Valo API.

ratelimit: RateLimit
property status: str | None

Return the status code of the response.

Returns:

The status code of the response.

property message: str | None

Return the error message of the response.

Returns:

The error message of the response.

property errors: Error | None

Return the error code of the response.

Returns:

The error code of the response.

Module contents