Small library to track and log the declaration of new (setup) variables
Project description
SetupVariableTracker
Very simple library to track and log the declaration of new (setup) variables.
Usage example
from SetupVariableTracker import SetupVariableTracker
vtrack = SetupVariableTracker(locals())
# Define parameters for this script
setup_variable_1 = "Hello"
setup_variable_2 = "World!"
foo = 1
bar = None
# Create a summary of all newly defined variables
summary_content = vtrack.save(locals(), sort=True)
print(summary_content)
This will print an overview of the declared variables (setup_variable_1, setup_variable_2, foo, and bar) as well
as save them in a timestamped .log file.
I know there are more elegant ways to achieve this, but I found this an elegant way to add this functionality to legacy code with very little effort. Hope it'll be useful to others.
Installation
pip install SetupVariableTracker
Project details
Release history Release notifications | RSS feed
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 setupvariabletracker-0.0.7.tar.gz.
File metadata
- Download URL: setupvariabletracker-0.0.7.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68592bd12ee5f882b2dbe97c1ba8da3e5afa496c847199d012fc31d6df6fe418
|
|
| MD5 |
b94b872418487f00ed555edd2962de69
|
|
| BLAKE2b-256 |
9283cf5445a4ff290cc41016122be8cf46048c6bffd43031f630060feabeb17e
|
Provenance
The following attestation bundles were made for setupvariabletracker-0.0.7.tar.gz:
Publisher:
python-publish.yml on Aypac/SetupVariableTracker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
setupvariabletracker-0.0.7.tar.gz -
Subject digest:
68592bd12ee5f882b2dbe97c1ba8da3e5afa496c847199d012fc31d6df6fe418 - Sigstore transparency entry: 530517822
- Sigstore integration time:
-
Permalink:
Aypac/SetupVariableTracker@62332d2facc47b5cff7b1dd02c0d4e97c40d1098 -
Branch / Tag:
refs/tags/v0.0.7 - Owner: https://github.com/Aypac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@62332d2facc47b5cff7b1dd02c0d4e97c40d1098 -
Trigger Event:
release
-
Statement type:
File details
Details for the file setupvariabletracker-0.0.7-py3-none-any.whl.
File metadata
- Download URL: setupvariabletracker-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cffa79c6d6db5e9a78c53f928b2882b59f22740ca2e9dd734167ac914aa1270
|
|
| MD5 |
d77386849938b9dffd8b7b283248a25a
|
|
| BLAKE2b-256 |
b63353f73751ceee1ff5113d58319cedf703a14c8d17ffd1098bce28ed7bd7b2
|
Provenance
The following attestation bundles were made for setupvariabletracker-0.0.7-py3-none-any.whl:
Publisher:
python-publish.yml on Aypac/SetupVariableTracker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
setupvariabletracker-0.0.7-py3-none-any.whl -
Subject digest:
7cffa79c6d6db5e9a78c53f928b2882b59f22740ca2e9dd734167ac914aa1270 - Sigstore transparency entry: 530517838
- Sigstore integration time:
-
Permalink:
Aypac/SetupVariableTracker@62332d2facc47b5cff7b1dd02c0d4e97c40d1098 -
Branch / Tag:
refs/tags/v0.0.7 - Owner: https://github.com/Aypac
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@62332d2facc47b5cff7b1dd02c0d4e97c40d1098 -
Trigger Event:
release
-
Statement type: