chainalysis.utils package¶
Submodules¶
chainalysis.utils.stringify module¶
- class chainalysis.utils.stringify.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.
- 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
- 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