Quick Start Guide
Get up and running with Angreal in just a few minutes.
Prerequisites
Section titled “Prerequisites”- Python 3.8 or higher
- pip (Python package installer)
- Git (for template installation)
Installation
Section titled “Installation”From PyPI (Recommended)
Section titled “From PyPI (Recommended)”Install the latest stable version:
pip install angrealFrom Source
Section titled “From Source”Install the latest development version:
pip install git+https://github.com/angreal/angreal.gitSetting up Angreal for local development is a different workflow — see the contributing docs.
Verify Installation
Section titled “Verify Installation”After installation, verify that Angreal is working. It prints the installed version number:
angreal --version# Expected output: angreal X.Y.ZYou can also check available commands:
angreal --helpYour First Task
Section titled “Your First Task”- Create a new directory for your project:
mkdir my-projectcd my-project- Create an
.angrealdirectory — the directory Angreal looks in for your task files:
mkdir .angreal- Create your first task file
.angreal/task_hello.py. Task files must be namedtask_*.py:
import angreal
@angreal.command(name="hello", about="Say hello")@angreal.argument(name="name", long="name", help="Name to greet", required=False)def hello_command(name="World"): """A simple hello world task.""" print(f"Hello, {name}!")- Run your task:
angreal hello# Output: Hello, World!
angreal hello --name Alice# Output: Hello, Alice!Using Templates
Section titled “Using Templates”Angreal can create projects from templates. Pass angreal init a single
argument — a template URL or a local path — and answer the prompts. The name you
provide becomes your new project’s directory:
# Initialize from a GitHub templateangreal init https://github.com/angreal/python.git
# Or use a local templateangreal init /path/to/templatePopular templates:
https://github.com/angreal/python.git- Python project template
Troubleshooting
Section titled “Troubleshooting”Command not found
Section titled “Command not found”If angreal is not found after installation, ensure your Python Scripts directory is in your PATH:
- Linux/macOS:
~/.local/bin - Windows:
%APPDATA%\Python\Scripts
ImportError
Section titled “ImportError”If you get import errors, ensure you’re using Python 3.8+ and have installed all dependencies:
python --version # Should be 3.8 or higherpip install --upgrade angrealNext Steps
Section titled “Next Steps”- Learn more about creating tasks
- Explore project templates
- Read the API reference