graviti.operation.sheet
#
Definitions of different operations about the sheet on a draft.
Module Contents#
Classes#
This class defines the basic method of the operation about the sheet on a draft. |
|
This class defines the operation that create a sheet. |
|
This class defines the operation that delete a sheet. |
- class graviti.operation.sheet.SheetOperation(sheet)[source]#
This class defines the basic method of the operation about the sheet on a draft.
- Parameters
sheet (str) – The sheet name.
- abstract do(self, access_key, url, owner, dataset, *, draft_number)[source]#
Execute the OpenAPI create sheet.
- Parameters
access_key (str) – User’s access key.
url (str) – The URL of the graviti website.
owner (str) – The owner of the dataset.
dataset (str) – Name of the dataset, unique for a user.
draft_number (int) – The draft number.
- Raises
NotImplementedError – The method of the base class should not be called.
- Return type
None
- class graviti.operation.sheet.CreateSheet(sheet, schema)[source]#
Bases:
SheetOperation
This class defines the operation that create a sheet.
- Parameters
sheet (str) – The sheet name.
schema (graviti.portex.PortexType) – The schema of the DataFrame.
- do(self, access_key, url, owner, dataset, *, draft_number)[source]#
Execute the OpenAPI create sheet.
- Parameters
access_key (str) – User’s access key.
url (str) – The URL of the graviti website.
owner (str) – The owner of the dataset.
dataset (str) – Name of the dataset, unique for a user.
draft_number (int) – The draft number.
- Return type
None
- class graviti.operation.sheet.DeleteSheet(sheet)[source]#
Bases:
SheetOperation
This class defines the operation that delete a sheet.
- Parameters
sheet (str) –
- do(self, access_key, url, owner, dataset, *, draft_number)[source]#
Execute the OpenAPI delete sheet.
- Parameters
access_key (str) – User’s access key.
url (str) – The URL of the graviti website.
owner (str) – The owner of the dataset.
dataset (str) – Name of the dataset, unique for a user.
draft_number (int) – The draft number.
- Return type
None