Skip to content

Commit

Permalink
testing drive functions
Browse files Browse the repository at this point in the history
  • Loading branch information
maudhelen committed Mar 12, 2024
1 parent d2a2a70 commit c563ca8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions codecompasslib/test_drive.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@
"name": "stdout",
"output_type": "stream",
"text": [
"/Users/maudhelenhovland/Desktop/CodeCompass\n",
"/Users/maudhelenhovland/Desktop/CodeCompass/credentials_drive/token.json\n",
"\n",
"Files in the folder:\n",
"test.csv (1hAP9CD6iP4FSZP4RSRm2CYUrS2KF_Lhf)\n",
"allReposCleaned.csv (1jIYBQQJNo2s1bo3LHlYgKzUNNM0ueuhQ)\n"
]
}
],
"source": [
"from drive_operations import get_creds_drive, list_shared_drive_contents, download_csv_as_pd_dataframe, upload_df_to_drive_as_csv\n",
"from API.drive_operations import get_creds_drive, list_shared_drive_contents, download_csv_as_pd_dataframe, upload_df_to_drive_as_csv\n",
"\n",
"DRIVE_ID = \"0AL1DtB4TdEWdUk9PVA\"\n",
"DATA_FOLDER = \"13JitBJQLNgMvFwx4QJcvrmDwKOYAShVx\"\n",
Expand All @@ -35,6 +37,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"Download 100%.\n"
]
},
Expand Down Expand Up @@ -266,7 +269,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -280,6 +283,7 @@
" 'has _discussions', 'num_forks', 'is_archived', 'is_disabled',\n",
" 'is_template', 'license', 'open_issues', 'topics', 'test_column'],\n",
" dtype='object')\n",
"\n",
"Files in the folder:\n",
"test.csv (1hAP9CD6iP4FSZP4RSRm2CYUrS2KF_Lhf)\n",
"allReposCleaned.csv (1jIYBQQJNo2s1bo3LHlYgKzUNNM0ueuhQ)\n"
Expand All @@ -301,6 +305,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"File updated. File ID: 1hAP9CD6iP4FSZP4RSRm2CYUrS2KF_Lhf\n"
]
}
Expand Down

0 comments on commit c563ca8

Please sign in to comment.