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.
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/.gitignore +3 -1
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/PKG-INFO +1 -1
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/pyproject.toml +1 -1
- tesorotools_python-0.0.5/src/tesorotools/assets/README.md +5 -0
- tesorotools_python-0.0.5/src/tesorotools/assets/fonts/README.md +1 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/table.py +3 -2
- tesorotools_python-0.0.5/src/tesorotools/utils/globals.py +14 -0
- tesorotools_python-0.0.3/src/tesorotools/utils/globals.py +0 -12
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/README.md +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/README.md +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/barh_plots.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/data.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/dependencies.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/line_plots.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/offsets.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/tables.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/template.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/examples/type_curves.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/barh_plot.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/line_plot.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/table.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/artists/type_curve.py +0 -0
- {tesorotools_python-0.0.3/examples → tesorotools_python-0.0.5/src/tesorotools/assets}/plots.yaml +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5/src/tesorotools/assets}/tesoro.mplstyle +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/convert.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/README.md +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/debug.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/lseg.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/database/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/database/push.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/functions.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/node.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/resolution.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/main.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/offsets/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/offsets/offsets.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/offsets/outliers.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/content.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/images.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/section.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/headline.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/introduction.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/report.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/__init__.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/config.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/matplotlib.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/series.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/utils/template.py +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/PKG-INFO +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/SOURCES.txt +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/dependency_links.txt +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/requires.txt +0 -0
- {tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/top_level.txt +0 -0
|
@@ -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.
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/table.py
RENAMED
|
@@ -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
|
|
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(
|
|
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"
|
|
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
|
{tesorotools_python-0.0.3/examples → tesorotools_python-0.0.5/src/tesorotools/assets}/plots.yaml
RENAMED
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5/src/tesorotools/assets}/tesoro.mplstyle
RENAMED
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/README.md
RENAMED
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/data_sources/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/__init__.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/functions.py
RENAMED
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/dependencies/resolution.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/__init__.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/content.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/images.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/content/section.py
RENAMED
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools/render/introduction.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/PKG-INFO
RENAMED
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/requires.txt
RENAMED
|
File without changes
|
{tesorotools_python-0.0.3 → tesorotools_python-0.0.5}/src/tesorotools_python.egg-info/top_level.txt
RENAMED
|
File without changes
|