How to use the beautifultable.helpers.BTRowCollection 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 / beautifultable.py View on Github external
    @deprecated("1.0.0", "1.2.0", BTRowCollection.header.fget)
    def serialno(self, value):  # pragma: no cover
        self._serialno = value
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
kwargs.setdefault("sign_mode", None)
        if kwargs["sign_mode"] is not None:
            sign = kwargs["sign_mode"]

        self.precision = precision
        self._serialno = serialno
        self._serialno_header = serialno_header
        self.detect_numerics = detect_numerics

        self._sign = sign
        self.maxwidth = maxwidth

        self._ncol = 0
        self._data = BTTableData(self)

        self.rows = BTRowCollection(self)
        self.columns = BTColumnCollection(
            self, default_alignment, default_padding
        )

        self._header_separator = ""
        self._header_junction = ""
        self._column_separator = ""
        self._row_separator = ""
        self.border = ""
        self.set_style(enums.STYLE_DEFAULT)
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
    @deprecated("1.0.0", "1.2.0", BTRowCollection.insert)
    def insert_row(self, index, row):  # pragma: no cover
        return self.rows.insert(index, row)
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
        BTRowCollection.__len__,
        details="Use len(BeautifulTable.rows)' instead.",
    )
    def __len__(self):  # pragma: no cover
        return len(self.rows)
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
        BTRowCollection.__iter__,
        details="Use iter(BeautifulTable.rows)' instead.",
    )
    def __iter__(self):  # pragma: no cover
        return iter(self.rows)
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
    @deprecated("1.0.0", "1.2.0", BTRowCollection.filter)
    def filter(self, key):  # pragma: no cover
        return self.rows.filter(key)
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
    @deprecated("1.0.0", "1.2.0", BTRowCollection.header.fget)
    def serialno(self):  # pragma: no cover
        return self._serialno
github pri22296 / beautifultable / beautifultable / beautifultable.py View on Github external
    @deprecated("1.0.0", "1.2.0", BTRowCollection.pop)
    def pop_row(self, index=-1):  # pragma: no cover
        return self.rows.pop(index)