py-signe
Introduction
A responsive system implemented in python with reference to the core mechanisms of S.js and vue reactivity.
Installation
pip install signe
使用
from signe import signal, effect, computed
num = signal(1)
@computed
def plus1():
return num.value + 1
@effect
def _():
print('plus1 is :',plus1.value)
# should print `plus1 is :2`
num.value=10
# should print `plus1 is :11`
signalCreates a signal. Reads and writes via.value.computedCreates a computed expression. The argument is a function. When a signal (signal.value) is used in the function to get a value, this calculation expression is automatically associated with the signal. When the value of the signal changes, the computed expression is automatically triggered to change.effectis essentially the same ascomputed. A change in the signal orcomputedexpression is automatically captured and triggered.
Metadata
Release files for signe 0.4.23
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 |
|---|---|---|---|---|
| signe-0.4.23.tar.gz | 13.8 kB | Without provenance | Details for signe-0.4.23.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| signe-0.4.23-py3-none-any.whl | Python 3 | none | any | Details for signe-0.4.23-py3-none-any.whl |
Total release size: 34.1 kB
Release files / signe-0.4.23.tar.gz
| Download URL | signe-0.4.23.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b2fbda802eadef0ed02586237b0025b2190d8661beb1a0cf3853c78bf4fac31
|
|
BLAKE2b-256 checksum How to use checksums |
1cd479eaf8dca49c57b541915629d7ebfdfa2140d524871d962b497b98686d5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.2 Windows/10
|
Release files / signe-0.4.23-py3-none-any.whl
| Download URL | signe-0.4.23-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3c8c1681ff1535970410b022014957f3d4211f5666b90d1e3c0be6936bf3f8e0
|
|
BLAKE2b-256 checksum How to use checksums |
5342d154fb9b92cf13b99511d710f31fa14f59522571601a3e0703f1c9b8dd67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.2 Windows/10
|
Security for signe 0.4.23
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.