Templates: Jumpstart Your PyRun Projects ⚡️
PyRun Templates provide pre-configured environments to get you up and running quickly with your favorite tools. Instead of starting from scratch, use a template as a foundation and focus on your code!
What are PyRun Templates?
Templates are ready-to-use starting points for your PyRun workspaces. They provide:
- Pre-configured Environments: Essential packages and dependencies are already installed and configured.
- Example Code: Basic example scripts to demonstrate how to use the selected tool.
- Automatic Setup: PyRun handles the behind-the-scenes configuration, so you can start coding immediately.
Available Templates
Currently, PyRun offers templates for:
Lithops: Get a workspace pre-configured with Lithops for massively parallel computing. Ideal for data processing, ETL, scientific simulations, and more.
Dask: Create a workspace ready for scalable data science and machine learning with Dask. Perfect for parallelizing your Python code and working with large datasets.
Creating a Workspace from a Template
- Go to the "Workspaces" Section: In your PyRun dashboard, navigate to the "Workspaces" section.
- Click "New Workspace": Start the workspace creation process.
- Choose a Template: On the workspace creation page, you'll see the available templates (Lithops and Dask). Select the one that best suits your project.
- Click "Create": PyRun will automatically set up your workspace based on the chosen template.
What's Included in a Template Workspace?
When you create a workspace from a template, you'll find:
example.py
: A sample Python script demonstrating how to use the chosen tool (Lithops or Dask)..pyrun/environment.yml
: A pre-configured Conda environment file with the necessary dependencies for the selected tool.- Fully Configured Runtime: PyRun automatically sets up the runtime environment based on the template, so you can start coding right away.
Expanding Your Template-Based Workspace
Templates are just a starting point! You can easily:
- Modify
example.py
: Adapt the example code to your specific needs. - Add Your Own Code: Create new Python files or upload existing code.
- Customize the Environment: Edit
.pyrun/environment.yml
to install additional packages or adjust dependencies (see Customizing Your Runtime).
Looking for Real-World Examples? Check out Pipelines!
If you want pre-configured environments with complete, real-world use cases for Lithops and Dask, explore the Pipelines section. Pipelines provide fully functional examples demonstrating how to use these tools for practical tasks.
The Future of Templates
We're constantly expanding our template library! In the future, you can expect to see templates for:
- More Development Environments: We will add support for additional development environments and popular tools.
- Specialized Use Cases: Templates tailored to specific tasks, such as machine learning model training, data visualization, and more.
Get started faster with PyRun Templates! Choose your favorite tool and let PyRun handle the setup.