tesorotools-python 0.0.11__tar.gz → 0.0.13__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.
Files changed (52) hide show
  1. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/PKG-INFO +1 -1
  2. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/pyproject.toml +1 -1
  3. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/content/table.py +13 -3
  4. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/.gitignore +0 -0
  5. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/__init__.py +0 -0
  6. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/artists/__init__.py +0 -0
  7. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/artists/barh_plot.py +0 -0
  8. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/artists/line_plot.py +0 -0
  9. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/artists/table.py +0 -0
  10. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/artists/type_curve.py +0 -0
  11. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/README.md +0 -0
  12. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/CabinetGrotesk-Black.otf +0 -0
  13. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/CabinetGrotesk-Bold.otf +0 -0
  14. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/CabinetGrotesk-Extrabold.otf +0 -0
  15. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/CabinetGrotesk-Extralight.otf +0 -0
  16. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/CabinetGrotesk-Light.otf +0 -0
  17. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/CabinetGrotesk-Medium.otf +0 -0
  18. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/CabinetGrotesk-Regular.otf +0 -0
  19. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/CabinetGrotesk-Thin.otf +0 -0
  20. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/fonts/README.md +0 -0
  21. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/plots.yaml +0 -0
  22. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/assets/tesoro.mplstyle +0 -0
  23. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/convert.py +0 -0
  24. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/data_sources/README.md +0 -0
  25. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/data_sources/__init__.py +0 -0
  26. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/data_sources/debug.py +0 -0
  27. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/data_sources/lseg.py +0 -0
  28. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/database/__init__.py +0 -0
  29. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/database/push.py +0 -0
  30. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/dependencies/__init__.py +0 -0
  31. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/dependencies/functions.py +0 -0
  32. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/dependencies/node.py +0 -0
  33. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/dependencies/resolution.py +0 -0
  34. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/main.py +0 -0
  35. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/offsets/__init__.py +0 -0
  36. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/offsets/offsets.py +0 -0
  37. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/offsets/outliers.py +0 -0
  38. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/__init__.py +0 -0
  39. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/content/__init__.py +0 -0
  40. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/content/content.py +0 -0
  41. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/content/images.py +0 -0
  42. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/content/section.py +0 -0
  43. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/content/text.py +0 -0
  44. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/headline.py +0 -0
  45. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/introduction.py +0 -0
  46. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/render/report.py +0 -0
  47. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/utils/__init__.py +0 -0
  48. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/utils/config.py +0 -0
  49. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/utils/globals.py +0 -0
  50. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/utils/matplotlib.py +0 -0
  51. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/utils/series.py +0 -0
  52. {tesorotools_python-0.0.11 → tesorotools_python-0.0.13}/tesorotools/utils/template.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tesorotools-python
3
- Version: 0.0.11
3
+ Version: 0.0.13
4
4
  Requires-Dist: babel
5
5
  Requires-Dist: eikon
6
6
  Requires-Dist: lseg-data
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tesorotools-python"
3
- version = "0.0.11"
3
+ version = "0.0.13"
4
4
  dependencies = ["psycopg2", "SQLAlchemy", "pandas", "matplotlib", "pyarrow", "python-docx", "openpyxl", "PyYAML", "babel", "eikon", "lseg-data"]
5
5
 
6
6
  [build-system]
@@ -120,7 +120,9 @@ def _fill_index_names(
120
120
  start_row: int = 2 if horizontal else 1
121
121
 
122
122
  index_names: pd.Index = (
123
- index if horizontal else index.get_level_values(level=1)
123
+ index
124
+ if (horizontal or isinstance(index, pd.Index))
125
+ else index.get_level_values(level=1)
124
126
  )
125
127
 
126
128
  for idx, name in enumerate(index_names, start=start_row):
@@ -192,8 +194,12 @@ def _fill_content(
192
194
  for (x, y), value in np.ndenumerate(values):
193
195
  cell: TableCell = table_docx.cell(x + start_row, y + 1)
194
196
  cell.text = value if value is not None else ""
195
- color: str | None = color_table.values[x, y]
196
- shade: str | None = shade_table.values[x, y]
197
+ color: str | None = (
198
+ color_table.values[x, y] if color_table is not None else None
199
+ )
200
+ shade: str | None = (
201
+ shade_table.values[x, y] if shade_table is not None else None
202
+ )
197
203
  if color is not None:
198
204
  cell.paragraphs[0].runs[0].font.color.rgb = RGBColor.from_string(
199
205
  color
@@ -279,6 +285,10 @@ class Table:
279
285
  )
280
286
 
281
287
  def render(self, document: Document) -> Document:
288
+ heading = document.add_heading(self._title, level=2)
289
+ heading.alignment = CENTER
290
+ heading.runs[0].font.size = 10
291
+
282
292
  document = render_table(
283
293
  self._data,
284
294
  self._color,