semvec/pypi-packages huggingface dataset:
dbbasic-admin 0.1.1
Auto-discovery admin interface for dbbasic modules
License: MIT
Requires Python: >=3.9
Keywords: admin, dbbasic, crud, auto-discovery

# dbbasic-admin

Auto-discovery admin interface for dbbasic modules.

## Philosophy

> Admin interfaces should auto-generate from installed modules, not require manual configuration.

## Features

- **Auto-discovery** - Installing a dbbasic module automatically adds its admin panels
- **Zero configuration** - Modules just need `admin.py` and `templates/admin/`
- **Filesystem routing** - Admin routes follow file paths (like CGI/PHP)
- **Dynamic sidebar** - Built from core + discovered modules
- **Auto-CRUD** - Generates admin UI for TSV tables
- **Search & filters** - Built-in for all tables

## Installation

```bash
pip install dbbasic-admin
```

## Quick Start

### 1. Install dbbasic-admin

```bash
pip install dbbasic-admin
```

### 2. Access Admin Interface

```
http://localhost:8000/admin/
```

That's it! The admin interface is ready.

### 3. Install Modules with Admin Panels

```bash
pip install dbbasic-blog
```

The "Posts" tab automatically appears in the admin sidebar.

## Creating a Module with Admin

### 1. Export ADMIN_CONFIG

```python
# your_module/admin.py
ADMIN_CONFIG = [
    {
        "icon": "📝",
        "label": "Posts",
        "href": "/admin/posts",
        "order": 20,
        "table": "posts",  # Auto-generates CRUD
    }
]
```

### 2. Create Templates (Optional)

For custom admin pages:

```
your_module/
└── templates/
    └── admin/
        └── posts/
            ├── list.html    # /admin/posts/list
            ├── new.html     # /admin/posts/new
            └── [id].html    # /admin/posts/123
```

### 3. Install Your Module

```bash
pip install your-module
```

Your admin tab appears automatically!

## How It Works

1. **Auto-discovery** - Scans installed `dbbasic_*` packages
2. **Finds ADMIN_CONFIG** - Loads nav items from each module's `admin.py`
3. **Builds sidebar** - Combines core + module nav items
4. **Filesystem routing** - Uses dbbasic-web's routing for admin pages

## Core Admin Pages

- **Dashboard** - System overview, quick actions
- **Code** - File browser and editor
- **Database** - TSV table browser
- **Jobs** - Background job queue
- **Logs** - System and application logs
- **Settings** - Configuration management

## ADMIN_CONFIG Reference

```python
ADMIN_CONFIG = [
    {
        # Required
        'label': 'Posts',           # Display name
        'href': '/admin/posts',     # URL path

        # Optional
        'icon': '📝',              # Emoji or icon class
        'order': 20,               # Sort order (0-99)
        'badge': '3',              # Notification badge
        'table': 'posts',          # Auto-generate CRUD
        'fields': {...},           # Field configuration for CRUD
    }
]
```

## Documentation

Full specification: https://dbbasic.com/admin-spec

## License

MIT

## Links

- PyPI: https://pypi.org/project/dbbasic-admin/
- GitHub: https://github.com/askrobots/dbbasic-admin
- Documentation: https://dbbasic.com/admin-spec
nonebot-plugin-githubcard 0.4.1
检测GitHub仓库链接并自动发送卡片信息，支持仓库、Issue、Pull Request、Release
License: MIT
Requires Python: <4.0,>=3.8
Keywords: nonebot, github, card, bot

<div align="center">
  <a href="https://nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-githubcard

_✨ 检测GitHub仓库链接并自动发送卡片信息（适用于Onebot V11）✨_

<img src="https://img.shields.io/github/license/ElainaFanBoy/nonebot_plugin_githubcard.svg" alt="license">
<img src="https://img.shields.io/badge/nonebot-2.0.0+-red.svg" alt="NoneBot">
<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">

</div>

## 📖 介绍

检测GitHub仓库链接并自动发送卡片信息

## 💿 安装

<details>
<summary>使用PIP安装</summary>


    pip install nonebot-plugin-githubcard
</details>

<details>
<summary>克隆至本地安装</summary>


    git clone https://github.com/ElainaFanBoy/nonebot_plugin_githubcard.git
</details>

## ⚙️ 配置

在 nonebot2 项目的`.env`文件中添加下表中的必填配置

| 配置项 | 必填 | 默认值 | 说明 |
|:-----:|:----:|:----:|:----:|
| github_token | 否 | 无 | github_token = ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| github_type | 否 | 0 | github图片样式(0为socialify样式，1为opengraph样式) |

## 🎉 使用
### 指令表
| 指令 | 权限 | 需要@ | 说明 |
|:-----:|:----:|:----:|:----:|
| https://github.com/xxx/xxx | 所有人 | 否 | GitHub仓库链接 |
### 效果图

<div align="left">
  
  socialify样式：
  
  <img src="https://socialify.git.ci/nonebot/nonebot2/png?description=1&font=Rokkitt&forks=1&issues=1&language=1&logo=https%3A%2F%2Favatars.githubusercontent.com%2Fu%2F63496654%3Fs%3D200%26v%3D4&name=1&owner=1&pattern=Circuit%20Board&pulls=1&stargazers=1&theme=Light" width="600"/>
  
  opengraph样式：
  
  <img src="https://opengraph.githubassets.com/githubcard/nonebot/nonebot2" width="600"/>
</div>
mediawiki-to-pdf 1.0
TBD
License: MIT
Requires Python: >=3.10

# mediawiki-to-pdf 

## session
**MediaWikiSession(access_token: str, apiurl: str)** returns a requests.Session subclass that adds Mediawik authorization headers.
apiurl is typically https://example.com/api.php
*MediaWikiSession.parse_yaml(file)* is convenience method that reads access token and url from YAML file:
```
mediawiki:
  url: https://wiki.example.com/api.php
  access token: /usr/local/x/wiki_token
```
where access token is a file name.

## PDF
**save_pdf_from_authenticated_session(session: MediaWikiSession, page_title: str, output_path: str)->Path:**
Fetchs a MediaWiki page via API and convert it to PDF using pdfkit. Returns output.
/usr/bin/wkhtmlpdf must be installed.

## Command line
Processes list of pages specified in YAML file.
```
usage: mediawiki_to_pdf [-h] [-l LOGLEVEL] yaml

positional arguments:
  yaml                  Configuration file

options:
  -h, --help            show this help message and exit
  -l LOGLEVEL, --loglevel LOGLEVEL
                        Python logging level (default: WARN)
```
Example:
```
---
mediawiki:
  url: https://wiki.example.com/api.php
  access token: /usr/local/x/wiki_token
pages:
  -  First_page 
  -  Second_page 
...
```