Object

http_get_object

async daf.remote.http_get_object(object_id: int)

Returns a tracked object, tracked with @track_id decorator.

Parameters:

object_id (int) – The ID of the object to obtain.

Returns:

The object linked to object_id.

Return type:

object

Route:

/object

Method:

GET

http_execute_method

async daf.remote.http_execute_method(object_id: int, method_name: str, **kwargs)

Executes a method on a object. The method is an actual Python method.

Parameters:
  • object_id (int) – The ID of the object to execute on.

  • method_name (str) – The name of the method to execute.

  • kwargs – Variadic keyword arguments to pass to the executed method.

Returns:

The returned value from method.

Return type:

Any

Route:

/method

Method:

POST

http_get_accounts

async daf.core.http_get_accounts()

Retrieves all active accounts in the framework.

Returns:

The active accounts.

Return type:

List[ACCOUNT]

Route:

/accounts

Method:

GET

http_add_account

async daf.core.http_add_account(account: dict)

Adds a new account to the framework.

Parameters:

account (ACCOUNT) – The account to initialize and add.

Route:

/accounts

Method:

POST

http_remove_account

async daf.core.http_remove_account(account_id: int)

Removes an account from the framework.

Parameters:

account_id (int) – The ID of the account.

Route:

/accounts

Method:

DELETE