Understanding the Project Class
The Project class is a fundamental component of the Kodexa SDK, representing a container for your data extraction and processing tasks. Here’s the definition of the Project class:id
: A unique identifier for the project.organization
: The organization to which the project belongs.name
: The name of the project.description
: A brief description of the project.metadata
: Additional metadata associated with the project.has_image
: Indicates whether the project has an associated image.status
: The current status of the project.owner
: The user who owns the project.options
: Additional options for the project.
model_config
settings enable features like populating by field name, using enum values, and allowing arbitrary types.
Now that we understand the structure of a Project, let’s proceed with creating a project and loading a taxonomy.
Step 1: Initialize the Kodexa Client and Organization
First, you need to have a Kodexa client and an organization endpoint:Step 2: Create the Project
Next, create a new Project object with a name and description:organization.detach()
method is used to ensure we’re working with a detached copy of the organization object.