Sweatpants

Lazy man's automation engine. Easily create structured, composable workflows.

11 Docs

Sweatpants Documentation

Server-side automation engine for long-running tasks. Overview Sweatpants is a server-side Python engine for repeatable, long-running automation tasks. Write modules...

Updated March 2, 2026

Changelog

All notable changes to Sweatpants are documented in this file. [0.4.4] - 2026-02-17 Added POST /modules/reload endpoint for hot-reloading modules...

Updated February 17, 2026

Configuration

Sweatpants is configured via environment variables with the SWEATPANTS_ prefix. Environment Variables Directories Variable Default Description SWEATPANTS_DATA_DIR /var/lib/sweatpants Data directory...

Updated February 16, 2026

REST API

FastAPI REST API exposed by the Sweatpants daemon on port 8420. Status GET /status Get engine status and running jobs....

Updated February 13, 2026

CLI Commands

Command-line interface for the Sweatpants automation engine. serve Start the Sweatpants daemon. sweatpants serve [OPTIONS] Options: --host, -h — API...

Updated February 13, 2026

Job Scheduler

Async job execution engine that manages module runs, checkpoints, and lifecycle. JobContext Context object passed to running modules providing logging...

Updated February 13, 2026

Module Loader

Handles module installation, loading, and management. ModuleManifest Pydantic model for module.json validation. class ModuleManifest(BaseModel): id: str name: str version: str...

Updated February 13, 2026

Sdk

Browser Pool

Playwright browser pool with automatic proxy integration and lifecycle management. Import from sweatpants import get_browser get_browser @asynccontextmanager async def get_browser(...

Updated February 13, 2026

Module Manifest

The module.json file defines a module's metadata, inputs, settings, and capabilities. Schema { "id": "string (required)", "name": "string (required)", "version":...

Updated February 13, 2026

Module Class

Base class for all Sweatpants automation modules. Import from sweatpants import Module Overview Modules must subclass Module and implement the...

Updated February 13, 2026

Proxy Client

HTTP client with rotating proxy support. Import from sweatpants import proxied_request proxied_request async def proxied_request( method: str, url: str, *,...

Updated February 13, 2026
← Back to Chubes.net