Metadata-Version: 2.4
Name: autostartx
Version: 1.0.2
Summary: Transform any command-line program into an auto-restarting background service
Author-email: Autostartx <autostartx@example.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/autostartx/autostartx
Project-URL: Repository, https://github.com/autostartx/autostartx
Project-URL: Issues, https://github.com/autostartx/autostartx/issues
Keywords: service,process,daemon,auto-restart,cli
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.0.0
Requires-Dist: psutil>=5.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: toml>=0.10.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: ruff>=0.1.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Dynamic: license-file

# Autostartx - Turn Any Command into a Service

Transform any command-line program into an auto-restarting background service with a single command. Simple, fast, zero configuration.

[![Python](https://img.shields.io/badge/python-3.8+-blue.svg)](https://python.org) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

[中文文档](README_zh.md) | [English](README.md)

## Quick Start

**Option 1: One-time use with uvx**  

Turn long-running commands into services  

`
uvx autostartx add "python -m http.server 8000" --name web
`

**Option 2: Install to system**  

Install once, use anywhere  

`pip install autostartx`

or

`uvx autostartx install`

**Option 3: Traditional install**
```bash
git clone https://github.com/faker2048/autostartx.git && cd autostartx && pip install .
```

**Basic Usage**
```bash
autostartx add "python -m http.server 8000" --name web
autostartx add "tailscale up --ssh" --name vpn

# Or use the short alias 'asx' (same functionality)
asx add "python -m http.server 8000" --name web
asx list
```

**Check your services**
```bash
autostartx list        # Show all services
autostartx logs web -f # View logs

# Short version
asx list
asx logs web -f
```

## Commands

```bash
autostartx add "command"           # Add service (or: asx add "command")
autostartx list                   # Show services (or: asx list)
autostartx start/stop/restart     # Control services  
autostartx logs <name> -f         # View logs
autostartx daemon --action start  # Auto-restart daemon
```

## Why Autostartx?

- **Simple**: One command to turn any long-running process into a service
- **Reliable**: Automatic restarts when processes crash
- **Cross-platform**: Works on Windows, Linux, macOS
- **Zero config**: No setup files needed

Perfect for dev servers, background daemons, monitoring tools, proxy services.

## License

MIT License
