pyquoks 2.3.1__tar.gz → 2.3.2__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.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Denis Titovets
3
+ Copyright (c) 2026 Denis Titovets
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyquoks
3
- Version: 2.3.1
3
+ Version: 2.3.2
4
4
  Summary: Пакет PyPI для часто используемых модулей в проектах diquoks
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.14
13
13
  Requires-Dist: annotated-types (==0.7.0)
14
14
  Requires-Dist: blinker (==1.9.0)
15
- Requires-Dist: certifi (==2025.11.12)
15
+ Requires-Dist: certifi (==2026.1.4)
16
16
  Requires-Dist: charset-normalizer (==3.4.4)
17
17
  Requires-Dist: click (==8.3.1)
18
18
  Requires-Dist: colorama (==0.4.6)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pyquoks"
3
- version = "2.3.1"
3
+ version = "2.3.2"
4
4
  description = "Пакет PyPI для часто используемых модулей в проектах diquoks"
5
5
  authors = [
6
6
  { name = "Denis Titovets <den232titovets@yandex.ru>" }
@@ -11,7 +11,7 @@ requires-python = ">=3.14"
11
11
  dependencies = [
12
12
  "annotated-types (==0.7.0)",
13
13
  "blinker (==1.9.0)",
14
- "certifi (==2025.11.12)",
14
+ "certifi (==2026.1.4)",
15
15
  "charset-normalizer (==3.4.4)",
16
16
  "click (==8.3.1)",
17
17
  "colorama (==0.4.6)",
@@ -0,0 +1,11 @@
1
+ __all__ = [
2
+ "data",
3
+ "utils",
4
+ "localhost",
5
+ "test",
6
+ ]
7
+
8
+ from . import data
9
+ from . import utils
10
+ from . import localhost
11
+ from . import test
@@ -160,6 +160,23 @@ class AssetsProvider(utils._HasRequiredAttributes):
160
160
  )
161
161
 
162
162
 
163
+ class EnvironmentProvider:
164
+ """
165
+ Class for providing environment variables
166
+ """
167
+
168
+ def __init__(self) -> None:
169
+ self.load_variables()
170
+
171
+ def load_variables(self) -> None:
172
+ """
173
+ Loads specified environment variables
174
+ """
175
+
176
+ for attribute in self.__class__.__annotations__.keys():
177
+ setattr(self, attribute, os.getenv(attribute, None))
178
+
179
+
163
180
  class StringsProvider:
164
181
  """
165
182
  Class for providing various strings data
@@ -1,8 +0,0 @@
1
- __all__ = [
2
- "data",
3
- "utils",
4
- "localhost",
5
- "test",
6
- ]
7
-
8
- from . import data, utils, localhost, test
File without changes
File without changes
File without changes