Metadata-Version: 2.1
Name: Permanent_variable_tool
Version: 1.0.1
Summary: Used to store variables permanently, which can be read directly after importing into the library.
Author: Unwilling to disclose
Author-email: Unwilling to disclose <q1111911111q@outlook.com>
License: MIT
Keywords: Permanent variable tool,pvt
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=6.0; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: flake8; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest>=6.0; extra == "test"
Requires-Dist: pytest-cov; extra == "test"

# Permanent Variable Tool
 
## `var.new(variable:str, value:Any=None) -> None`
 
Functionality
Creates/updates variable files in `./data/` directory 
 
### Usage Example 
```python
var.new("user_profile", {"name": "John", "age": 28})  # Serializes to string 
var.new("system_flag")   # Creates empty file 
```
---
## `var.read(variable:str) -> str`
 
### Critical Notes
- Always wrap in try-catch:
 
```python 
try:
    config = var.read("app_config")
except FileNotFoundError:
    initialize_defaults()
```
---
## `var.delete(variable:str) -> None`
 
### Security Notice 
- Deletion is permanent. Recommended safety check:
 
```python 
if os.path.exists(var.data_dir + "/" + variable + ".var"):
    var.delete("temp_data") 
```
