class_docstr: Configure polars; offers options for table formatting and more.
  
  Notes
  -----
  Can also be used as a context manager OR a function decorator in order to
  temporarily scope the lifetime of specific options. For example:
  
  >>> with pl.Config() as cfg:
  ...     # set verbose for more detailed output within the scope
  ...     cfg.set_verbose(True)  # doctest: +IGNORE_RESULT
  >>> # scope exit - no longer in verbose mode
  
  This can also be written more compactly as:
  
  >>> with pl.Config(verbose=True):
  ...     pass
  
  (The compact format is available for all `Config` methods that take a single value).
  
  Alternatively, you can use as a decorator in order to scope the duration of the
  selected options to a specific function:
  
  >>> @pl.Config(verbose=True)
  ... def test():
  ...     pass
class_docstr_tok: ["Configure","polars",";","offers","options","for","table","formatting","and","more",".","Notes","--","--","-","Can","also","be","used","as","a","context","manager","OR","a","function","decorator","in","order","to","temporarily","scope","the","lifetime","of","specific","options",".","For","example",":",">",">",">","with","pl.Config","(",")","as","cfg",":","...","#","set","verbose","for","more","detailed","output","within","the","scope","...","cfg.set_verbose","(","True",")","#","doctest",":","+IGNORE_RESULT",">",">",">","#","scope","exit","-","no","longer","in","verbose","mode","This","can","also","be","written","more","compactly","as",":",">",">",">","with","pl.Config","(","verbose=True",")",":","...","pass","(","The","compact","format","is","available","for","all","`","Config","`","methods","that","take","a","single","value",")",".","Alternatively",",","you","can","use","as","a","decorator","in","order","to","scope","the","duration","of","the","selected","options","to","a","specific","function",":",">",">",">","@","pl.Config","(","verbose=True",")","...","def","test","(",")",":","...","pass"]
docstr: Set table cell alignment.
  
  Parameters
  ----------
  format : str
      * "LEFT": left aligned
      * "CENTER": center aligned
      * "RIGHT": right aligned
  
  Examples
  --------
  >>> df = pl.DataFrame(
  ...     {"column_abc": [1.0, 2.5, 5.0], "column_xyz": [True, False, True]}
  ... )
  >>> pl.Config.set_tbl_cell_alignment("RIGHT")  # doctest: +IGNORE_RESULT
  >>> print(df)
  shape: (3, 2)
  ┌────────────┬────────────┐
  │ column_abc ┆ column_xyz │
  │        --- ┆        --- │
  │        f64 ┆       bool │
  ╞════════════╪════════════╡
  │        1.0 ┆       true │
  │        2.5 ┆      false │
  │        5.0 ┆       true │
  └────────────┴────────────┘
  
  Raises
  ------
  ValueError: if alignment string not recognised.
code: def set_tbl_cell_alignment(
      cls, format: Literal["LEFT", "CENTER", "RIGHT"] | None
  ) -> type[Config]:
      """
      Set table cell alignment.
  
      Parameters
      ----------
      format : str
          * "LEFT": left aligned
          * "CENTER": center aligned
          * "RIGHT": right aligned
  
      Examples
      --------
      >>> df = pl.DataFrame(
      ...     {"column_abc": [1.0, 2.5, 5.0], "column_xyz": [True, False, True]}
      ... )
      >>> pl.Config.set_tbl_cell_alignment("RIGHT")  # doctest: +IGNORE_RESULT
      >>> print(df)
      shape: (3, 2)
      ┌────────────┬────────────┐
      │ column_abc ┆ column_xyz │
      │        --- ┆        --- │
      │        f64 ┆       bool │
      ╞════════════╪════════════╡
      │        1.0 ┆       true │
      │        2.5 ┆      false │
      │        5.0 ┆       true │
      └────────────┴────────────┘
  
      Raises
      ------
      ValueError: if alignment string not recognised.
  
      """
      if format is None:
          os.environ.pop("POLARS_FMT_TABLE_CELL_ALIGNMENT", None)
      elif format not in {"LEFT", "CENTER", "RIGHT"}:
          raise ValueError(f"invalid alignment: {format!r}")
      else:
          os.environ["POLARS_FMT_TABLE_CELL_ALIGNMENT"] = format
      return cls
  
imports: from __future__ import annotations
  import contextlib
  import os
  import sys
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Literal, get_args
  from polars.dependencies import json
  from polars.utils.deprecation import deprecate_nonkeyword_arguments
  from polars.utils.various import normalize_filepath
label_desc: Use image node_id 20 for calling the Config obj's underlying member method code with example usage: obj.set_tbl_cell_alignment(cls, format) and returns: cls