class_docstr: Test Streamlit.__init__.py.
class_docstr_tok: ["Test","Streamlit.__init__.py","."]
docstr: Test that we don't accidentally remove (or add) symbols
  to the public `st` API.
docstr_tok: ["Test","that","we","do","n't","accidentally","remove","(","or","add",")","symbols","to","the","public","`","st","`","API","."]
code: def test_public_api(self):
      """Test that we don't accidentally remove (or add) symbols
      to the public `st` API.
      """
      api = {
          k
          for k, v in st.__dict__.items()
          if not k.startswith("_") and not isinstance(v, type(st))
      }
      self.assertEqual(
          api,
          {
              # DeltaGenerator methods:
              "altair_chart",
              "area_chart",
              "audio",
              "balloons",
              "bar_chart",
              "bokeh_chart",
              "button",
              "caption",
              "camera_input",
              "chat_input",
              "chat_message",
              "checkbox",
              "code",
              "columns",
              "tabs",
              "container",
              "dataframe",
              "data_editor",
              "date_input",
              "divider",
              "download_button",
              "expander",
              "pydeck_chart",
              "empty",
              "error",
              "exception",
              "file_uploader",
              "form",
              "form_submit_button",
              "graphviz_chart",
              "header",
              "help",
              "image",
              "info",
              "json",
              "latex",
              "line_chart",
              "link_button",
              "map",
              "markdown",
              "metric",
              "multiselect",
              "number_input",
              "plotly_chart",
              "progress",
              "pyplot",
              "radio",
              "scatter_chart",
              "selectbox",
              "select_slider",
              "slider",
              "snow",
              "subheader",
              "success",
              "status",
              "table",
              "text",
              "text_area",
              "text_input",
              "time_input",
              "title",
              "toast",
              "toggle",
              "vega_lite_chart",
              "video",
              "warning",
              "write",
              "color_picker",
              "sidebar",
              "event",
              # Other modules the user should have access to:
              "echo",
              "spinner",
              "set_page_config",
              "stop",
              "rerun",
              "switch_page",
              "cache",
              "secrets",
              "session_state",
              "query_params",
              "cache_data",
              "cache_resource",
              # Experimental APIs:
              "experimental_user",
              "experimental_singleton",
              "experimental_memo",
              "experimental_get_query_params",
              "experimental_set_query_params",
              "experimental_rerun",
              "experimental_data_editor",
              "experimental_connection",
              "get_option",
              "set_option",
              "connection",
          },
      )
  
file_path: streamlit/lib/tests/streamlit/streamlit_test.py
imports: import os
  import re
  import subprocess
  import sys
  import tempfile
  import unittest
  import streamlit
  from streamlit import __version__
label_desc: Use image node_id 3 for calling the StreamlitTest obj's underlying member method code with example usage: obj.test_public_api() without return types