semvec/pypi-packages huggingface dataset:
tdd-guard-pytest 0.1.2
Pytest plugin for TDD Guard - enforces Test-Driven Development principles
Requires Python: >=3.8
Keywords: tdd, test-driven-development, testing, pytest, claude

# TDD Guard Pytest Reporter

Pytest plugin that captures test results for TDD Guard validation.

## Requirements

- Python 3.8+
- pytest 6.0+
- [TDD Guard](https://github.com/nizos/tdd-guard) installed globally

## Installation

```bash
pip install tdd-guard-pytest
```

The plugin activates automatically when installed.

## Configuration

### Project Root Configuration

Set `tdd_guard_project_root` to your project root using any ONE of these methods:

**Option 1: pyproject.toml**

```toml
[tool.pytest.ini_options]
tdd_guard_project_root = "/absolute/path/to/project/root"
```

**Option 2: pytest.ini**

```ini
[pytest]
tdd_guard_project_root = /absolute/path/to/project/root
```

**Option 3: setup.cfg**

```ini
[tool:pytest]
tdd_guard_project_root = /absolute/path/to/project/root
```

### Configuration Rules

- Path must be absolute
- Current directory must be within the configured project root
- Falls back to current directory if configuration is invalid

## Development

When developing the pytest reporter, you need to configure the project root to ensure test results are saved to the correct location:

1. Copy the example configuration:

   ```bash
   cp pytest.ini.example pytest.ini
   ```

2. Edit `pytest.ini` and set the absolute path to your TDD Guard project root:
   ```ini
   [pytest]
   tdd_guard_project_root = /absolute/path/to/tdd-guard
   ```

**Note:** `pytest.ini` is gitignored to avoid committing machine-specific paths.

## More Information

- Test results are saved to `.claude/tdd-guard/data/test.json`
- See [TDD Guard documentation](https://github.com/nizos/tdd-guard) for complete setup

## License

MIT
AppleAPI 1.0.10
App Store Connect API
Requires Python: ~=3.7
Keywords: ios apple appstore app store connect api appstoreconnectapi

# AppleAPI
基于appstore connect api封装功能。
代码是基于[OKAppleAPI](https://github.com/shede333/OKAppleAPI)原码。只是在原代码基础上，新增了部分接口，封装了些自用功能。

## 安装
```
pip3 install appleapi
```

## 用法

```python
#!/usr/bin/python3
# coding=utf-8

from AppleAPI import AppStore


if __name__ == '__main__':
    # 必填
    issuer_id = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' 
    # 必填
    key_id = 'XXXXXXXXXX'                       
    # 必填
    key = """
    -----BEGIN PRIVATE KEY-----
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXX
    -----END PRIVATE KEY----- 
    """

    bundle_id = 'com.test.test.a.b'
    name = 'Test'
    email = 'test@test.com'
    developer_name = 'Name'
    country = 'US'
    password = '123'
    appstore_version = '1.0'
    # 可以填写相对此文件的相对路径
    screenshots = {
        'zh-Hans' : {
            "APP_IPHONE_67"             : "C:/Users/Administrator/Desktop/python/iPhone14PM-6.7",
            # "APP_IPHONE_65"           : "iPhone11PM-6.5",
            # "APP_IPHONE_55"           : "iPhone8P-5.5",
            # "APP_IPAD_PRO_3GEN_129"   : "iPadPro-12.9",
            # "APP_IPAD_PRO_129"        : "iPadPro-12.9",
        }
    }   
    devices = {
        'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx设备id' : '设备名称(可选)，比如：iphone6s'
    }
    # https://developer.apple.com/documentation/appstoreconnectapi/capabilitytype
    capabilitys = ['ASSOCIATED_DOMAINS'] # APPLE_ID_AUTH
    app = AppStore(issuer_id, key_id, key, save_fold_name=email)
    # 创建Bundle Id
    app.create_bundle_id(bundle_id=bundle_id, bundle_name=name, capabilitys=capabilitys)
    # 添加测试设备
    app.add_devices(devices=devices)
    # 创建证书
    app.create_certificate(is_dev=False, email=email, developer_name=developer_name, password=password, country=country)
    # 创建描述文件
    app.create_profile(is_dev=False,bundle_id=bundle_id, name=name)
    # 上传5图
    app.upload_screenshot(bundle_id=bundle_id, appstore_version=appstore_version, screenshots=screenshots)

```