semvec/pypi-packages huggingface dataset:
mzapi-python 0.0.7
MZAPI的python的SDK
Requires Python: >=3.7
Keywords: API SDK MZAPI PYTHON

# MZAPI Python SDK

[![PyPI version](https://img.shields.io/pypi/v/mzapi-python.svg)](https://pypi.org/project/mzapi-python/)
[![Python Version](https://img.shields.io/pypi/pyversions/mzapi-python.svg)](https://pypi.org/project/mzapi-python/)
[![License](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://github.com/xiaomizhoubaobei/MZAPI-Python/blob/main/LICENSE)

MZAPI Python SDK 是一个用于访问和使用MZAPI服务的Python库。

## 安装

使用pip安装:

```bash
pip install mzapi-python
```

## 功能特性

目前支持的功能:

### 腾讯云OCR服务
- **GeneralBasicOCR**: 通用文字识别
  - 支持多种场景模板:
    - `General`: 通用场景
    - `OnlineTaxiItinerary`: 网约车行程单  
    - `RideHailingDriverLicense`: 网约车驾驶证
    - `RideHailingTransportLicense`: 网约车运输证
    - `WayBill`: 快递运单
    - `AccountOpeningPermit`: 银行开户许可证
    - `InvoiceEng`: 国际发票模板
    - `Coin`: 钱币识别模板
    - `OnboardingDocuments`: 入职材料识别
    - `PropertyOwnershipCertificate`: 房产证识别
    - `RealEstateCertificate`: 不动产权证识别
    - `HouseEncumbranceCertificate`: 他权证识别
    - `CarInsurance`: 车险保单
    - `MultiRealEstateCertificate`: 房产证、不动产证、产权证等材料合一模板
  - 支持图片和PDF识别
  - 自动验证输入参数和图片格式
  - 完善的错误处理机制

- 腾讯云图像识别服务 (TIIA)
  - GeneralBasicOCR: 通用文字识别(支持图片和PDF)
    - 支持多种场景模板(通用、网约车行程单、快递运单等)
    - 支持图片URL和Base64两种输入方式
    - 完善的日志记录(debug/info/warning/error)

## 快速开始
### 通用文字识别示例
```python
from mzapi.tencent.ocr import GeneralBasicOCR

# 初始化OCR客户端
ocr_client = GeneralBasicOCR(
    secret_id="您的腾讯云SecretId",
    secret_key="您的腾讯云SecretKey"
)

# 使用图片URL进行识别(通用场景)
result = ocr_client.recognize(
    image_url="https://example.com/document.jpg",
    config_id="General"  # 可选，默认为"General"
)
print(result)

# 使用特定场景模板(如网约车行程单)
result = ocr_client.recognize(
    image_url="https://example.com/taxi_receipt.jpg",
    config_id="OnlineTaxiItinerary"
)
print(result)
```
```

## 日志记录

GeneralBasicOCR内置了完善的日志系统，支持以下日志级别：
- DEBUG: 详细调试信息(如请求参数)
- INFO: 关键操作信息(如初始化完成)
- WARNING: 潜在问题警告(如参数验证失败)
- ERROR: 错误信息(如API调用失败)

示例配置日志级别：
```python
import logging
logging.basicConfig(
    level=logging.DEBUG,  # 设置日志级别
    format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
```

## 要求

- Python >= 3.7
- 腾讯云账号及有效的SecretId/SecretKey

## 最佳实践

1. **性能优化**:
- 对于大文件，优先使用URL方式而非Base64
- 合理选择场景模板提高识别准确率
- 批量处理时添加适当延迟(建议1秒/次)

2.**安全建议**:
- 不要将SecretId/SecretKey硬编码在代码中
- 使用临时密钥(Token)进行生产环境调用

## 开发

### 安装开发依赖
```bash
pip install mzapi-python
```

## 文档

详细文档请访问: [https://docs.mizhoubaobei.top](https://docs.mizhoubaobei.top)

## 版本信息

当前版本: 0.0.2

## 作者

- 祁潇潇 (qixiaoxin@stu.sqxy.edu.cn)

## 许可证

GPL-V3 License

本项目采用 GNU 通用公共许可证第3版 (GPL-V3) 进行许可。这意味着：

- 您可以自由地使用、修改和分发本软件。
- 如果您分发修改后的版本，您必须以相同的许可证（GPL-V3）发布您的修改。
- 您必须公开您对本软件的修改。
- 您必须保留原始版权声明。

完整的许可证文本可在[此处](https://www.gnu.org/licenses/gpl-3.0.html)查看。

## 相关链接

- [GitHub 仓库](https://github.com/xiaomizhoubaobei/MZAPI-Python)
- [问题反馈](https://github.com/xiaomizhoubaobei/MZAPI-Python/issues)
- [PyPI 项目页面](https://pypi.org/project/mzapi-python)
- [下载页面](https://pypi.org/project/mzapi-python/#files)
mcp-bitbucket-review 0.2.0
A simple MCP server for adding pull request review functionality for users of bitbucket.
Requires Python: >=3.10

# MCP Bitbucket Review Server

This is an MCP server for LLMs to use capabilities of bitbucket to it's code review workflows.

## Installation

> [!IMPORTANT]  
> You need python 3.10 or above for this to work.

Install from pip:

```bash
pip install mcp-bitbucket-review
```

## Configuration in Cursor

1.  Go to `File` -> `Preferences` -> `Cursor Settings` -> `MCP & Integrations`.

2.  Add a new MCP server.

3.  Add the bitbucket server MCP from the following to the mcpServers object of mcp.json:
    ```jsonc
    {
        "mcpServers": {
            // ... your rest of the MCP servers
            "bitbucket": {
                "command": "mcp-bitbucket-review-server",
                "env": {
                    "BITBUCKET_EMAIL": "YOUR_BITBUCKET_EMAIL",
                    "BITBUCKET_API_TOKEN": "YOUR_BITBUCKET_API_TOKEN"
                }
            }
        }
    }

4.  Save the settings.

## Usage sample

Open new chat and give following prompt:

> Review pull request <YOUR_PULL_REQUEST_URL>


## Code Review Checklist

You can provide a custom code review checklist to be used during the review process. The checklist is read from a file and can have both general guidelines and guidelines specific to each repository.

### Checklist file structure

The checklist file is a plain text file with sections for each repository. A section starts with the repository name in square brackets (e.g., `[my-repo]`). A special section named `[general]` can be used for guidelines that apply to all repositories.

Here is an example of a checklist file:

```
[general]
Ensure code is well-documented.
Check for any commented-out code that should be removed.

[my-awesome-repo]
Follow the "Awesome Repo" coding style.
Make sure to update the `awesome-spec.json` file.

[another-repo]
All new features must be covered by integration tests.
```

### Configuration

To use the checklist, you need to set the `BITBUCKET_CODE_REVIEW_CHECKLIST` environment variable to the absolute path of your checklist file.

You can add this to your `mcp.json` configuration file:

```jsonc
{
    "mcpServers": {
        // ... your rest of the MCP servers
        "bitbucket": {
            "command": "mcp-bitbucket-review-server",
            "env": {
                // ... other environment variables
                "BITBUCKET_CODE_REVIEW_CHECKLIST": "C:\\path\\to\\your\\checklist.txt"
            }
        }
    }
}
```

## Get API token from bitbucket

1. Go to https://id.atlassian.com/manage-profile/security/api-tokens

2. Click on button labelled `Create API token with scopes`

3. Give scopes and store the API token. Make sure you give the following scopes to the API token:
    ```
    read:pullrequest:bitbucket
    write:pullrequest:bitbucket
    read:repository:bitbucket
    ```

Happy coding!
roamkit-marko-fenced-divs 1.0.0
Fenced divs extension for Marko
Requires Python: >=3.9
Keywords: markdown marko fenced

# Marko: `fenced_divs`

This is an extension for [Marko](https://marko-py.readthedocs.io/) providing support
for [fenced divs as detailed by pandoc](https://pandoc.org/demo/example33/8.18-divs-and-spans.html).

It allows you to wrap parts of the Markdown text in a div or other html element without having
to resort to html directly.

Like this:

```markdown
Just plain Markdown here, followed by a `fenced div`.

:::wrapper
This _will_ be wrapped.
:::

And continue doing your thing down here.
```

You can use a many colons as you want. And yes, you can nest.

## Examples

### Simple
The text after the opening colons is used as the `class` attribute
for the div.

```markdown
# A title
Some text in a paragraph.

:::className
All of this will be wrapped in a `<div class="className">`.

Yes, even this list:

1. First
2. Second
:::

And this will just be another paragraph.
```

### With attributes
If you need more control, you can specify attributes explicitly by wrapping
them in curly braces.

```markdown
# A title
Some text in a paragraph.

::: { #my-id .something active="true" <section> }
All of this will be wrapped in a 
`<section id="my-id" class="className" active="true">`.

Yes, even this list:

1. First
2. Second
:::

And this will just be another paragraph.
```

## Usage

1. Install `roamkit-marko-fenced-divs` from Pypi.
2. Add `roamkit.marko.fenced_divs` as an extension.

```python
from marko import Markdown


def convert_to_html(md_text: str) -> str:
    # codehilite is just an example of another extension.
    engine = Markdown(
        extensions=["roamkit.marko.fenced_divs", "codehilite"],
    )
    return engine.convert(md_text)
```
ax3-redactor 3.0.2
A Django app to add support for the redactor editor
Requires Python: >=3.12

# AX3 Redactor

This app is part of the AX3 technology developed by Axiacore.

It allows you to use Redactor within the Django admin interface.

## Quick Start

1. Add `"redactor"` to your `INSTALLED_APPS` setting as follows:

```python
INSTALLED_APPS = [
    ...
    'redactor',
]
```

2. Include the Redactor URL configuration in your project's `urls.py`:

```python
path('', include('redactor.urls')),
```

3. Run `python manage.py migrate` to create the Redactor models.

4. Copy your Redactor library files into the `static` folder in your project:

```
vendor/redactor/redactor.min.css
vendor/redactor/redactor.min.js
vendor/redactor/plugins/imagemanager.min.js
vendor/redactor/plugins/video.min.js
vendor/redactor/plugins/widget.min.js
```

5. Add Redactor support to your model in `admin.py`:

```python
from django.contrib import admin
from redactor.mixins import RedactorMixin
from .models import Post

@admin.register(Post)
class PostAdmin(RedactorMixin, admin.ModelAdmin):
    ...
    redactor_fields = ['content']
    ...
```

`content` is a `TextField` attribute in the `Post` model.
You can specify multiple fields if needed.

## Releasing a New Version

Make sure you have an API token for PyPI: https://pypi.org/help/#apitoken

Increase the version number at `pyproject.toml` and create a Git tag:

```bash
uv run python -m build
uv run python -m twine upload dist/*
```

Built at [axiacore](https://axiacore.com).