Skip to content

Getting Started

Welcome to the Pygeoweaver documentation! This guide will help you get started with using Pygeoweaver, a Python package that provides support for geoweaver functionalities.

Table of Contents

Installation

To begin using Pygeoweaver, you need to install it on your system. Pygeoweaver is available on the Python Package Index (PyPI), which means you can install it easily using pip.

pip install pygeoweaver

This command will install the latest version of Pygeoweaver and its dependencies on your machine. Make sure you have Python and pip installed and properly configured before running this command.

Quick Start

Once you have installed Pygeoweaver, you can quickly get started with the following steps:

  1. Import the Pygeoweaver package in your Python script or interactive session:
import pygeoweaver
  1. Create a process using the create_process function. This function allows you to define the programming language, description, name, code, and other optional parameters for the process. Here's an example:
process = pygeoweaver.create_process(
    lang="python",
    description="My first Pygeoweaver process",
    name="Process 1",
    code="""
        # Your process code here
    """
)
  1. Explore the functionalities and methods provided by Pygeoweaver to work with processes, workflows, and other geoweaver-related tasks. Refer to the API Reference for detailed information on available classes and methods.

Using Pygeoweaver

Pygeoweaver offers a comprehensive set of features for managing geoweaver processes and workflows. Here are some key aspects of working with Pygeoweaver:

  • Creating Processes: Use the create_process function to define and create processes with the desired programming language, code, and other details.

  • Managing Workflows: Pygeoweaver allows you to create and manage workflows by defining nodes and edges using the create_workflow function. You can specify the nodes and their dependencies to construct complex workflows.

  • Interacting with Geoweaver: Pygeoweaver provides functions and methods to interact with a Geoweaver instance, enabling you to add processes, workflows, and perform other geoweaver-related tasks.

Additional Resources

  • Report Issues: If you encounter any issues or have suggestions for improvements, please report them on our GitHub repository here.

Congratulations! You have completed the Getting Started guide for Pygeoweaver. You are now ready to dive deeper into Pygeoweaver's capabilities and build your own geoweaver processes and workflows. Happy coding!