PyEnvToolsKit 1.0.0__tar.gz → 1.1.0__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,5 +1,5 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyEnvToolsKit
3
- Version: 1.0.0
3
+ Version: 1.1.0
4
4
  Summary: Bibliothèque permettant de simuler un environement
5
5
  Requires-Dist: DecoratorsToolKit>=1.0.0
@@ -13,6 +13,11 @@ class Environement:
13
13
  def add(self, value: dict):
14
14
  self.vars.append(value)
15
15
 
16
+ def set(self, key: str, newValue: Any):
17
+ for value in self.vars:
18
+ if key in value:
19
+ value[key] = newValue
20
+
16
21
  def get(self, key: str):
17
22
 
18
23
  for value in self.vars:
@@ -0,0 +1,7 @@
1
+ from .environement import Environement
2
+
3
+ from typing import Any
4
+
5
+ def setVars(key: str, newValue: Any):
6
+
7
+ env = Environement()
@@ -1,5 +1,5 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyEnvToolsKit
3
- Version: 1.0.0
3
+ Version: 1.1.0
4
4
  Summary: Bibliothèque permettant de simuler un environement
5
5
  Requires-Dist: DecoratorsToolKit>=1.0.0
@@ -4,6 +4,7 @@ PyEnv/env.py
4
4
  PyEnv/environement.py
5
5
  PyEnv/getVars.py
6
6
  PyEnv/seeder.py
7
+ PyEnv/setVars.py
7
8
  PyEnv/test.py
8
9
  PyEnv/variablesEnv.py
9
10
  PyEnvToolsKit.egg-info/PKG-INFO
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "PyEnvToolsKit"
7
- version = "1.0.0"
7
+ version = "1.1.0"
8
8
  description = "Bibliothèque permettant de simuler un environement"
9
9
 
10
10
  dependencies = [
File without changes