Python app framework
Installation
pip install app-page-core
Page页面属性
callback 回调管理对象 children 子页面管理对象 store 全局变量管理对象
Usage
应用首页,初始化全局对象,页面对象,加载页面 app.py
from app_page import Store, Page
def signal_slots_func(signal, id, func):
# 绑定信号与槽函数
print(signal, id, func)
# 初始化全局对象
Store({
"version": "1.0.0",
"isLogin": False,
"functions": {
# 信号与槽绑定函数"__signal_slots_func"
"__signal_slots_func": signal_slots_func,
},
})
# 初始化页面对象
page = Page()
page.setup('app.json')
配置页面结构 app.json
{
"name": "main",
"id": "id001",
"style": "app.css",
"children": "children/page.json",
"events": {
"clicked": {
"btn1": "sendMessage",
"btn2": "cancel"
}
},
"functions": {
"sendMessage": "functions/sendMessage.py",
"cancel": "functions/cancel.py"
}
}
Metadata
Release files for app-page-core 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 | |
|---|---|---|---|---|
| app-page-core-0.0.7.tar.gz | 9.3 kB | Without provenance | Details |
Release files / app-page-core-0.0.7.tar.gz
| Download URL | app-page-core-0.0.7.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd7c3fe40816055b8d21c9af930eeb371c0bd066adafdf15f1b42d85a7968721
|
|
BLAKE2b-256 checksum How to use checksums |
7482381c6e68d59e7f77b42af44f91a9bf2710f212fda17538095fdac2c76a7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.1
|
Security for app-page-core 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.
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.