knify 1.8.51__tar.gz → 1.8.52__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {knify-1.8.51 → knify-1.8.52}/PKG-INFO +1 -1
- {knify-1.8.51 → knify-1.8.52}/knify/excelutil.py +8 -2
- {knify-1.8.51 → knify-1.8.52}/knify/help.py +1 -1
- {knify-1.8.51 → knify-1.8.52}/knify.egg-info/PKG-INFO +1 -1
- {knify-1.8.51 → knify-1.8.52}/LICENSE +0 -0
- {knify-1.8.51 → knify-1.8.52}/README.md +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify/__init__.py +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify/dateutil.py +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify/fileutil.py +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify/listutil.py +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify/logger.py +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify/objutil.py +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify/threadutil.py +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify/warnutil.py +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify.egg-info/SOURCES.txt +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify.egg-info/dependency_links.txt +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify.egg-info/requires.txt +0 -0
- {knify-1.8.51 → knify-1.8.52}/knify.egg-info/top_level.txt +0 -0
- {knify-1.8.51 → knify-1.8.52}/setup.cfg +0 -0
- {knify-1.8.51 → knify-1.8.52}/setup.py +0 -0
@@ -22,9 +22,15 @@ class HeaderBuilder:
|
|
22
22
|
self.default_transformer = transformer
|
23
23
|
return self
|
24
24
|
|
25
|
-
def
|
25
|
+
def set_header_names(self, names: list[str] = None):
|
26
|
+
for index_, name in enumerate(names):
|
27
|
+
self.data.append(Header(len(self.data), name, self.default_transformer))
|
28
|
+
return self
|
29
|
+
|
30
|
+
def append(self, index: int = None, name: str | None = None, transformer: Callable[[object], object] = None):
|
31
|
+
target_tindex = index if index is not None else len(self.data)
|
26
32
|
target_transformer = transformer if transformer is not None else self.default_transformer
|
27
|
-
self.data.append(Header(
|
33
|
+
self.data.append(Header(target_tindex, name, target_transformer))
|
28
34
|
return self
|
29
35
|
|
30
36
|
def to_headers(self):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|