Metadata-Version: 2.1
Name: slowlane
Version: 0.2.3
Summary: Python CLI tool for Apple service automation - fastlane-compatible authentication and App Store Connect/Developer Portal operations
License: MIT
Author: Slowlane Contributors
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: click (>=8.3.1,<9.0.0)
Requires-Dist: cryptography (>=46.0.4,<47.0.0)
Requires-Dist: httpx (>=0.28.1,<0.29.0)
Requires-Dist: keyring (>=25.7.0,<26.0.0)
Requires-Dist: playwright (>=1.58.0,<2.0.0)
Requires-Dist: pyjwt (>=2.11.0,<3.0.0)
Requires-Dist: rich (>=14.3.1,<15.0.0)
Requires-Dist: tomli (>=2.4.0,<3.0.0)
Requires-Dist: tomli-w (>=1.2.0,<2.0.0)
Requires-Dist: typer (>=0.21.1,<0.22.0)
Description-Content-Type: text/markdown

# Slowlane

[![CI](https://github.com/Demoen/slowlane/actions/workflows/ci.yml/badge.svg)](https://github.com/Demoen/slowlane/actions/workflows/ci.yml)
[![Python 3.11+](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://docs.astral.sh/ruff/)
[![PyPI version](https://badge.fury.io/py/slowlane.svg)](https://badge.fury.io/py/slowlane)

Production-grade Python CLI tool for Apple service automation. A fastlane-compatible solution for authentication and App Store Connect/Developer Portal operations.

**📚 [Read the full documentation](https://demoen.github.io/slowlane/)**

## Features

- 🔐 **Multiple auth modes**: JWT API keys, session cookies, interactive login
- 📱 **App Store Connect**: Apps, builds, TestFlight management
- 🔏 **Developer Portal**: Certificates and provisioning profiles
- 📦 **Upload**: IPA upload via iTunes Transporter
- 🔄 **CI-friendly**: Works on macOS, Linux, Windows with structured output

## Installation

```bash
pip install slowlane
```

Or with Poetry:

```bash
poetry add slowlane
```

## Quick Start

### Using API Key (Recommended for CI)

```bash
# Set environment variables
export ASC_KEY_ID="XXXXXXXXXX"
export ASC_ISSUER_ID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
export ASC_PRIVATE_KEY="$(cat AuthKey_XXXXXXXXXX.p8)"

# List your apps
slowlane asc apps list

# Upload an IPA
slowlane upload ipa ./MyApp.ipa
```

### Using Session Auth

```bash
# Interactive login (opens browser)
slowlane spaceauth login

# Export session for CI
slowlane spaceauth export

# Use session in CI
export FASTLANE_SESSION="..."
slowlane asc apps list
```

## Commands

| Command | Description |
|---------|-------------|
| `spaceauth login` | Interactive browser login |
| `spaceauth export` | Export session as env var |
| `spaceauth verify` | Test session validity |
| `spaceauth revoke` | Clear stored session |
| `spaceauth doctor` | Diagnose auth issues |
| `asc apps list\|get` | Manage apps |
| `asc builds list\|latest` | Manage builds |
| `asc testflight testers\|groups\|invite` | TestFlight |
| `signing certs list\|create\|revoke` | Certificates |
| `signing profiles list\|create\|delete` | Profiles |
| `upload ipa <path>` | Upload IPA |
| `env print` | Print CI exports |

## Configuration

Config file: `~/.config/slowlane/config.toml`

```toml
[auth]
default_mode = "jwt"  # or "session"

[http]
timeout = 30
max_retries = 3

[output]
format = "text"  # or "json"
```

## CI Examples

### GitHub Actions

```yaml
- name: Upload to App Store
  env:
    ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
    ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
    ASC_PRIVATE_KEY: ${{ secrets.ASC_PRIVATE_KEY }}
  run: |
    pip install slowlane
    slowlane upload ipa ./app.ipa
```

## Security

- Secrets stored in OS keychain (via `keyring`) with encrypted fallback
- Sessions include metadata only (email hashed, never stored plaintext)
- Passwords never stored - only used to mint sessions interactively
- All secrets redacted from logs by default

## License

MIT

