tesorotools-python 0.0.3__tar.gz → 0.0.5__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 (59) hide show
  1. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/.gitignore +3 -1
  2. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/PKG-INFO +1 -1
  3. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/pyproject.toml +1 -1
  4. tesorotools_python-0.0.5/src/tesorotools/assets/README.md +5 -0
  5. tesorotools_python-0.0.5/src/tesorotools/assets/fonts/README.md +1 -0
  6. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/table.py +3 -2
  7. tesorotools_python-0.0.5/src/tesorotools/utils/globals.py +14 -0
  8. tesorotools_python-0.0.3/src/tesorotools/utils/globals.py +0 -12
  9. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/README.md +0 -0
  10. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/README.md +0 -0
  11. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/barh_plots.yaml +0 -0
  12. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/data.yaml +0 -0
  13. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/dependencies.yaml +0 -0
  14. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/line_plots.yaml +0 -0
  15. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/offsets.yaml +0 -0
  16. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/tables.yaml +0 -0
  17. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/template.yaml +0 -0
  18. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/type_curves.yaml +0 -0
  19. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/__init__.py +0 -0
  20. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/__init__.py +0 -0
  21. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/barh_plot.py +0 -0
  22. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/line_plot.py +0 -0
  23. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/table.py +0 -0
  24. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/type_curve.py +0 -0
  25. {tesorotools_python-0.0.3/examples → tesorotools_python-0.0.5/src/tesorotools/assets}/plots.yaml +0 -0
  26. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5/src/tesorotools/assets}/tesoro.mplstyle +0 -0
  27. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/convert.py +0 -0
  28. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/README.md +0 -0
  29. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/__init__.py +0 -0
  30. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/debug.py +0 -0
  31. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/lseg.py +0 -0
  32. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/database/__init__.py +0 -0
  33. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/database/push.py +0 -0
  34. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/__init__.py +0 -0
  35. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/functions.py +0 -0
  36. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/node.py +0 -0
  37. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/resolution.py +0 -0
  38. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/main.py +0 -0
  39. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/offsets/__init__.py +0 -0
  40. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/offsets/offsets.py +0 -0
  41. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/offsets/outliers.py +0 -0
  42. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/__init__.py +0 -0
  43. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/__init__.py +0 -0
  44. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/content.py +0 -0
  45. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/images.py +0 -0
  46. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/section.py +0 -0
  47. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/headline.py +0 -0
  48. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/introduction.py +0 -0
  49. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/report.py +0 -0
  50. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/__init__.py +0 -0
  51. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/config.py +0 -0
  52. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/matplotlib.py +0 -0
  53. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/series.py +0 -0
  54. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/template.py +0 -0
  55. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/PKG-INFO +0 -0
  56. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/SOURCES.txt +0 -0
  57. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/dependency_links.txt +0 -0
  58. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/requires.txt +0 -0
  59. {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/top_level.txt +0 -0
@@ -4,7 +4,6 @@
4
4
  __pycache__
5
5
 
6
6
  data/
7
- assets/
8
7
  config/
9
8
  debug/
10
9
  tablas/
@@ -18,3 +17,6 @@ dist/
18
17
  *.docx#
19
18
 
20
19
  test/
20
+
21
+ # font files
22
+ *.otf
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tesorotools-python
3
- Version: 0.0.3
3
+ Version: 0.0.5
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.3"
3
+ version = "0.0.5"
4
4
  dependencies = ["psycopg2", "SQLAlchemy", "pandas", "matplotlib", "pyarrow", "python-docx", "openpyxl", "PyYAML", "babel", "eikon", "lseg-data"]
5
5
 
6
6
  [build-system]
@@ -0,0 +1,5 @@
1
+ En esta carpeta se guardarán todos los *assets* del proyecto, como
2
+
3
+ - [fonts](fonts/): Fuentes (archivos *.otf).
4
+ - [plots.yaml](plots.yaml): Archivo de configuración general para los gráficos.
5
+ - [tesoro.mplstyle](tesoro.mplstyle): Archivo de estilos *matplotlib* para los gráficos.
@@ -0,0 +1 @@
1
+ Archivos *.otf de fuentes. No los incluimos en el control de versiones.
@@ -14,10 +14,10 @@ from docx.table import _Cell as TableCell
14
14
  from yaml import MappingNode
15
15
 
16
16
  from tesorotools.utils.config import read_config
17
- from tesorotools.utils.globals import EXAMPLES
17
+ from tesorotools.utils.globals import PLOT_CONFIG_FILE
18
18
  from tesorotools.utils.template import TemplateLoader
19
19
 
20
- RENDER_CONFIG: dict[str, Any] = read_config(EXAMPLES / "plots.yaml")["table"]
20
+ RENDER_CONFIG: dict[str, Any] = read_config(PLOT_CONFIG_FILE)["table"]
21
21
 
22
22
  TEXTO_TABLAS = 9
23
23
 
@@ -214,6 +214,7 @@ def render_table(
214
214
  shade_table: pd.DataFrame,
215
215
  document: Document,
216
216
  block_sep: bool,
217
+ **kwargs,
217
218
  ) -> Table:
218
219
 
219
220
  horizontal: bool = isinstance(table.columns, pd.MultiIndex)
@@ -0,0 +1,14 @@
1
+ from pathlib import Path
2
+
3
+ BASE_PATH: Path = Path(__file__).parent.parent
4
+
5
+ DEBUG: Path = Path("debug")
6
+ CONFIG: Path = Path("config")
7
+ EXAMPLES: Path = Path("examples")
8
+
9
+ # various assets for the plots
10
+ ASSETS: Path = BASE_PATH / "assets"
11
+ FONTS: Path = ASSETS / "fonts"
12
+ STYLE_SHEET: Path = ASSETS / "tesoro.mplstyle"
13
+
14
+ PLOT_CONFIG_FILE: Path = ASSETS / "plots.yaml"
@@ -1,12 +0,0 @@
1
- from pathlib import Path
2
-
3
- DEBUG: Path = Path("debug")
4
- CONFIG: Path = Path("config")
5
- EXAMPLES: Path = Path("examples")
6
-
7
- ASSETS: Path = Path("assets")
8
- FONTS: Path = ASSETS / "fonts"
9
-
10
- STYLE_SHEET: Path = Path("tesoro.mplstyle")
11
-
12
- PLOT_CONFIG_FILE: Path = EXAMPLES / "plots.yaml"