Skip to main content

pyqt-reactivity

Description

pyqt-reactivity is a project that aims to provide basic reactivity module for PyQt widgets.

Installation

Install the latest version from PyPI:

pip install -U pyqt-reactivity

Usage

To use basic reactivity module, see the following example:

from pyqt_reactivity import Ref, computed, ref

# Create a reactive reference.
a = ref(1)
a.watch(lambda v: print("a updated:", v))


# Define a computed function that depends on the reactive reference.
def a_squared(a: Ref[float]) -> float:
    return a.value**2


# Create a computed reference.
b = computed(a_squared, args=(a,))
b.watch(lambda v: print("b updated:", v))

# Update the reactive reference.
a.value = 2

See more implementations on examples folder.

License

MIT

Metadata

Release files for pyqt-reactivity 0.3.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 pyqt-reactivity 0.3.0
File Size Uploaded Provenance
pyqt_reactivity-0.3.0.tar.gz 5.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyqt-reactivity 0.3.0
File Interpreter ABI Platform
pyqt_reactivity-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / pyqt_reactivity-0.3.0.tar.gz

Download URL pyqt_reactivity-0.3.0.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f79616d466a23d12a69f14282719f3f8039b6348d568cc3c589eaae41be5ce7f
BLAKE2b-256 checksum
How to use checksums
05ca2c3577bf7e701caefdbaa170c956dbebd79c8069f93184645b8000d5656d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Release files / pyqt_reactivity-0.3.0-py3-none-any.whl

Download URL pyqt_reactivity-0.3.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36ead78795d81fa7a62b6e8d3b638267a4951e26f3a1cc1733a07f782a45cd20
BLAKE2b-256 checksum
How to use checksums
4f225eb626ce3922c59830d0287aa9d9118ce0ea4355c385318b74fcf73c384d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.0

Security for pyqt-reactivity 0.3.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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