Skip to content

Commit

Permalink
change lib python fix longname
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Mar 2, 2024
1 parent bc1d04f commit e13966e
Show file tree
Hide file tree
Showing 15 changed files with 295 additions and 7,509 deletions.
2 changes: 1 addition & 1 deletion APSToolkitPython/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pip install aps-toolkit
## Get Started

```python
from aps_toolkit_python import Auth
from aps_toolkit import Auth
auth = Auth()
token = auth.auth2leg()
```
Expand Down
62 changes: 47 additions & 15 deletions APSToolkitPython/Tutorials/Authentication.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"execution_count": 2,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:09:01.550281Z",
"start_time": "2024-03-02T14:08:56.989455Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: aps-toolkit in c:\\python311\\lib\\site-packages (0.0.3)\n",
"Requirement already satisfied: aps-toolkit in c:\\python311\\lib\\site-packages (0.0.5)\n",
"Collecting aps-toolkit\n",
" Downloading aps_toolkit-0.0.6-py3-none-any.whl.metadata (1.2 kB)\n",
"Requirement already satisfied: requests in c:\\python311\\lib\\site-packages (from aps-toolkit) (2.31.0)\n",
"Requirement already satisfied: pandas in c:\\python311\\lib\\site-packages (from aps-toolkit) (2.2.1)\n",
"Requirement already satisfied: numpy<2,>=1.23.2 in c:\\python311\\lib\\site-packages (from pandas->aps-toolkit) (1.26.0)\n",
Expand All @@ -21,6 +28,13 @@
"Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\chuongho\\appdata\\roaming\\python\\python311\\site-packages (from requests->aps-toolkit) (1.26.17)\n",
"Requirement already satisfied: certifi>=2017.4.17 in c:\\python311\\lib\\site-packages (from requests->aps-toolkit) (2023.7.22)\n",
"Requirement already satisfied: six>=1.5 in c:\\python311\\lib\\site-packages (from python-dateutil>=2.8.2->pandas->aps-toolkit) (1.16.0)\n",
"Downloading aps_toolkit-0.0.6-py3-none-any.whl (15 kB)\n",
"Installing collected packages: aps-toolkit\n",
" Attempting uninstall: aps-toolkit\n",
" Found existing installation: aps-toolkit 0.0.5\n",
" Uninstalling aps-toolkit-0.0.5:\n",
" Successfully uninstalled aps-toolkit-0.0.5\n",
"Successfully installed aps-toolkit-0.0.6\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
},
Expand All @@ -38,26 +52,41 @@
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"execution_count": 4,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:09:17.520761Z",
"start_time": "2024-03-02T14:09:17.512965Z"
}
},
"outputs": [],
"source": [
"from aps_toolkit_python import Auth"
"from aps_toolkit import Auth"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:09:22.321085Z",
"start_time": "2024-03-02T14:09:21.473592Z"
}
},
"outputs": [],
"source": [
"token = Auth().auth2leg()"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {},
"execution_count": 6,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:09:23.767210Z",
"start_time": "2024-03-02T14:09:23.764242Z"
}
},
"outputs": [],
"source": [
"access_token = token.access_token"
Expand Down Expand Up @@ -85,16 +114,19 @@
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"execution_count": 7,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:09:26.566629Z",
"start_time": "2024-03-02T14:09:26.561416Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"'Bearer'"
]
"text/plain": "'Bearer'"
},
"execution_count": 12,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Loading

0 comments on commit e13966e

Please sign in to comment.