Metadata-Version: 2.4
Name: assetpipe-cli
Version: 0.1.1
Summary: Universal Asset Pipeline CLI - Convert, optimize, and validate 3D/2D assets
Project-URL: Homepage, https://github.com/assetpipe/assetpipe
Project-URL: Documentation, https://assetpipe.dev/docs
Project-URL: Repository, https://github.com/assetpipe/assetpipe
Author: AssetPipe Team
License-Expression: MIT
License-File: LICENSE
Keywords: 3d,assets,conversion,gamedev,optimization,pipeline,vfx
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Requires-Python: >=3.10
Requires-Dist: httpx>=0.25.0
Requires-Dist: numpy>=1.24.0
Requires-Dist: pillow>=10.0.0
Requires-Dist: pydantic-settings>=2.0.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: pygltflib>=1.16.0
Requires-Dist: python-json-logger>=2.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0.0
Requires-Dist: trimesh>=4.0.0
Requires-Dist: typer[all]>=0.9.0
Requires-Dist: watchdog>=3.0.0
Provides-Extra: dev
Requires-Dist: black>=23.0.0; extra == 'dev'
Requires-Dist: mypy>=1.0.0; extra == 'dev'
Requires-Dist: pre-commit>=3.0.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Provides-Extra: fbx
Requires-Dist: fbx>=2020.0.0; extra == 'fbx'
Description-Content-Type: text/markdown

# 🔧 AssetPipe

**Universal Asset Pipeline CLI** — One tool to rule them all.

Convert, optimize, and validate 3D/2D assets across formats. Built for game studios, VFX houses, and arch-viz firms.

## Features

- **Format Conversion** — FBX ↔ glTF ↔ OBJ ↔ USD ↔ Alembic
- **Texture Optimization** — Resize, compress, generate mipmaps, convert to KTX2/WebP
- **Mesh Optimization** — Decimate, LOD generation, clean topology
- **Validation** — Missing textures, broken UVs, scale issues, naming conventions
- **Batch Processing** — Watch folders, CI/CD hooks, parallel execution
- **Plugin System** — Add custom rules and converters

## Installation

```bash
pip install assetpipe
```

## Quick Start

```bash
# Convert a single file
assetpipe convert model.fbx --to gltf

# Convert with optimization
assetpipe convert model.fbx --to gltf --optimize --validate

# Batch process a directory
assetpipe batch ./assets --config pipeline.yaml

# Watch folder for automatic processing
assetpipe watch ./incoming --config pipeline.yaml

# Validate assets
assetpipe validate ./assets --rules strict

# Generate report
assetpipe report ./assets --output report.html
```

## Configuration

Create a `pipeline.yaml` file:

```yaml
version: 1

input:
  formats: [fbx, obj, blend]
  
output:
  format: gltf
  directory: ./processed

optimization:
  mesh:
    decimate: 0.5  # Reduce to 50% triangles
    generate_lods: [1.0, 0.5, 0.25]
  textures:
    max_size: 2048
    format: webp
    quality: 85

validation:
  rules:
    - no_missing_textures
    - valid_uvs
    - max_triangles: 100000
    - naming_convention: "^[a-z][a-z0-9_]*$"

notifications:
  slack:
    webhook: $SLACK_WEBHOOK
    on: [error, complete]
```

## CLI Commands

| Command | Description |
|---------|-------------|
| `convert` | Convert a single asset |
| `batch` | Process multiple assets |
| `watch` | Watch folder for changes |
| `validate` | Validate assets against rules |
| `optimize` | Optimize meshes and textures |
| `report` | Generate asset report |
| `info` | Show asset information |
| `plugins` | Manage plugins |

## Supported Formats

### 3D Models
- **Import:** FBX, OBJ, glTF/GLB, BLEND*, USD*, Alembic*
- **Export:** glTF/GLB, OBJ, USD*

### Textures
- **Import:** PNG, JPG, TGA, EXR, PSD*
- **Export:** PNG, JPG, WebP, KTX2*

*Requires additional dependencies

## Plugin Development

Create custom converters and validators:

```python
# plugins/my_validator.py
from assetpipe.plugins import ValidatorPlugin, ValidationResult

class MyValidator(ValidatorPlugin):
    name = "my_custom_check"
    
    def validate(self, asset):
        if asset.triangle_count > 50000:
            return ValidationResult.error("Too many triangles!")
        return ValidationResult.ok()
```

Register in `pipeline.yaml`:

```yaml
plugins:
  - path: ./plugins/my_validator.py
    enabled: true
```

## CI/CD Integration

### GitHub Actions

```yaml
- name: Validate Assets
  run: |
    pip install assetpipe
    assetpipe validate ./assets --rules strict --fail-on-error
```

### Pre-commit Hook

```yaml
# .pre-commit-config.yaml
repos:
  - repo: local
    hooks:
      - id: assetpipe-validate
        name: Validate 3D Assets
        entry: assetpipe validate
        files: \.(fbx|obj|gltf|glb)$
        language: system
```

## License

MIT License - see [LICENSE](LICENSE) for details.

## Contributing

Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
