chainalysis.utils package

Module contents

class chainalysis.utils.Utils[source]

Bases: object

This class contains util/helper functions for users of the SDK.

Variables:

stringify (Stringify) – Stringify class instance

class chainalysis.utils.Stringify[source]

Bases: object

This class contains functions to transform python objects into formatted string params so they can be used to query Data Solutions’ databases without needing to be transformed manually by the user.

lists(_list: list) str[source]

Convert a list to a formatted string param.

Parameters:

list (list) – The list to be converted.

Raises:
  • Exception – Raises an exception if a list type is not submitted.

  • Exception – If lists do not contain the right types.

Returns:

The converted list.

Return type:

str

columns(columns: list) str[source]

Convert a column select list to a formatted string param.

Parameters:

list (list) – The column select list object to be converted.

Returns:

The converted column select list.

Return type:

str

datetimes(_datetime: datetime) str[source]

Convert a datetime object to a formatted string param.

Parameters:

list (list) – The datetime object to be converted.

Returns:

The converted datetime object.

Return type:

str