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.
Files changed (53) hide show
  1. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/.gitignore +2 -0
  2. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/PKG-INFO +2 -1
  3. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/pyproject.toml +29 -16
  4. tesorotools_python-0.0.17/tesorotools/utils/shortcuts.py +32 -0
  5. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/__init__.py +0 -0
  6. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/__init__.py +0 -0
  7. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/barh_plot.py +0 -0
  8. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/line_plot.py +0 -0
  9. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/table.py +0 -0
  10. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/artists/type_curve.py +0 -0
  11. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/README.md +0 -0
  12. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Black.otf +0 -0
  13. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Bold.otf +0 -0
  14. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Extrabold.otf +0 -0
  15. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Extralight.otf +0 -0
  16. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Light.otf +0 -0
  17. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Medium.otf +0 -0
  18. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Regular.otf +0 -0
  19. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/CabinetGrotesk-Thin.otf +0 -0
  20. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/fonts/README.md +0 -0
  21. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/plots.yaml +0 -0
  22. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/assets/tesoro.mplstyle +0 -0
  23. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/convert.py +0 -0
  24. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/data_sources/README.md +0 -0
  25. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/data_sources/__init__.py +0 -0
  26. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/data_sources/debug.py +0 -0
  27. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/data_sources/lseg.py +0 -0
  28. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/database/__init__.py +0 -0
  29. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/database/push.py +0 -0
  30. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/__init__.py +0 -0
  31. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/functions.py +0 -0
  32. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/node.py +0 -0
  33. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/dependencies/resolution.py +0 -0
  34. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/main.py +0 -0
  35. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/offsets/__init__.py +0 -0
  36. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/offsets/offsets.py +0 -0
  37. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/offsets/outliers.py +0 -0
  38. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/__init__.py +0 -0
  39. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/__init__.py +0 -0
  40. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/content.py +0 -0
  41. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/images.py +0 -0
  42. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/section.py +0 -0
  43. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/subtitle.py +0 -0
  44. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/table.py +0 -0
  45. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/text.py +0 -0
  46. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/content/title.py +0 -0
  47. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/render/report.py +0 -0
  48. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/__init__.py +0 -0
  49. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/config.py +0 -0
  50. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/globals.py +0 -0
  51. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/matplotlib.py +0 -0
  52. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/series.py +0 -0
  53. {tesorotools_python-0.0.16 → tesorotools_python-0.0.17}/tesorotools/utils/template.py +0 -0
@@ -3,6 +3,8 @@
3
3
 
4
4
  __pycache__
5
5
 
6
+ .vscode/
7
+
6
8
  data/
7
9
  config/
8
10
  debug/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tesorotools-python
3
- Version: 0.0.16
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.16"
4
- dependencies = ["psycopg2", "SQLAlchemy", "pandas", "matplotlib", "pyarrow", "python-docx", "openpyxl", "PyYAML", "babel", "eikon", "lseg-data"]
5
-
6
- [build-system]
7
- requires = ["hatchling"]
8
- build-backend = "hatchling.build"
9
-
10
- [tool.hatch.build.targets.wheel]
11
- packages = ["src/tesorotools"]
12
- artifacts = ["src/tesorotools/assets/fonts/*.otf"]
13
-
14
- [tool.hatch.build.targets.sdist]
15
- packages = ["src/tesorotools"]
16
- artifacts = ["src/tesorotools/assets/fonts/*.otf"]
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