diff --git a/dune_client/api/extensions.py b/dune_client/api/extensions.py index 918f183..532ef6b 100644 --- a/dune_client/api/extensions.py +++ b/dune_client/api/extensions.py @@ -133,13 +133,20 @@ def download_csv(self, query: Union[QueryBase, str, int]) -> ExecutionResultCSV: ############################ # Plus Subscription Features ############################ - def upload_csv(self, table_name: str, data: str, description: str = "") -> bool: + def upload_csv( + self, + table_name: str, + data: str, + description: str = "", + is_private: bool = False, + ) -> bool: """ https://dune.com/docs/api/api-reference/upload-data/?h=data+upload#endpoint The write API allows you to upload any .csv file into Dune. The only limitations are: - File has to be < 200 MB - Column names in the table can't start with a special character or digits. + - Private uploads require a Premium subscription. Below are the specifics of how to work with the API. """ @@ -149,6 +156,7 @@ def upload_csv(self, table_name: str, data: str, description: str = "") -> bool: "table_name": table_name, "description": description, "data": data, + "is_private": is_private, }, ) try: