Googleカレンダーでのイベントとカレンダーの管理を簡素化するライブラリ「gcsa」のインストール

スポンサーリンク

Googleカレンダーでのイベントとカレンダーの管理を簡素化するライブラリ「gcsa」のインストールについて解説しています。

「gcsa(https://github.com/kuzmoyev/google-calendar-simple-api)」は、Googleカレンダーでのイベントとカレンダーの管理を簡素化するもので、公式API用のPythonic オブジェクト指向アダプターでもある。

■Python

今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)

■gcsaをインストールする

gcsaをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。

pip install gcsa

起動後、上記のコマンドを入力し、Enterキーを押します。

なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、バージョンの切り替えを行います。

py -3.8 -m pip install gcsa

切り替えるために、上記のコマンドを入力し、Enterキーを押します。

Defaulting to user installation because normal site-packages is not writeable
Collecting gcsa
Downloading gcsa-2.0.1-py2.py3-none-any.whl (39 kB)
Collecting google-api-python-client>=1.8
Downloading google_api_python_client-2.76.0-py2.py3-none-any.whl (11.0 MB)
---------------------------------------- 11.0/11.0 MB 4.5 MB/s eta 0:00:00
Collecting google-auth-httplib2>=0.0.4
Using cached google_auth_httplib2-0.1.0-py2.py3-none-any.whl (9.3 kB)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\user_\appdata\roaming\python\python38\site-packages (from gcsa) (2.8.2)
Collecting tzlocal<5,>=4
Downloading tzlocal-4.2-py3-none-any.whl (19 kB)
Collecting beautiful-date>=2.0.0
Downloading beautiful_date-2.2.0-py2.py3-none-any.whl (7.7 kB)
Collecting google-auth-oauthlib<1.0,>=0.5
Downloading google_auth_oauthlib-0.8.0-py2.py3-none-any.whl (19 kB)
Requirement already satisfied: six>=1.11.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from beautiful-date>=2.0.0->gcsa) (1.16.0)
Collecting google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5
Downloading google_api_core-2.11.0-py3-none-any.whl (120 kB)
---------------------------------------- 120.3/120.3 kB 6.9 MB/s eta 0:00:00
Collecting uritemplate<5,>=3.0.1
Using cached uritemplate-4.1.1-py2.py3-none-any.whl (10 kB)
Collecting google-auth<3.0.0dev,>=1.19.0
Using cached google_auth-2.16.0-py2.py3-none-any.whl (177 kB)
Collecting httplib2<1dev,>=0.15.0
Downloading httplib2-0.21.0-py3-none-any.whl (96 kB)
---------------------------------------- 96.8/96.8 kB ? eta 0:00:00
Collecting requests-oauthlib>=0.7.0
Using cached requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
Collecting pytz-deprecation-shim
Using cached pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
Collecting tzdata
Downloading tzdata-2022.7-py2.py3-none-any.whl (340 kB)
---------------------------------------- 340.1/340.1 kB 20.6 MB/s eta 0:00:00
Collecting backports.zoneinfo
Using cached backports.zoneinfo-0.2.1-cp38-cp38-win_amd64.whl (38 kB)
Requirement already satisfied: requests<3.0.0dev,>=2.18.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client>=1.8->gcsa) (2.28.2)
Collecting googleapis-common-protos<2.0dev,>=1.56.2
Downloading googleapis_common_protos-1.58.0-py2.py3-none-any.whl (223 kB)
---------------------------------------- 223.0/223.0 kB 14.2 MB/s eta 0:00:00
Collecting protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
Downloading protobuf-4.21.12-cp38-cp38-win_amd64.whl (527 kB)
---------------------------------------- 527.0/527.0 kB 6.6 MB/s eta 0:00:00
Collecting rsa<5,>=3.1.4
Using cached rsa-4.9-py3-none-any.whl (34 kB)
Collecting cachetools<6.0,>=2.0.0
Downloading cachetools-5.3.0-py3-none-any.whl (9.3 kB)
Collecting pyasn1-modules>=0.2.1
Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
Requirement already satisfied: pyparsing!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3,<4,>=2.4.2 in c:\users\user_\appdata\roaming\python\python38\site-packages (from httplib2<1dev,>=0.15.0->google-api-python-client>=1.8->gcsa) (3.0.9)
Collecting oauthlib>=3.0.0
Using cached oauthlib-3.2.2-py3-none-any.whl (151 kB)
Collecting pyasn1<0.5.0,>=0.4.6
Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client>=1.8->gcsa) (1.26.14)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client>=1.8->gcsa) (2022.12.7)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client>=1.8->gcsa) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests<3.0.0dev,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5->google-api-python-client>=1.8->gcsa) (3.4)
Installing collected packages: pyasn1, uritemplate, tzdata, rsa, pyasn1-modules, protobuf, oauthlib, httplib2, cachetools, backports.zoneinfo, requests-oauthlib, pytz-deprecation-shim, googleapis-common-protos, google-auth, beautiful-date, tzlocal, google-auth-oauthlib, google-auth-httplib2, google-api-core, google-api-python-client, gcsa
Successfully installed backports.zoneinfo-0.2.1 beautiful-date-2.2.0 cachetools-5.3.0 gcsa-2.0.1 google-api-core-2.11.0 google-api-python-client-2.76.0 google-auth-2.16.0 google-auth-httplib2-0.1.0 google-auth-oauthlib-0.8.0 googleapis-common-protos-1.58.0 httplib2-0.21.0 oauthlib-3.2.2 protobuf-4.21.12 pyasn1-0.4.8 pyasn1-modules-0.2.8 pytz-deprecation-shim-0.1.0.post0 requests-oauthlib-1.3.1 rsa-4.9 tzdata-2022.7 tzlocal-4.2 uritemplate-4.1.1

Enterキーを押すと、インストールが開始され、「Successfully installed」と表示されます。これが表示されれば、gcsaが正常にインストールされたことになります。

なお、今回はgcsaのバージョン2.0.1をインストールしました。

コメント

タイトルとURLをコピーしました