A nicegui base UI to browse and search python packages in any simple package repository (PEP-503) based on simple-repository-browser.
Project description
tgzr.nice_repository_browser
A nicegui base UI to browse and search python packages in any simple package repository (PEP-503) inspired by simple-repository-browser.
Usage
from pathlib import Path
from nicegui import ui
from tgzr.nice_repository_browser.repository_view import RepositoryView
async ui.page('/'):
def on_package_clicked(event: RepositoryView.EVENTS.PackageClicedEvent):
print(f"Package {event.package.name}'s {event.clicked_item} was clicked clicked.")
repo_url :str = ... # can be '/path/to/folder' or 'https://repo-url/simple'
cache_path: Path | None = ... # beware: cache is not yet implemented
repo_view = RepositoryView(repo_url, cache_path)
repo_view.events.on_package_clicked.subscribe(on_package_clicked)
with ui.column():
await repo_view.render()
Demo
python -m tgzr.nice_repository_browser.demo
(You will need to edit demo.py and set you own repository paths first...)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tgzr_nice_repository_browser-0.0.1.tar.gz.
File metadata
- Download URL: tgzr_nice_repository_browser-0.0.1.tar.gz
- Upload date:
- Size: 44.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"KDE neon","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eed8d2db55acc9d183c7d5cabf8f62550d3657006e0d6a3fb92b2b3a64987494
|
|
| MD5 |
8fe84a603bc14bd81a83fe44880a7ecb
|
|
| BLAKE2b-256 |
1c920dd9ebd0175f5f475ea7c8cf4e4bc5588e1df60d56a5406421e4b384f53e
|
File details
Details for the file tgzr_nice_repository_browser-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tgzr_nice_repository_browser-0.0.1-py3-none-any.whl
- Upload date:
- Size: 52.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"KDE neon","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2827dccc3673cc2ed5358bf5aaf8a72f8d75c42e164a51cadfc94b231d47b607
|
|
| MD5 |
7a88998d093275e3240180536fe055ac
|
|
| BLAKE2b-256 |
271341219af4e4454ac53c1cc46df9abef5e9da613d61d1b6831d11df8c8cdd8
|