tooluniverse.tools.PubChem_get_compound_2D_image_by_CID moduleΒΆ

PubChem_get_compound_2D_image_by_CID

Get 2D structure image (PNG format) of compound by CID.

tooluniverse.tools.PubChem_get_compound_2D_image_by_CID.PubChem_get_compound_2D_image_by_CID(cid, image_size, *, stream_callback=None, use_cache=False, validate=True)[source]ΒΆ

Get 2D structure image (PNG format) of compound by CID.

Parameters:
  • cid (int) – Compound ID to get image for, e.g., 2244.

  • image_size (str) – Optional parameter, image size, like β€œ200x200” (default).

  • stream_callback (Callable, optional) – Callback for streaming output

  • use_cache (bool, default False) – Enable caching

  • validate (bool, default True) – Validate parameters

Return type:

Any