Quickstart
This guide will walk you through building a simple “Hello World” application using the Atlan Application SDK. You’ll learn the core concepts of workflows, activities, and the application lifecycle.Prerequisites
Before you begin, make sure you have:- Python 3.11 or higher installed
- The Atlan Application SDK installed (see Installation)
Build your first application
Understanding the code
Let’s break down the key components:Workflow
TheHelloWorldWorkflow class defines your workflow logic:
@workflow.defn: Marks this class as a Temporal workflow@workflow.run: Defines the main workflow execution method- Workflows orchestrate activities and contain business logic
Activities
TheHelloWorldActivities class defines tasks that can be executed:
@activity.defn: Marks this method as a Temporal activity@auto_heartbeater: Automatically sends heartbeats to Temporal during execution- Activities contain the actual work (API calls, database queries, etc.)
Application
TheBaseApplication class manages the workflow lifecycle:
setup_workflow(): Registers your workflow and activities with Temporalstart_workflow(): Initiates a workflow executionstart_worker(): Starts the worker that processes workflow tasks
Next steps
Core concepts
Learn about the BaseApplication, workflows, and activities in depth
SQL application
Build a real-world application that extracts database metadata
Architecture
Understand how Temporal and Dapr power the SDK
API reference
Explore the complete API documentation
Troubleshooting
ImportError: No module named 'temporalio'
ImportError: No module named 'temporalio'
Make sure you installed the SDK with the
workflows extra:Connection errors
Connection errors
The SDK requires a Temporal server to be running. For local development, you can:
- Use the provided Docker Compose setup in the repository
- Install Temporal CLI and run
temporal server start-dev
Python version errors
Python version errors
The SDK requires Python 3.11 or higher. Check your version: