Create your first resource

In this tutorial you will learn how to create and test a Resource. This requires basic understanding of what a Resource is and what a Task is.

Before creating a Resource class, it is recommended to check whether a similar Resource exists or not. For exemple, if you want to create a Resource that hold a 2d array (like a Dataframe) you might want ot check the Table Resource from gws_core.
It is recommended to use standard Resource classes (like Table, File...) because they will be compatible with many processes and already have pre-defined views.
Also if you object is composed of different objects you might want to use the ResourceSet class. ResourceSet allows you multiple resources inside one single Resource. With this you will still be able to use standard Resource classes.
If the existing Resources do not match your need, you still can create your own Resource class.