From 09ac8f46403a51658cfddf63d62f6c5eef9fc621 Mon Sep 17 00:00:00 2001 From: Vinayak Mehta Date: Fri, 7 Sep 2018 05:17:09 +0530 Subject: [PATCH] Add property n to TableList --- camelot/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/camelot/core.py b/camelot/core.py index 2003979..015c533 100644 --- a/camelot/core.py +++ b/camelot/core.py @@ -342,6 +342,10 @@ class TableList(object): def _format_func(table, f): return getattr(table, 'to_{}'.format(f)) + @property + def n(self): + return len(self._tables) + def _write_file(self, f=None, **kwargs): dirname = kwargs.get('dirname') root = kwargs.get('root')