Used to store variables permanently, which can be read directly after importing into the library.
Project description
Permanent Variable Tool
var.new(variable:str, value:Any=None) -> None
Functionality
Creates/updates variable files in ./data/ directory
Usage Example
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:
try:
config = var.read("app_config")
except FileNotFoundError:
initialize_defaults()
var.delete(variable:str) -> None
Security Notice
- Deletion is permanent. Recommended safety check:
if os.path.exists(var.data_dir + "/" + variable + ".var"):
var.delete("temp_data")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file permanent_variable_tool-1.0.1.tar.gz.
File metadata
- Download URL: permanent_variable_tool-1.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
987c67c2a50cc9223791a3328d67db60ab71efcd01db24f5c0c5de69a6d86df0
|
|
| MD5 |
767f10eafc97658665d6eb1190b68320
|
|
| BLAKE2b-256 |
faca406e4325248366ea01113c23110ff97387e6a70eaac3e7372c279d601749
|
File details
Details for the file permanent_variable_tool-1.0.1-py3-none-any.whl.
File metadata
- Download URL: permanent_variable_tool-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a75ef0aa68f9cf853f1bafdfd2784291270a932fe9a1f33dd7106c709b6371d
|
|
| MD5 |
d62f670941e9f987ea1377968c43fa69
|
|
| BLAKE2b-256 |
eae4130af7018c62b150421e082ce68a9c4fc5c5b3efb200c865a8f81ddde5fa
|