graphistry.utils package#

Submodules#

graphistry.utils.json module#

graphistry.utils.json.assert_json_serializable(data)#
graphistry.utils.json.find_non_finite(data, path='')#

Locate the first NaN/infinity in a JSON-shaped value.

json.dumps emits these as the non-standard NaN/Infinity literals, so is_json_serializable accepts them while a strict encoder rejects them.

Parameters:
  • data (Any) – Value to scan.

  • path (str) – Dotted path of data within the enclosing document.

Returns:

Path of the first non-finite float, or None when there is none.

Return type:

str | None

graphistry.utils.json.is_json_serializable(data)#
graphistry.utils.json.serialize_to_json_val(obj)#
Parameters:

obj (Any)

Return type:

None | bool | str | float | int | List[Any] | Dict[str, Any]

graphistry.utils.lazy_import module#

graphistry.utils.lazy_import.assert_imported()#
graphistry.utils.lazy_import.assert_imported_text()#
graphistry.utils.lazy_import.lazy_cudf_import()#
graphistry.utils.lazy_import.lazy_cuml_import()#
graphistry.utils.lazy_import.lazy_dbscan_import()#
graphistry.utils.lazy_import.lazy_dgl_import()#
graphistry.utils.lazy_import.lazy_dirty_cat_import()#
graphistry.utils.lazy_import.lazy_embed_import()#
graphistry.utils.lazy_import.lazy_import_has_min_dependancy()#
graphistry.utils.lazy_import.lazy_networks_import()#
graphistry.utils.lazy_import.lazy_sentence_transformers_import()#
graphistry.utils.lazy_import.lazy_skrub_import()#
graphistry.utils.lazy_import.lazy_torch_import_has_dependency()#
graphistry.utils.lazy_import.lazy_umap_import()#

graphistry.utils.plottable_memoize module#

graphistry.utils.plottable_memoize.check_set_memoize(g, metadata, attribute, name='', memoize=True)#

Helper Memoize function that checks if metadata args have changed for object g – which is unconstrained save for the fact that it must have attribute. If they have not changed, will return memoized version, if False, will continue with whatever pipeline it is in front.

Parameters:
  • g (Plottable)

  • attribute (str)

  • name (str)

  • memoize (bool)

Return type:

bool | Any

graphistry.utils.requests module#

graphistry.utils.requests.log_requests_error(resp)#
Parameters:

resp (Response)

Return type:

None

Module contents#