orionis 0.689.0__py3-none-any.whl → 0.691.0__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.
@@ -1,11 +1,12 @@
1
1
  #---------------------------------------------------------------------------
2
2
  # Framework Metadata
3
3
  #---------------------------------------------------------------------------
4
+
4
5
  # Name of the framework
5
6
  NAME = "orionis"
6
7
 
7
8
  # Current version of the framework
8
- VERSION = "0.689.0"
9
+ VERSION = "0.691.0"
9
10
 
10
11
  # Full name of the author or maintainer of the project
11
12
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -19,6 +20,7 @@ DESCRIPTION = "Orionis Framework – Elegant, Fast, and Powerful."
19
20
  #---------------------------------------------------------------------------
20
21
  # Project URLs
21
22
  #---------------------------------------------------------------------------
23
+
22
24
  # URL to the project's skeleton or template repository (for initial setup)
23
25
  SKELETON = "https://github.com/orionis-framework/skeleton"
24
26
 
@@ -34,12 +36,14 @@ API = "https://pypi.org/pypi/orionis/json"
34
36
  #---------------------------------------------------------------------------
35
37
  # Python Requirements
36
38
  #---------------------------------------------------------------------------
39
+
37
40
  # Minimum Python version required to run the project
38
41
  PYTHON_REQUIRES = ">=3.12"
39
42
 
40
43
  #---------------------------------------------------------------------------
41
44
  # Project Classifiers
42
45
  #---------------------------------------------------------------------------
46
+
43
47
  # List of classifiers that provide metadata about the project for PyPI and other tools.
44
48
  CLASSIFIERS = [
45
49
  'Development Status :: 3 - Alpha',
@@ -63,6 +67,7 @@ CLASSIFIERS = [
63
67
  #---------------------------------------------------------------------------
64
68
  # Project Keywords
65
69
  #---------------------------------------------------------------------------
70
+
66
71
  # List of keywords that describe the project and help with discoverability on package indexes.
67
72
  KEYWORDS = [
68
73
  "orionis",
@@ -76,6 +81,7 @@ KEYWORDS = [
76
81
  #---------------------------------------------------------------------------
77
82
  # Project Dependencies
78
83
  #---------------------------------------------------------------------------
84
+
79
85
  # List of required packages and their minimum versions.
80
86
  REQUIRES = [
81
87
  'apscheduler>=3.11.0',
@@ -89,22 +95,36 @@ REQUIRES = [
89
95
  #---------------------------------------------------------------------------
90
96
  # Function to retrieve the icon SVG code
91
97
  #---------------------------------------------------------------------------
98
+
92
99
  # This function reads the 'icon.svg' file from the current directory and returns its content.
93
100
  def icon():
94
101
  """
95
- Returns the SVG code for the project's icon image.
102
+ Retrieve the SVG code for the project's icon image.
96
103
 
97
- Reads the 'icon.svg' file from the current directory and returns its content.
104
+ This function reads the 'icon.svg' file located in the same directory as this module and returns its content as a string. If the file is not found or cannot be read, it returns None.
98
105
 
99
- Returns:
100
- str: SVG code as a string, or None if the file is not found.
106
+ Returns
107
+ -------
108
+ str or None
109
+ The SVG code as a string if the file is successfully read, otherwise None.
101
110
  """
102
111
  import os
103
112
 
104
- path = os.path.join(os.path.dirname(__file__), 'icon.svg')
113
+ # Construct the absolute path to the 'icon.svg' file in the current directory
114
+ path = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'icon.svg')
105
115
 
106
116
  try:
117
+
118
+ # Attempt to open and read the SVG file
107
119
  with open(path, 'r', encoding='utf-8') as f:
108
120
  return f.read()
109
- except FileNotFoundError:
121
+
122
+ except OSError:
123
+
124
+ # Return None if the file is not found or unreadable
125
+ return None
126
+
127
+ except Exception:
128
+
129
+ # Return None for any other exceptions that may occur
110
130
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.689.0
3
+ Version: 0.691.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -207,7 +207,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=IrPQJwvQVLRm5Qnz0Cxon4
207
207
  orionis/foundation/providers/testing_provider.py,sha256=eI1p2lUlxl25b5Z487O4nmqLE31CTDb4c3Q21xFadkE,1615
208
208
  orionis/foundation/providers/workers_provider.py,sha256=GdHENYV_yGyqmHJHn0DCyWmWId5xWjD48e6Zq2PGCWY,1674
209
209
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
210
- orionis/metadata/framework.py,sha256=RvQJAHXVod1gyZM965VXTL93wvrc2r2cZckMb82GLKs,4089
210
+ orionis/metadata/framework.py,sha256=mozmW4PLxWofbBRZRC-v6uk1Xx8YNc-dYVsjFWv8DSc,4570
211
211
  orionis/metadata/package.py,sha256=s1JeGJPwdVh4jO3IOfmpwMuJ_oX6Vf9NL7jgPEQNf5Y,16050
212
212
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
213
213
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -394,8 +394,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
394
394
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
395
395
  orionis/test/view/render.py,sha256=arysoswhkV2vUd2aVMZRPpmH317jaWbgjDpQ_AWQ5AE,5663
396
396
  orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
397
- orionis-0.689.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
398
- orionis-0.689.0.dist-info/METADATA,sha256=QeGd8dQc1R-LbiKn3Oat5Ljhi7lqM2EMYm2SGhr4KoQ,4772
399
- orionis-0.689.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
400
- orionis-0.689.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
401
- orionis-0.689.0.dist-info/RECORD,,
397
+ orionis-0.691.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
398
+ orionis-0.691.0.dist-info/METADATA,sha256=yYr4WLRPC_fk3XjhgdlK8XlE-A753XgIa0sOkdT58f8,4772
399
+ orionis-0.691.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
400
+ orionis-0.691.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
401
+ orionis-0.691.0.dist-info/RECORD,,