tesorotools-python 0.0.16__tar.gz → 0.0.17__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.16 → tesorotools_python-0.0.17}/.gitignore +2 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/PKG-INFO +2 -1
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/pyproject.toml +29 -16
- tesorotools_python-0.0.17/tesorotools/utils/shortcuts.py +32 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/barh_plot.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/line_plot.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/table.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/type_curve.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/README.md +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Black.otf +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Bold.otf +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Extrabold.otf +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Extralight.otf +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Light.otf +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Medium.otf +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Regular.otf +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Thin.otf +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/README.md +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/plots.yaml +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/tesoro.mplstyle +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/convert.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/data_sources/README.md +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/data_sources/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/data_sources/debug.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/data_sources/lseg.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/database/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/database/push.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/functions.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/node.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/resolution.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/main.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/offsets/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/offsets/offsets.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/offsets/outliers.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/content.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/images.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/section.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/subtitle.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/table.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/text.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/title.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/report.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/__init__.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/config.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/globals.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/matplotlib.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/series.py +0 -0
- {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/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.
|
|
3
|
+
Version: 0.0.17
|
|
4
4
|
Requires-Dist: babel
|
|
5
5
|
Requires-Dist: eikon
|
|
6
6
|
Requires-Dist: lseg-data
|
|
@@ -10,5 +10,6 @@ Requires-Dist: pandas
|
|
|
10
10
|
Requires-Dist: psycopg2
|
|
11
11
|
Requires-Dist: pyarrow
|
|
12
12
|
Requires-Dist: python-docx
|
|
13
|
+
Requires-Dist: pywin32>=311; sys_platform != 'linux'
|
|
13
14
|
Requires-Dist: pyyaml
|
|
14
15
|
Requires-Dist: sqlalchemy
|
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
[project]
|
|
2
|
-
name = "tesorotools-python"
|
|
3
|
-
version = "0.0.
|
|
4
|
-
dependencies = [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
[project]
|
|
2
|
+
name = "tesorotools-python"
|
|
3
|
+
version = "0.0.17"
|
|
4
|
+
dependencies = [
|
|
5
|
+
"psycopg2",
|
|
6
|
+
"SQLAlchemy",
|
|
7
|
+
"pandas",
|
|
8
|
+
"matplotlib",
|
|
9
|
+
"pyarrow",
|
|
10
|
+
"python-docx",
|
|
11
|
+
"openpyxl",
|
|
12
|
+
"PyYAML",
|
|
13
|
+
"babel",
|
|
14
|
+
"eikon",
|
|
15
|
+
"lseg-data",
|
|
16
|
+
"pywin32>=311; sys_platform != 'linux'"
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
[build-system]
|
|
20
|
+
requires = ["hatchling"]
|
|
21
|
+
build-backend = "hatchling.build"
|
|
22
|
+
|
|
23
|
+
[tool.hatch.build.targets.wheel]
|
|
24
|
+
packages = ["src/tesorotools"]
|
|
25
|
+
artifacts = ["src/tesorotools/assets/fonts/*.otf"]
|
|
26
|
+
|
|
27
|
+
[tool.hatch.build.targets.sdist]
|
|
28
|
+
packages = ["src/tesorotools"]
|
|
29
|
+
artifacts = ["src/tesorotools/assets/fonts/*.otf"]
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import platform
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
|
|
4
|
+
import win32com.client
|
|
5
|
+
from win32com.client import CDispatch
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# this a good candidate to be added to tesorotools-python
|
|
9
|
+
def resolve_shortcut(shortcut: Path) -> Path:
|
|
10
|
+
"""Returns the real path behind a shortcut
|
|
11
|
+
|
|
12
|
+
Parameters
|
|
13
|
+
----------
|
|
14
|
+
shortcut : Path
|
|
15
|
+
Path of the shortcut
|
|
16
|
+
|
|
17
|
+
Returns
|
|
18
|
+
-------
|
|
19
|
+
Path
|
|
20
|
+
Real path behind the shortcut
|
|
21
|
+
"""
|
|
22
|
+
system: str = platform.system()
|
|
23
|
+
if system == "Linux":
|
|
24
|
+
# In linux this is straightforward
|
|
25
|
+
return shortcut
|
|
26
|
+
elif system == "Windows":
|
|
27
|
+
# Little workaround with windows
|
|
28
|
+
shell: CDispatch = win32com.client.Dispatch("WScript.Shell")
|
|
29
|
+
return Path(shell.CreateShortCut(str(shortcut)).Targetpath)
|
|
30
|
+
else:
|
|
31
|
+
# Just return the same if we don't know the OS
|
|
32
|
+
return shortcut
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/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.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/__init__.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/functions.py
RENAMED
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/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.16 → tesorotools_python-0.0.17}/tesorotools/render/content/__init__.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/content.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/images.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/section.py
RENAMED
|
File without changes
|
{tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/subtitle.py
RENAMED
|
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
|