Skip to main content

NiceGUI 补充 / Adds

补充NiceGUI未实现的一些组件

在使用NiceGUI的过程中,我查阅了组件库文档和quasarchs文档,但突然发现有些组件竟然没有实现,如BreadCrumbs,感觉还是挺重要的,就专门创了一个项目

安装 / Installation

# nicegui>=1.4.0
pip install nicegui-add

构建 / Build

本库是使用Poetry构建,更多需查询官方文档

poetry build
poetry publish --build

文档构建 / Documents Build

文档是使用Sphinx构建

cd docs
python make.py

make.py

import os

make = "make.bat "

os.system(make + "clear")
os.system(make + "html")

组件 / Elements

Breadcrumbs 面包屑

类似于文件管理器上的导航栏

用法 / Usage

aui.breadcrumbs(separator: str = ...)
  • separator为每个元件BreadcrumbsEl之间的隔开符,默认是/
aui.breadcrumbs_el(text: str = ..., icon: str = ..., on_click=...)
  • text为显示文本
  • icon为显示图标
  • on_click为被点击时的事件

例子 / Example

from nicegui import ui
from nicegui_add import aui

with aui.breadcrumbs():
    aui.breadcrumbs_el("Home", icon="home", on_click=lambda: print("'Home' Clicked"))
    aui.breadcrumbs_el("System", icon="windows", on_click=lambda: print("'Windows' Clicked"))
    aui.breadcrumbs_el("Apps", icon="apps", on_click=lambda: print("'Apps' Clicked"))
    
ui.run()

开发笔记 / Development Notes

选择存储库平台时,我本来是打算用Github的,但是Github的登录特别繁琐,干脆改用Gitlab算了,而且Gitlab在中国地区可以正常访问,而不像Github一样,老是登不上去

版本记录 / Version Records

0.0.1

0011 第一次发布,包含 bar, breadcrumbs, breadcrumbs_el, space, toolbar, toolbar_title组件

0.0.2

0021 补充项目资料

0022 添加组件Intersection / 交叉,可以为ui.Card组件做显示效果

0.0.3

0031 补充项目资料

0.0.4

0041 添加组件ButtonGroup / 按钮组

Metadata

Release files for nicegui-add 0.0.4

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

Source distribution (sdist)

Source distribution for nicegui-add 0.0.4
File Size Uploaded Provenance
nicegui_add-0.0.4.tar.gz 8.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for nicegui-add 0.0.4
File Interpreter ABI Platform
nicegui_add-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / nicegui_add-0.0.4.tar.gz

Download URL nicegui_add-0.0.4.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
28dd0f705ffd838d70a9f67599b49f44b2a12c1a9e5604ea56c54579defee05c
BLAKE2b-256 checksum
How to use checksums
bbb5b93e601aa7753ab69debb2e272a6fe4d5f2455a876ae31212ae853387270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.9.9 Windows/10

Release files / nicegui_add-0.0.4-py3-none-any.whl

Download URL nicegui_add-0.0.4-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4922b59af1486f14af6d18cb1e4c7e47b35d47f50b09108b33bf6c126db26150
BLAKE2b-256 checksum
How to use checksums
6863ee9f51a17644a51ad5d540d86e3612ed329c803e352090932fc6fa8f6675
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.9.9 Windows/10

Security for nicegui-add 0.0.4

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