How to use the beautifultable.utils.ensure_type function in beautifultable

To help you get started, we’ve selected a few beautifultable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pri22296 / beautifultable / beautifultable / helpers.py View on Github external
def junction(self, value):
        self._table._header_junction = ensure_type(value, basestring)
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
"intersect_header_left",
            "intersect_header_mid",
            "intersect_header_right",
            "intersect_row_left",
            "intersect_row_mid",
            "intersect_row_right",
            "intersect_bottom_left",
            "intersect_bottom_mid",
            "intersect_bottom_right",
        )
        if to_unicode(name) in attrs:
            warnings.warn(
                deprecation_message(name, "1.0.0", "1.2.0", None),
                FutureWarning,
            )
            value = ensure_type(value, basestring, name)
        super(BeautifulTable, self).__setattr__(name, value)
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
def junction(self, value):
        self._junction = ensure_type(value, basestring)
github pri22296 / beautifultable / beautifultable / helpers.py View on Github external
def separator(self, value):
        self._table._column_separator = ensure_type(value, basestring)
github pri22296 / beautifultable / beautifultable / helpers.py View on Github external
def separator(self, value):
        self._table._row_separator = ensure_type(value, basestring)