Metadata-Version: 2.4
Name: apdf-cloud-cli
Version: 0.1.0
Summary: CLI and MCP server tools for Aspose PDF Cloud
Keywords: aspose,pdf,cli,mcp
Author: Andriy Andruhovski
Author-email: andruhovski@gmail.com
Requires-Python: >=3.11
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Provides-Extra: dev
Requires-Dist: asposepdfcloud (>=26.4.0,<27.0.0)
Requires-Dist: build (>=1.2.0) ; extra == "dev"
Requires-Dist: mcp (>=1.0.0)
Requires-Dist: pytest (>=8.0.0) ; extra == "dev"
Requires-Dist: pytest-mock (>=3.12.0) ; extra == "dev"
Requires-Dist: rich (>=13.0.0)
Requires-Dist: twine (>=5.0.0) ; extra == "dev"
Requires-Dist: typer (>=0.12.0)
Project-URL: Homepage, https://github.com/andruhovski/apdf-tools
Project-URL: Issues, https://github.com/andruhovski/apdf-tools/issues
Project-URL: Repository, https://github.com/andruhovski/apdf-tools
Description-Content-Type: text/markdown

# APDF Cloud CLI + MCP Tools

Stage 1 exposes APDF storage and PDF operations through both a CLI
and an MCP server.

## Configuration

Set credentials before running CLI commands or the MCP server:

```powershell
$env:ASPOSE_CLIENT_ID = "your-client-id"
$env:ASPOSE_CLIENT_SECRET = "your-client-secret"
```

Optional environment variables:

- `ASPOSE_BASE_URL`
- `ASPOSE_SELF_HOST`
- `ASPOSE_STORAGE_NAME`

## CLI

The canonical executable is `apdf-cloud-cli`. A shorter `apdf`
alias is also installed for convenience.

```powershell
apdf-cloud-cli storage list /
apdf-cloud-cli storage upload .\sample.pdf /sample.pdf
apdf-cloud-cli storage download /sample.pdf .\sample.pdf
apdf-cloud-cli pdf merge /a.pdf /b.pdf merged.pdf
apdf-cloud-cli pdf extract-text sample.pdf --output sample.txt
apdf-cloud-cli mcp serve
```

## Development

Install the package with development dependencies:

```powershell
python -m pip install -e ".[dev]"
```

Run the default test suite:

```powershell
python -m pytest -q
```

Build and validate the package distributions:

```powershell
python -m build
python -m twine check dist/*
```

## Publishing

Publishing is handled by GitHub Actions with PyPI trusted publishing.

1. In PyPI, add a trusted publisher for repository
   `andruhovski/apdf-tools`, workflow `publish.yml`, environment `pypi`,
   and project name `apdf-cloud-cli`.
2. Update the version in `pyproject.toml` and
   `src/apdf_cloud_cli/__init__.py`.
3. Push a matching version tag, for example:

```powershell
git tag v0.1.0
git push origin v0.1.0
```

## Stage 2 Roadmap

- Split PDF files
- Extract images from PDF files
- Extract tables from PDF files

