diff --git a/internal-user/PRD-1703.ipynb b/internal-user/PRD-1703.ipynb new file mode 100644 index 0000000..6bdd285 --- /dev/null +++ b/internal-user/PRD-1703.ipynb @@ -0,0 +1,1036 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "9799f69d", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Collecting polly-python==3.1.0\n", + " Downloading https://elucidatainc.github.io/PublicAssets/builds/polly-python/tests/testpolly/polly_python-3.1.0-py3-none-any.whl (155 kB)\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m155.6/155.6 kB\u001b[0m \u001b[31m5.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25hRequirement already satisfied: tabulate==0.9.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (0.9.0)\n", + "Requirement already satisfied: boto3<2.0,>=1.24.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.28.40)\n", + "Requirement already satisfied: retrying==1.3.4 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.3.4)\n", + "Requirement already satisfied: mixpanel==4.10.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (4.10.0)\n", + "Requirement already satisfied: pandas<=2.2.2,>=1.3.5 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.5.3)\n", + "Requirement already satisfied: pytest>=6.2.5 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (7.4.3)\n", + "Requirement already satisfied: pydantic==1.10.12 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.10.12)\n", + "Requirement already satisfied: botocore<2.0,>=1.27.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.31.40)\n", + "Requirement already satisfied: tqdm==4.65.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (4.65.0)\n", + "Requirement already satisfied: Deprecated>=1.2.12 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.2.14)\n", + "Requirement already satisfied: requests==2.28.1 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (2.28.1)\n", + "Requirement already satisfied: joblib>=1.2.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.3.2)\n", + "Requirement already satisfied: numpy<=1.26.4 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.25.2)\n", + "Requirement already satisfied: python-jose==3.3.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (3.3.0)\n", + "Requirement already satisfied: cmapPy<=4.0.1 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (4.0.1)\n", + "Requirement already satisfied: plotly>=5.0.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (5.18.0)\n", + "Requirement already satisfied: cloudpathlib>=0.15.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (0.16.0)\n", + "Requirement already satisfied: cryptography<=38.0.0,>=37.0.1 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (38.0.0)\n", + "Requirement already satisfied: rst2txt==1.1.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from polly-python==3.1.0) (1.1.0)\n", + "Requirement already satisfied: six>=1.9.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from mixpanel==4.10.0->polly-python==3.1.0) (1.16.0)\n", + "Requirement already satisfied: urllib3 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from mixpanel==4.10.0->polly-python==3.1.0) (1.26.16)\n", + "Requirement already satisfied: typing-extensions>=4.2.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from pydantic==1.10.12->polly-python==3.1.0) (4.7.1)\n", + "Requirement already satisfied: ecdsa!=0.15 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from python-jose==3.3.0->polly-python==3.1.0) (0.18.0)\n", + "Requirement already satisfied: rsa in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from python-jose==3.3.0->polly-python==3.1.0) (4.7.2)\n", + "Requirement already satisfied: pyasn1 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from python-jose==3.3.0->polly-python==3.1.0) (0.5.0)\n", + "Requirement already satisfied: charset-normalizer<3,>=2 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from requests==2.28.1->polly-python==3.1.0) (2.1.1)\n", + "Requirement already satisfied: certifi>=2017.4.17 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from requests==2.28.1->polly-python==3.1.0) (2023.7.22)\n", + "Requirement already satisfied: idna<4,>=2.5 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from requests==2.28.1->polly-python==3.1.0) (2.10)\n", + "Requirement already satisfied: docutils>=0.11 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from rst2txt==1.1.0->polly-python==3.1.0) (0.16)\n", + "Requirement already satisfied: pygments in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from rst2txt==1.1.0->polly-python==3.1.0) (2.16.1)\n", + "Requirement already satisfied: s3transfer<0.7.0,>=0.6.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from boto3<2.0,>=1.24.0->polly-python==3.1.0) (0.6.2)\n", + "Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from boto3<2.0,>=1.24.0->polly-python==3.1.0) (1.0.1)\n", + "Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from botocore<2.0,>=1.27.0->polly-python==3.1.0) (2.8.2)\n", + "Requirement already satisfied: h5py>=2.6.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from cmapPy<=4.0.1->polly-python==3.1.0) (3.10.0)\n", + "Requirement already satisfied: cffi>=1.12 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from cryptography<=38.0.0,>=37.0.1->polly-python==3.1.0) (1.15.1)\n", + "Requirement already satisfied: wrapt<2,>=1.10 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from Deprecated>=1.2.12->polly-python==3.1.0) (1.16.0)\n", + "Requirement already satisfied: pytz>=2020.1 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from pandas<=2.2.2,>=1.3.5->polly-python==3.1.0) (2023.3)\n", + "Requirement already satisfied: packaging in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from plotly>=5.0.0->polly-python==3.1.0) (23.1)\n", + "Requirement already satisfied: tenacity>=6.2.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from plotly>=5.0.0->polly-python==3.1.0) (8.2.3)\n", + "Requirement already satisfied: pluggy<2.0,>=0.12 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from pytest>=6.2.5->polly-python==3.1.0) (1.3.0)\n", + "Requirement already satisfied: tomli>=1.0.0 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from pytest>=6.2.5->polly-python==3.1.0) (2.0.1)\n", + "Requirement already satisfied: exceptiongroup>=1.0.0rc8 in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from pytest>=6.2.5->polly-python==3.1.0) (1.1.3)\n", + "Requirement already satisfied: iniconfig in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from pytest>=6.2.5->polly-python==3.1.0) (2.0.0)\n", + "Requirement already satisfied: pycparser in ./.environments/miniconda/envs/polly/lib/python3.10/site-packages (from cffi>=1.12->cryptography<=38.0.0,>=37.0.1->polly-python==3.1.0) (2.21)\n", + "Installing collected packages: polly-python\n", + " Attempting uninstall: polly-python\n", + " Found existing installation: polly_python 3.0.0\n", + " Uninstalling polly_python-3.0.0:\n", + " Successfully uninstalled polly_python-3.0.0\n", + "Successfully installed polly-python-3.1.0\n", + "Note: you may need to restart the kernel to use updated packages.\n" + ] + } + ], + "source": [ + "pip install https://elucidatainc.github.io/PublicAssets/builds/polly-python/tests/testpolly/polly_python-3.1.0-py3-none-any.whl" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "16bcc01d", + "metadata": {}, + "outputs": [], + "source": [ + "from polly.auth import Polly\n", + "from polly.workspaces import Workspaces\n", + "API_KEY = \"\"\n", + "Polly.auth(API_KEY, env=\"testpolly\")\n", + "w = Workspaces()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "e9fae62d", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "INFO:root:Workspace Created !\n" + ] + }, + { + "data": { + "text/plain": [ + "{'name': 'new_workspace_8',\n", + " 'description': None,\n", + " 'project_property': {'type': 'workspaces', 'labels': ''},\n", + " 'created_time': '2024-12-19 10:09:50',\n", + " 'last_modified': '2024-12-19 10:09:50',\n", + " 'status': 1,\n", + " 'creator': 1709822253,\n", + " 'organisation': 1,\n", + " 'id': 16612,\n", + " 'tag_names': []}" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "w.create_workspace(\"new_workspace_8\")" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "9cadde7f", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[{'id': 16612,\n", + " 'name': 'new_workspace_8',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-12-19 10:09:50',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16564,\n", + " 'name': 'mimic_demo_etl',\n", + " 'status': 'active',\n", + " 'description': '',\n", + " 'last_modified': '2024-10-03 04:22:17',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16560,\n", + " 'name': 'new_workspace_6',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-09-16 13:42:42',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16559,\n", + " 'name': 'new_workspace_6',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-09-17 06:18:40',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16558,\n", + " 'name': 'test11',\n", + " 'status': 'active',\n", + " 'description': 'testing archive',\n", + " 'last_modified': '2024-11-28 10:38:25',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16557,\n", + " 'name': 'new_test',\n", + " 'status': 'active',\n", + " 'description': 'for permissions added desc',\n", + " 'last_modified': '2024-11-22 13:46:18',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 15492,\n", + " 'name': 'new_workspace_testing_4__Restored',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-09-19 09:06:06',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': True},\n", + " {'id': 16535,\n", + " 'name': 'new_workspace_5',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-06-28 14:47:10',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16533,\n", + " 'name': 'new_test_workspace4',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-06-24 11:51:58',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16532,\n", + " 'name': 'new_test_workspace4',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-06-24 11:51:38',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16526,\n", + " 'name': 'new_workspace_2',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-06-21 07:35:08',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16524,\n", + " 'name': 'new_test_workspace2',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-09-25 11:35:28',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16523,\n", + " 'name': 'new_test_workspace',\n", + " 'status': 'archived',\n", + " 'description': None,\n", + " 'last_modified': '2024-05-15 13:24:26',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16521,\n", + " 'name': 'workspace_test',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-05-29 11:37:07',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16520,\n", + " 'name': 'workspace_test',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-05-14 12:18:41',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16519,\n", + " 'name': 'test_create_workspace',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-05-13 13:20:52',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16518,\n", + " 'name': 'New_Workspace',\n", + " 'status': 'active',\n", + " 'description': None,\n", + " 'last_modified': '2024-09-16 12:07:17',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 16503,\n", + " 'name': 'my_workspace',\n", + " 'status': 'active',\n", + " 'description': '',\n", + " 'last_modified': '2024-12-19 10:04:07',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False},\n", + " {'id': 14643,\n", + " 'name': 'LIB-215_report',\n", + " 'status': 'active',\n", + " 'description': '',\n", + " 'last_modified': '2024-07-10 12:12:04',\n", + " 'tag_names': [],\n", + " 'favourite': False,\n", + " 'watch': False}]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "w._fetch_workspaces_iteratively()" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "fcd1e49e", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
Workspace_idWorkspace_namestatusdescriptionlast_modifiedtag_namesfavouritewatch
016503my_workspaceactive2024-12-19 10:10:05[]FalseFalse
116612new_workspace_8activeNone2024-12-19 10:09:50[]FalseFalse
216558test11activetesting archive2024-11-28 10:38:25[]FalseFalse
316557new_testactivefor permissions added desc2024-11-22 13:46:18[]FalseFalse
416564mimic_demo_etlactive2024-10-03 04:22:17[]FalseFalse
516524new_test_workspace2activeNone2024-09-25 11:35:28[]FalseFalse
615492new_workspace_testing_4__RestoredactiveNone2024-09-19 09:06:06[]FalseTrue
716559new_workspace_6activeNone2024-09-17 06:18:40[]FalseFalse
816560new_workspace_6activeNone2024-09-16 13:42:42[]FalseFalse
916518New_WorkspaceactiveNone2024-09-16 12:07:17[]FalseFalse
1014643LIB-215_reportactive2024-07-10 12:12:04[]FalseFalse
1116535new_workspace_5activeNone2024-06-28 14:47:10[]FalseFalse
1216533new_test_workspace4activeNone2024-06-24 11:51:58[]FalseFalse
1316532new_test_workspace4activeNone2024-06-24 11:51:38[]FalseFalse
1416526new_workspace_2activeNone2024-06-21 07:35:08[]FalseFalse
1516521workspace_testactiveNone2024-05-29 11:37:07[]FalseFalse
1616523new_test_workspacearchivedNone2024-05-15 13:24:26[]FalseFalse
1716520workspace_testactiveNone2024-05-14 12:18:41[]FalseFalse
1816519test_create_workspaceactiveNone2024-05-13 13:20:52[]FalseFalse
\n", + "
" + ], + "text/plain": [ + " Workspace_id Workspace_name status \\\n", + "0 16503 my_workspace active \n", + "1 16612 new_workspace_8 active \n", + "2 16558 test11 active \n", + "3 16557 new_test active \n", + "4 16564 mimic_demo_etl active \n", + "5 16524 new_test_workspace2 active \n", + "6 15492 new_workspace_testing_4__Restored active \n", + "7 16559 new_workspace_6 active \n", + "8 16560 new_workspace_6 active \n", + "9 16518 New_Workspace active \n", + "10 14643 LIB-215_report active \n", + "11 16535 new_workspace_5 active \n", + "12 16533 new_test_workspace4 active \n", + "13 16532 new_test_workspace4 active \n", + "14 16526 new_workspace_2 active \n", + "15 16521 workspace_test active \n", + "16 16523 new_test_workspace archived \n", + "17 16520 workspace_test active \n", + "18 16519 test_create_workspace active \n", + "\n", + " description last_modified tag_names favourite \\\n", + "0 2024-12-19 10:10:05 [] False \n", + "1 None 2024-12-19 10:09:50 [] False \n", + "2 testing archive 2024-11-28 10:38:25 [] False \n", + "3 for permissions added desc 2024-11-22 13:46:18 [] False \n", + "4 2024-10-03 04:22:17 [] False \n", + "5 None 2024-09-25 11:35:28 [] False \n", + "6 None 2024-09-19 09:06:06 [] False \n", + "7 None 2024-09-17 06:18:40 [] False \n", + "8 None 2024-09-16 13:42:42 [] False \n", + "9 None 2024-09-16 12:07:17 [] False \n", + "10 2024-07-10 12:12:04 [] False \n", + "11 None 2024-06-28 14:47:10 [] False \n", + "12 None 2024-06-24 11:51:58 [] False \n", + "13 None 2024-06-24 11:51:38 [] False \n", + "14 None 2024-06-21 07:35:08 [] False \n", + "15 None 2024-05-29 11:37:07 [] False \n", + "16 None 2024-05-15 13:24:26 [] False \n", + "17 None 2024-05-14 12:18:41 [] False \n", + "18 None 2024-05-13 13:20:52 [] False \n", + "\n", + " watch \n", + "0 False \n", + "1 False \n", + "2 False \n", + "3 False \n", + "4 False \n", + "5 False \n", + "6 True \n", + "7 False \n", + "8 False \n", + "9 False \n", + "10 False \n", + "11 False \n", + "12 False \n", + "13 False \n", + "14 False \n", + "15 False \n", + "16 False \n", + "17 False \n", + "18 False " + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "w.fetch_my_workspaces()" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "c3e27f1d", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
file_namesizelast_modified
0Polly Notebook Mon Apr 15 2024 15:29:51.ipynb29.26 KB2024-04-17 09:38:02
1Polly Notebook Fri Apr 12 2024 14:16:40.ipynb61.64 KB2024-05-22 05:52:02
2Polly Notebook Wed May 22 2024 19:50:07.ipynb65.0 B2024-05-22 14:26:02
3Polly Notebook Wed May 29 2024 16:54:35.ipynb65.0 B2024-05-29 11:30:03
4Polly Notebook Wed May 29 2024 17:19:29.ipynb26.7 KB2024-05-29 12:04:02
5new_folder--
6Polly Notebook Thu Apr 04 2024 20:10:38.ipynb65.0 B2024-04-04 14:48:02
7Polly Notebook Thu Apr 04 2024 20:11:56.ipynb1.27 KB2024-04-04 16:42:02
8Polly Notebook Fri Apr 12 2024 18:14:20.ipynb577.0 B2024-04-12 12:52:02
9Polly Notebook Mon Apr 15 2024 15:29:21.ipynb65.0 B2024-04-15 10:04:02
10Polly Notebook Fri Apr 19 2024 09:59:07.ipynb43.53 KB2024-04-19 10:26:02
11Polly Notebook Wed Aug 21 2024 16:40:30.ipynb43.53 KB2024-08-21 11:30:01
12sample.pdf18.37 KB2024-08-14 04:24:06
13Polly Notebook Fri Aug 30 2024 13:15:30.ipynb15.0 KB2024-08-30 08:16:02
14Atlas for pandas.ipynb20.11 KB2024-10-14 12:02:02
15Polly Notebook Fri Jun 07 2024 15:37:28.ipynb65.0 B2024-06-07 10:07:43
16PRD-1703.ipynb9.78 KB2024-12-19 10:10:02
17Polly Notebook Mon Apr 15 2024 11:11:13.ipynb65.0 B2024-04-15 05:46:02
18Polly Notebook Fri Apr 12 2024 18:12:21.ipynb65.0 B2024-04-12 12:48:02
19Polly Notebook Mon Apr 15 2024 11:11:37.ipynb37.06 KB2024-04-15 07:22:02
20Polly Notebook Thu Apr 18 2024 22:05:39.ipynb577.0 B2024-04-18 16:46:02
21Polly Notebook Wed May 22 2024 19:56:48.ipynb65.0 B2024-05-22 14:32:02
22Polly Notebook Wed May 22 2024 19:57:48.ipynb41.9 KB2024-05-22 14:52:02
23Polly Notebook Wed May 29 2024 17:04:57.ipynb65.0 B2024-05-29 11:35:13
24Polly Notebook Wed May 29 2024 16:54:07.ipynb65.0 B2024-05-29 11:24:31
25Polly Notebook Wed May 29 2024 17:11:06.ipynb65.0 B2024-05-29 11:41:18
26Polly Notebook Wed May 29 2024 17:19:54.ipynb26.7 KB2024-05-29 12:02:01
27Polly Notebook Wed May 29 2024 17:06:00.ipynb27.36 KB2024-05-30 06:30:03
28Polly Notebook Fri Jun 07 2024 15:37:53.ipynb65.0 B2024-06-07 10:08:09
29Polly Notebook Fri Jun 28 2024 20:19:05.ipynb26.98 KB2024-06-28 15:02:02
30release_v2.5.0.ipynb38.66 KB2024-09-17 06:22:02
31new_plan.txt285.46 KB2024-09-25 11:38:40
\n", + "
" + ], + "text/plain": [ + " file_name size \\\n", + "0 Polly Notebook Mon Apr 15 2024 15:29:51.ipynb 29.26 KB \n", + "1 Polly Notebook Fri Apr 12 2024 14:16:40.ipynb 61.64 KB \n", + "2 Polly Notebook Wed May 22 2024 19:50:07.ipynb 65.0 B \n", + "3 Polly Notebook Wed May 29 2024 16:54:35.ipynb 65.0 B \n", + "4 Polly Notebook Wed May 29 2024 17:19:29.ipynb 26.7 KB \n", + "5 new_folder - \n", + "6 Polly Notebook Thu Apr 04 2024 20:10:38.ipynb 65.0 B \n", + "7 Polly Notebook Thu Apr 04 2024 20:11:56.ipynb 1.27 KB \n", + "8 Polly Notebook Fri Apr 12 2024 18:14:20.ipynb 577.0 B \n", + "9 Polly Notebook Mon Apr 15 2024 15:29:21.ipynb 65.0 B \n", + "10 Polly Notebook Fri Apr 19 2024 09:59:07.ipynb 43.53 KB \n", + "11 Polly Notebook Wed Aug 21 2024 16:40:30.ipynb 43.53 KB \n", + "12 sample.pdf 18.37 KB \n", + "13 Polly Notebook Fri Aug 30 2024 13:15:30.ipynb 15.0 KB \n", + "14 Atlas for pandas.ipynb 20.11 KB \n", + "15 Polly Notebook Fri Jun 07 2024 15:37:28.ipynb 65.0 B \n", + "16 PRD-1703.ipynb 9.78 KB \n", + "17 Polly Notebook Mon Apr 15 2024 11:11:13.ipynb 65.0 B \n", + "18 Polly Notebook Fri Apr 12 2024 18:12:21.ipynb 65.0 B \n", + "19 Polly Notebook Mon Apr 15 2024 11:11:37.ipynb 37.06 KB \n", + "20 Polly Notebook Thu Apr 18 2024 22:05:39.ipynb 577.0 B \n", + "21 Polly Notebook Wed May 22 2024 19:56:48.ipynb 65.0 B \n", + "22 Polly Notebook Wed May 22 2024 19:57:48.ipynb 41.9 KB \n", + "23 Polly Notebook Wed May 29 2024 17:04:57.ipynb 65.0 B \n", + "24 Polly Notebook Wed May 29 2024 16:54:07.ipynb 65.0 B \n", + "25 Polly Notebook Wed May 29 2024 17:11:06.ipynb 65.0 B \n", + "26 Polly Notebook Wed May 29 2024 17:19:54.ipynb 26.7 KB \n", + "27 Polly Notebook Wed May 29 2024 17:06:00.ipynb 27.36 KB \n", + "28 Polly Notebook Fri Jun 07 2024 15:37:53.ipynb 65.0 B \n", + "29 Polly Notebook Fri Jun 28 2024 20:19:05.ipynb 26.98 KB \n", + "30 release_v2.5.0.ipynb 38.66 KB \n", + "31 new_plan.txt 285.46 KB \n", + "\n", + " last_modified \n", + "0 2024-04-17 09:38:02 \n", + "1 2024-05-22 05:52:02 \n", + "2 2024-05-22 14:26:02 \n", + "3 2024-05-29 11:30:03 \n", + "4 2024-05-29 12:04:02 \n", + "5 - \n", + "6 2024-04-04 14:48:02 \n", + "7 2024-04-04 16:42:02 \n", + "8 2024-04-12 12:52:02 \n", + "9 2024-04-15 10:04:02 \n", + "10 2024-04-19 10:26:02 \n", + "11 2024-08-21 11:30:01 \n", + "12 2024-08-14 04:24:06 \n", + "13 2024-08-30 08:16:02 \n", + "14 2024-10-14 12:02:02 \n", + "15 2024-06-07 10:07:43 \n", + "16 2024-12-19 10:10:02 \n", + "17 2024-04-15 05:46:02 \n", + "18 2024-04-12 12:48:02 \n", + "19 2024-04-15 07:22:02 \n", + "20 2024-04-18 16:46:02 \n", + "21 2024-05-22 14:32:02 \n", + "22 2024-05-22 14:52:02 \n", + "23 2024-05-29 11:35:13 \n", + "24 2024-05-29 11:24:31 \n", + "25 2024-05-29 11:41:18 \n", + "26 2024-05-29 12:02:01 \n", + "27 2024-05-30 06:30:03 \n", + "28 2024-06-07 10:08:09 \n", + "29 2024-06-28 15:02:02 \n", + "30 2024-09-17 06:22:02 \n", + "31 2024-09-25 11:38:40 " + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "w.list_contents(\"16503\")" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "ccaff093", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Workspace_copy started, You will be notified upon completion.\n", + "Copy Operation Successful!\n" + ] + } + ], + "source": [ + "w.create_copy(16503,\"new_folder/\",16612)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "651891e8", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
file_namesizelast_modified
0new_folder--
\n", + "
" + ], + "text/plain": [ + " file_name size last_modified\n", + "0 new_folder - -" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "w.list_contents(\"16612\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "2ecf1076", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.10.6" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}