Skip to main content

paramtrack

Remembers the arguments of each method's last call, defaults included.

Install

pip install paramtrack

Usage

from paramtrack import track_class

@track_class
class Telescope:
    def observe(self, target, exposure=30, filter="V"):
        ...

telescope = Telescope()
telescope.observe("Vega", exposure=60)

print(telescope.parameters)
observe
├─ target   = 'Vega'
├─ exposure = 60
└─ filter   = 'V'

In Jupyter, put telescope.parameters on the last line of a cell for a foldable view.

Forwarded **kwargs

When a method passes its **kwargs on to another function, the parameters of that function are listed too, defaults included:

def observe(target, exposure=30, filter="V"):
    ...

@track_class
class Telescope:
    def run(self, **kwargs):
        return observe("Vega", **kwargs)

telescope = Telescope()
telescope.run(exposure=60)

print(telescope.parameters)
run
├─ exposure = 60
└─ filter   = 'V'

This works through chains of **kwargs and for calls like self.method(**kwargs) or module.function(**kwargs). The source code has to be available: in a plain python shell, only the passed keywords are shown.

Functions

track_function does the same for plain functions and stores the arguments as function.parameters:

from paramtrack import track_function

@track_function
def observe(target, exposure=30, filter="V"):
    ...

observe("Vega")

print(observe.parameters)

Metadata

Release files for paramtrack 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paramtrack 0.2.0
File Size Uploaded Provenance
paramtrack-0.2.0.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for paramtrack 0.2.0
File Interpreter ABI Platform
paramtrack-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / paramtrack-0.2.0.tar.gz

Download URL paramtrack-0.2.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9f66233485b2b63cc032b56610429005312e2cfa9c561cb05fa72776f3892e52
BLAKE2b-256 checksum
How to use checksums
280329add1a74e99473461fd4dfc1facf61f0b3dc5971d19e3969a6be210abb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Nobara Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / paramtrack-0.2.0-py3-none-any.whl

Download URL paramtrack-0.2.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be2c5063a34159bfa15b63197c69c79a290e2d8a3ac348e25007d2f2157f56ca
BLAKE2b-256 checksum
How to use checksums
a2ce69f17ed0045ad9ce841378863fb66bf83fb99c03939f006354581d4a8d99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Nobara Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for paramtrack 0.2.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page