class_docstr: FiftyOne configuration settings.
class_docstr_tok: ["FiftyOne","configuration","settings","."]
code: def __init__(self, d=None):
      if d is None:
          d = {}
  
      self.database_uri = self.parse_string(
          d,
          "database_uri",
          env_var="FIFTYONE_DATABASE_URI",
          default=None,
      )
      self.database_validation = self.parse_bool(
          d,
          "database_validation",
          env_var="FIFTYONE_DATABASE_VALIDATION",
          default=True,
      )
      self.database_admin = self.parse_bool(
          d,
          "database_admin",
          env_var="FIFTYONE_DATABASE_ADMIN",
          default=True,
      )
      self.database_dir = self.parse_path(
          d,
          "database_dir",
          env_var="FIFTYONE_DATABASE_DIR",
          default=foc.DEFAULT_DB_DIR,
      )
      self.database_name = self.parse_string(
          d,
          "database_name",
          env_var="FIFTYONE_DATABASE_NAME",
          default="fiftyone",
      )
      self.dataset_zoo_dir = self.parse_path(
          d,
          "dataset_zoo_dir",
          env_var="FIFTYONE_DATASET_ZOO_DIR",
          default=None,
      )
      self.model_zoo_dir = self.parse_path(
          d,
          "model_zoo_dir",
          env_var="FIFTYONE_MODEL_ZOO_DIR",
          default=None,
      )
      self.module_path = self.parse_string_array(
          d,
          "module_path",
          env_var="FIFTYONE_MODULE_PATH",
          default=None,
      )
      self.plugins_dir = self.parse_string(
          d, "plugins_dir", env_var="FIFTYONE_PLUGINS_DIR", default=None
      )
      self.plugins_cache_enabled = self.parse_bool(
          d,
          "plugins_cache_enabled",
          env_var="FIFTYONE_PLUGINS_CACHE_ENABLED",
          default=False,
      )
      self.operator_timeout = self.parse_int(
          d,
          "operator_timeout",
          env_var="FIFTYONE_OPERATOR_TIMEOUT",
          default=600,  # 600 seconds (10 minutes)
      )
      self.dataset_zoo_manifest_paths = self.parse_path_array(
          d,
          "dataset_zoo_manifest_paths",
          env_var="FIFTYONE_DATASET_ZOO_MANIFEST_PATHS",
          default=None,
      )
      self.model_zoo_manifest_paths = self.parse_path_array(
          d,
          "model_zoo_manifest_paths",
          env_var="FIFTYONE_MODEL_ZOO_MANIFEST_PATHS",
          default=None,
      )
      self.default_dataset_dir = self.parse_path(
          d,
          "default_dataset_dir",
          env_var="FIFTYONE_DEFAULT_DATASET_DIR",
          default=None,
      )
      self.default_ml_backend = self.parse_string(
          d,
          "default_ml_backend",
          env_var="FIFTYONE_DEFAULT_ML_BACKEND",
          default=None,
      )
      self.default_batch_size = self.parse_int(
          d,
          "default_batch_size",
          env_var="FIFTYONE_DEFAULT_BATCH_SIZE",
          default=None,
      )
      self.bulk_write_batch_size = self.parse_int(
          d,
          "bulk_write_batch_size",
          env_var="FIFTYONE_BULK_WRITE_BATCH_SIZE",
          default=100_000,  # mongodb limit
      )
      self.default_batcher = self.parse_string(
          d,
          "default_batcher",
          env_var="FIFTYONE_DEFAULT_BATCHER",
          default="latency",
      )
      self.batcher_static_size = self.parse_int(
          d,
          "batcher_static_size",
          env_var="FIFTYONE_BATCHER_STATIC_SIZE",
          default=100,
      )
      self.batcher_target_size_bytes = self.parse_int(
          d,
          "batcher_target_size_bytes",
          env_var="FIFTYONE_BATCHER_TARGET_SIZE_BYTES",
          default=2**20,
      )
      self.batcher_target_latency = self.parse_number(
          d,
          "batcher_target_latency",
          env_var="FIFTYONE_BATCHER_TARGET_LATENCY",
          default=0.2,
      )
      self.default_sequence_idx = self.parse_string(
          d,
          "default_sequence_idx",
          env_var="FIFTYONE_DEFAULT_SEQUENCE_IDX",
          default="%06d",
      )
      self.default_image_ext = self.parse_string(
          d,
          "default_image_ext",
          env_var="FIFTYONE_DEFAULT_IMAGE_EXT",
          default=".jpg",
      )
      self.default_video_ext = self.parse_string(
          d,
          "default_video_ext",
          env_var="FIFTYONE_DEFAULT_VIDEO_EXT",
          default=".mp4",
      )
      self.default_app_port = self.parse_int(
          d,
          "default_app_port",
          env_var="FIFTYONE_DEFAULT_APP_PORT",
          default=5151,
      )
      self.default_app_address = self.parse_string(
          d,
          "default_app_address",
          env_var="FIFTYONE_DEFAULT_APP_ADDRESS",
          default="localhost",
      )
      self.desktop_app = self.parse_bool(
          d,
          "desktop_app",
          env_var="FIFTYONE_DESKTOP_APP",
          default=False,
      )
      self.logging_level = self.parse_string(
          d,
          "logging_level",
          env_var="FIFTYONE_LOGGING_LEVEL",
          default="INFO",
      )
      self._show_progress_bars = None  # declare
      self.show_progress_bars = self.parse_bool(
          d,
          "show_progress_bars",
          env_var="FIFTYONE_SHOW_PROGRESS_BARS",
          default=True,
      )
      self.do_not_track = self.parse_bool(
          d,
          "do_not_track",
          env_var="FIFTYONE_DO_NOT_TRACK",
          default=False,
      )
      self.requirement_error_level = self.parse_int(
          d,
          "requirement_error_level",
          env_var="FIFTYONE_REQUIREMENT_ERROR_LEVEL",
          default=0,
      )
      self.timezone = self.parse_string(
          d, "timezone", env_var="FIFTYONE_TIMEZONE", default=None
      )
      self.max_thread_pool_workers = self.parse_int(
          d,
          "max_thread_pool_workers",
          env_var="FIFTYONE_MAX_THREAD_POOL_WORKERS",
          default=None,
      )
      self.max_process_pool_workers = self.parse_int(
          d,
          "max_process_pool_workers",
          env_var="FIFTYONE_MAX_PROCESS_POOL_WORKERS",
          default=None,
      )
  
      self._init()
  
imports: import logging
  import os
  import pytz
  import eta
  import eta.core.config
  import fiftyone.constants
  import fiftyone.core.utils
label_desc: Use image node_id 1 to create a new FiftyOneConfig object from inherited base classes: EnvConfig with example: obj = FiftyOneConfig(d)