Metadata-Version: 2.1
Name: GlobalVars
Version: 0.0.4
Summary: Using environment variable to store global vars to the enrite project
Home-page: https://github.com/mrotame/GlobalVars
Author: Matheus Menezes Almeida
Author-email: mrotame@gmail.com
License: UNKNOWN
Description: # GlobalVars
         A way to implement global vars between classes using the environment variable "os.environ"
        
        ## Importing
        ``` 
        from globalVars import GlobalVars;
        gv = GlobalVars()
        ```
        
        ## Methods
        This class has five classes to be used:
        
        * setVar
        	* Description: Set a new variable
        	* Params: Accepts a `Dictionary` with `'Name':Value` containing one or more vars to add 
        * getVar
        	* Description: Get a setted variable
        	* Params: Accepts a `String` with `'Name'` containing the name of a var
        * removeVar 
        	* Description: Remove a variable
        	* Params: accepts a `String`with `'Name'` or a `List` with "[Name1,Name2,...] containing one or more names of vars to remove
        * updateVar
        	* Description: Update a variable
        	* Params: accepts a `Dictionary` with `{'Name':Value,...}` containing one or more vars to update
        * setOrUpdateVar
        	* Description: set a new variable or update it if already exists
        	* Params: accepts a `Dictionary` with `{'Name':Value,...}` containing one or more vars to set or update
        
        
        ### Methods Examples
        
        #### setVar()
        ```
        # Will be setted two vars: "foo" with value "bar" and "eggs" with value 16
        GlobalVars.setVar({"foo":"bar","eggs":16}) 
        
        # The "foo" var will be setted with a "bar" value
        GlobalVars.setVar({"foo":"bar"}) 
        ```
        
        #### getVar()
        ```
        # Result var will be the value in "foo"
        result = GlobalVars.get("foo") 
        
        # Result var will be a list containing the result of all the three vars
        result = GlobalVars.get(["foo","bars","eggs"]) 
        ```
        
        #### removeVar()
        ```
        # Var "foo" will be removed
        GlobalVars.removeVar("foo") 
        
        # All the three vars ("foo", "bar" and "eggs") will be removed
        GlobalVars.removeVar(["foo","bar","eggs"]) 
        ```
        
        #### updateVar()
        ```
        # Variable foo will be updated with the new value "bar"
        GlobalVars.updateVar({"foo":"bar"}) 
        
        # The two variables ("foo" and "eggs") will be updated with new values
        GlobalVars.updateVar({"foo":"bar","eggs":16}) 
        ```
        
        #### setOrUpdateVar()
        ```
        # The var "foo" will set if not exist, or will update with a new value if already exist a var with "foo" name
        GlobalVars.setOrUpdater({"foo":"bar"}) 
        
        # Two vars will be setted (if not exist) or their values will be updated (if they already exist)
        GlobalVars.setOrUpdateVar({"foo":"bar","eggs":16}) 
        ```
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
