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
Metadata
Release files for SetupVariableTracker 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| setupvariabletracker-0.0.7.tar.gz | 4.6 kB | With provenance | Details for setupvariabletracker-0.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| setupvariabletracker-0.0.7-py3-none-any.whl | Python 3 | none | any | Details for setupvariabletracker-0.0.7-py3-none-any.whl |
Total release size: 9.3 kB
Release files / setupvariabletracker-0.0.7.tar.gz
| Download URL | setupvariabletracker-0.0.7.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68592bd12ee5f882b2dbe97c1ba8da3e5afa496c847199d012fc31d6df6fe418
|
|
BLAKE2b-256 checksum How to use checksums |
9283cf5445a4ff290cc41016122be8cf46048c6bffd43031f630060feabeb17e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2025.
Transparency logRelease files / setupvariabletracker-0.0.7-py3-none-any.whl
| Download URL | setupvariabletracker-0.0.7-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cffa79c6d6db5e9a78c53f928b2882b59f22740ca2e9dd734167ac914aa1270
|
|
BLAKE2b-256 checksum How to use checksums |
b63353f73751ceee1ff5113d58319cedf703a14c8d17ffd1098bce28ed7bd7b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2025.
Transparency logSecurity for SetupVariableTracker 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for setupvariabletracker-0.0.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 17, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.