tesorotools-python 0.0.3__py2.py3-none-any.whl → 0.0.5__py2.py3-none-any.whl
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/assets/README.md +5 -0
- tesorotools/assets/fonts/README.md +1 -0
- tesorotools/assets/plots.yaml +43 -0
- tesorotools/assets/tesoro.mplstyle +21 -0
- tesorotools/render/content/table.py +3 -2
- tesorotools/utils/globals.py +6 -4
- {tesorotools_python-0.0.3.dist-info → tesorotools_python-0.0.5.dist-info}/METADATA +1 -1
- {tesorotools_python-0.0.3.dist-info → tesorotools_python-0.0.5.dist-info}/RECORD +9 -5
- {tesorotools_python-0.0.3.dist-info → tesorotools_python-0.0.5.dist-info}/WHEEL +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.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# general plot config file
|
|
2
|
+
|
|
3
|
+
style:
|
|
4
|
+
font: Cabinet Grotesk
|
|
5
|
+
|
|
6
|
+
figure:
|
|
7
|
+
dpi: 500
|
|
8
|
+
layout: constrained
|
|
9
|
+
|
|
10
|
+
ax:
|
|
11
|
+
spines:
|
|
12
|
+
color: gray
|
|
13
|
+
linewidth: 1
|
|
14
|
+
baseline:
|
|
15
|
+
color: "#d9e1fc"
|
|
16
|
+
linestyle: solid
|
|
17
|
+
linewidth: 1
|
|
18
|
+
zorder: 1
|
|
19
|
+
|
|
20
|
+
type_curve:
|
|
21
|
+
last:
|
|
22
|
+
alpha: 0.2
|
|
23
|
+
color: C1
|
|
24
|
+
current:
|
|
25
|
+
alpha: 0.3
|
|
26
|
+
color: C0
|
|
27
|
+
line:
|
|
28
|
+
linewidth: 2
|
|
29
|
+
marker: D
|
|
30
|
+
color: C0
|
|
31
|
+
legend_sep: -0.1
|
|
32
|
+
|
|
33
|
+
barh:
|
|
34
|
+
highlight_factor: 0.4
|
|
35
|
+
padding: 5
|
|
36
|
+
|
|
37
|
+
line:
|
|
38
|
+
legend_sep: -0.125
|
|
39
|
+
ncol: 5
|
|
40
|
+
|
|
41
|
+
table:
|
|
42
|
+
style: Light Shading Accent 1
|
|
43
|
+
autofit: False
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# fonts
|
|
2
|
+
font.size: 12.0
|
|
3
|
+
xtick.labelsize: 12.0
|
|
4
|
+
ytick.labelsize: 12.0
|
|
5
|
+
legend.fontsize: 12.0
|
|
6
|
+
|
|
7
|
+
# modified dashed_pattern
|
|
8
|
+
lines.dashed_pattern: 10, 5
|
|
9
|
+
|
|
10
|
+
# markers
|
|
11
|
+
lines.markersize: 8
|
|
12
|
+
|
|
13
|
+
# grids
|
|
14
|
+
grid.color: d9e1fc
|
|
15
|
+
grid.linestyle: dashed
|
|
16
|
+
grid.linewidth: 0.5
|
|
17
|
+
grid.alpha: 0.5
|
|
18
|
+
|
|
19
|
+
# color palette
|
|
20
|
+
axes.prop_cycle: cycler('color', ['001e93', 'ffbd4c', '6d6d6d', '000000', 'e6821e', '2957ff', 'fba737', '5da6ff', '00ebb2', '6d0000', '009200', 'df2871', 'd9e1fc', 'ffddab'])
|
|
21
|
+
|
|
@@ -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)
|
tesorotools/utils/globals.py
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
|
|
3
|
+
BASE_PATH: Path = Path(__file__).parent.parent
|
|
4
|
+
|
|
3
5
|
DEBUG: Path = Path("debug")
|
|
4
6
|
CONFIG: Path = Path("config")
|
|
5
7
|
EXAMPLES: Path = Path("examples")
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
# various assets for the plots
|
|
10
|
+
ASSETS: Path = BASE_PATH / "assets"
|
|
8
11
|
FONTS: Path = ASSETS / "fonts"
|
|
12
|
+
STYLE_SHEET: Path = ASSETS / "tesoro.mplstyle"
|
|
9
13
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
PLOT_CONFIG_FILE: Path = EXAMPLES / "plots.yaml"
|
|
14
|
+
PLOT_CONFIG_FILE: Path = ASSETS / "plots.yaml"
|
|
@@ -6,6 +6,10 @@ tesorotools/artists/barh_plot.py,sha256=3KkoT0DLkctzYNMV3Pz1EcAT9i29YGYSkTLTFNb3
|
|
|
6
6
|
tesorotools/artists/line_plot.py,sha256=BqOHnmVB6fL0ElN_WDpvCzP0L7O2-mp6ULfHo3qwiCI,3405
|
|
7
7
|
tesorotools/artists/table.py,sha256=CjyjWivn5YrNP5m8_eWi-ZA7R1ts3aIhATrYMEgTuOU,7651
|
|
8
8
|
tesorotools/artists/type_curve.py,sha256=VGFCCyMVNwjliLK9usyw_nLC6emKcJYOSV1pmWJQNXk,6463
|
|
9
|
+
tesorotools/assets/README.md,sha256=pB77vD_MvE26ftVNcZuj3iS0y-6g-WzqHb5OScDkQ3I,289
|
|
10
|
+
tesorotools/assets/plots.yaml,sha256=O-6bFprWFNHJgMr-ehl_TPkDvr48XwK8V9k7CxL__ts,578
|
|
11
|
+
tesorotools/assets/tesoro.mplstyle,sha256=aDzJRln2EA7U-1yo_yHoAHikntEdpFSFTIvKJczN8To,477
|
|
12
|
+
tesorotools/assets/fonts/README.md,sha256=o58YkAtgrA9fDmH6ZyYrBEDcwo78050N-yS7UdErN-A,71
|
|
9
13
|
tesorotools/data_sources/README.md,sha256=iMAeLsv9Xk3IogDh8nCt2pSeTqCHmXA66KPvV25Za7I,261
|
|
10
14
|
tesorotools/data_sources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
15
|
tesorotools/data_sources/debug.py,sha256=fmUHt7f3dAd6qUBo5D_kTn__MgGC0hisdaC6sFXHKNg,877
|
|
@@ -27,13 +31,13 @@ tesorotools/render/content/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
|
|
|
27
31
|
tesorotools/render/content/content.py,sha256=m3USJXle5NctlQJs-d0tgSCvb-aNoCy2v7sZFqHZ1B8,409
|
|
28
32
|
tesorotools/render/content/images.py,sha256=C0Tkrud17MqH_doenn5H-917kT6XCUdCmNek9CZkEXc,5040
|
|
29
33
|
tesorotools/render/content/section.py,sha256=EugPBsb5mAWKRONAHQU-qCbKFQ419XU2vDJHQ0s_i3U,1682
|
|
30
|
-
tesorotools/render/content/table.py,sha256=
|
|
34
|
+
tesorotools/render/content/table.py,sha256=JjzmFI4CAENnSj8S0YX7-Y2HJtjZXZ6ERer3pa0Ju1c,9436
|
|
31
35
|
tesorotools/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
36
|
tesorotools/utils/config.py,sha256=TMD_6OB2RS2sjM17tYwFnOtcXZgIxs-Ec8FYA3Qokuc,1056
|
|
33
|
-
tesorotools/utils/globals.py,sha256=
|
|
37
|
+
tesorotools/utils/globals.py,sha256=c5PBpZwpVO_nOetxyIk8j32Vx3GFlsgdYbwwfSSlv1M,374
|
|
34
38
|
tesorotools/utils/matplotlib.py,sha256=tKidZIcDLKWgawIOJggWwVoaTMsrjw1WEJQouydSYbI,1197
|
|
35
39
|
tesorotools/utils/series.py,sha256=eUEUOdzDfA7YbgO4o6KtxwJOL5cQYdqLjrdvuQ7Hqhc,1168
|
|
36
40
|
tesorotools/utils/template.py,sha256=xpBVad28gG9ZLVwd9e0dTWsGsbujjmVcCPEW2mIKEJo,4917
|
|
37
|
-
tesorotools_python-0.0.
|
|
38
|
-
tesorotools_python-0.0.
|
|
39
|
-
tesorotools_python-0.0.
|
|
41
|
+
tesorotools_python-0.0.5.dist-info/METADATA,sha256=CZlzJMl1Fdvu7RomMFhz9YijdQJgDTYZQB7TEO2VJEA,323
|
|
42
|
+
tesorotools_python-0.0.5.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
|
|
43
|
+
tesorotools_python-0.0.5.dist-info/RECORD,,
|
|
File without changes
|