tabular-reader 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tabular-reader
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Read XLSX, XLS and CSV files with a uniform interface Read XLSX, XLS and CSV files with a uniform interface
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "tabular-reader"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "Read XLSX, XLS and CSV files with a uniform interface Read XLSX, XLS and CSV files with a uniform interface"
5
5
  authors = ["arkhan <arkhan@riseup.net>"]
6
6
  license = "MIT"
@@ -2,5 +2,5 @@
2
2
 
3
3
  from .reader import TabularReader
4
4
 
5
- __version__ = "0.1.2"
5
+ __version__ = "0.1.3"
6
6
  __all__ = ["TabularReader"]
@@ -92,6 +92,7 @@ class TabularReader:
92
92
  restval=None,
93
93
  restkey=None,
94
94
  skip_blank_lines=False,
95
+ skip_rows=0,
95
96
  *args,
96
97
  **kwargs,
97
98
  ):
@@ -108,6 +109,9 @@ class TabularReader:
108
109
  else:
109
110
  raise ValueError(f"Unsupported format: {file_format}")
110
111
 
112
+ if skip_rows:
113
+ filtered_data = filtered_data[skip_rows:]
114
+
111
115
  self.reader = iter(filtered_data)
112
116
  self._fieldnames = fieldnames
113
117
  self.restkey = restkey
File without changes