多くのユーティリティを備えた dict サブクラス「python-benedict」のインストール

スポンサーリンク

多くのユーティリティを備えた dict サブクラスのPythonライブラリ「python-benedict」のインストールについて解説しています。

「python-benedict(https://github.com/fabiocaccamo/python-benedict)」は、keylist/keypathのサポート、組み込みのI/O操作(base64、csv、ini、json、pickle、plist、query-string、toml、xls、xml、yamel)に対応している。

■Python

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

■python-benedictをインストールする

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

pip install python-benedict

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

pip install "python-benedict[all]"

ちなみに、すべてをインストールしたい場合は、上記のコマンドを入力し、Enterキーを押します。

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

py -3.8 -m pip install python-benedict

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

Defaulting to user installation because normal site-packages is not writeable
Collecting python-benedict
Downloading python_benedict-0.30.0-py3-none-any.whl (46 kB)
---------------------------------------- 46.9/46.9 kB 581.2 kB/s eta 0:00:00
Requirement already satisfied: requests<3.0.0,>=2.26.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from python-benedict) (2.28.2)
Collecting mailchecker<6.0.0,>=4.1.0
Downloading mailchecker-5.0.8.tar.gz (322 kB)
---------------------------------------- 322.0/322.0 kB 1.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Collecting ftfy<7.0.0,>=6.0.0
Using cached ftfy-6.1.1-py3-none-any.whl (53 kB)
Collecting phonenumbers<9.0.0,>=8.12.0
Downloading phonenumbers-8.13.7-py2.py3-none-any.whl (2.6 MB)
---------------------------------------- 2.6/2.6 MB 2.4 MB/s eta 0:00:00
Collecting python-slugify<9.0.0,>=6.0.1
Downloading python_slugify-8.0.1-py2.py3-none-any.whl (9.7 kB)
Collecting python-dateutil<3.0.0,>=2.8.0
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting python-fsutil<1.0.0,>=0.9.3
Downloading python_fsutil-0.10.0-py3-none-any.whl (13 kB)
Collecting wcwidth>=0.2.5
Using cached wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting text-unidecode>=1.3
Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
Requirement already satisfied: idna<4,>=2.5 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests<3.0.0,>=2.26.0->python-benedict) (3.4)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests<3.0.0,>=2.26.0->python-benedict) (3.1.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests<3.0.0,>=2.26.0->python-benedict) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\user_\appdata\roaming\python\python38\site-packages (from requests<3.0.0,>=2.26.0->python-benedict) (1.26.15)
Building wheels for collected packages: mailchecker
Building wheel for mailchecker (setup.py) ... done
Created wheel for mailchecker: filename=mailchecker-5.0.8-py3-none-any.whl size=322227 sha256=efde4bbd5270b02874351a0f999a7aa0f5262c333677758b90cc271a2a98f22d
Stored in directory: c:\users\user_\appdata\local\pip\cache\wheelsae3b726e3f0cbccf09f53d68497fa8000da854c6645e0ab8c
Successfully built mailchecker
Installing collected packages: wcwidth, text-unidecode, python-fsutil, phonenumbers, mailchecker, six, python-slugify, ftfy, python-dateutil, python-benedict
Successfully installed ftfy-6.1.1 mailchecker-5.0.8 phonenumbers-8.13.7 python-benedict-0.30.0 python-dateutil-2.8.2 python-fsutil-0.10.0 python-slugify-8.0.1 six-1.16.0 text-unidecode-1.3 wcwidth-0.2.6

Enterキーを押すと、インストールが開始され、上記のように「Successfully installed」と表示されます。これが表示されれば、python-benedictが正常にインストールされたことになります。

なお、今回はpython-benedictのバージョン0.30.0をインストールしました。

コメント

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