データを探索および公開する「Datasette」のインストールについて解説しています。
「Datasette(https://datasette.io/)」は、データを探索および公開するオープンソースのツールです。このツールを用いることで、データの探索可能なWebサイト及び付随するAPIとして公開することができます。
■Python
今回のPythonのバージョンは、「3.8.5」を使用しています。(Windows10)(pythonランチャーでの確認)
■datasetteをインストールする
datasetteをインストールを行いますが、今回はpipを経由してインストールを行うので、まずWindowsのコマンドプロンプトを起動します。
pip install datasette
起動後、上記のコマンドを入力し、Enterキーを押します。
なお、今回は、pythonランチャーを使用しており、Python Version 3.8.5にインストールを行うために、pipを使う場合にはコマンドでの切り替えを行います。
py -3.8 -m pip install datasette
切り替えるために、上記のコマンドを入力し、Enterキーを押します。
Defaulting to user installation because normal site-packages is not writeable Collecting datasette Downloading datasette-0.60.2-py3-none-any.whl (223 kB) |████████████████████████████████| 223 kB 1.1 MB/s Requirement already satisfied: itsdangerous<3.0,>=1.1 in c:\users\user_\appdata\roaming\python\python38\site-packages (from datasette) (2.0.1) Collecting pluggy<1.1,>=1.0 Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB) Collecting httpx>=0.20 Downloading httpx-0.22.0-py3-none-any.whl (84 kB) |████████████████████████████████| 84 kB 890 kB/s Requirement already satisfied: aiofiles<0.9,>=0.4 in c:\users\user_\appdata\roaming\python\python38\site-packages (from datasette) (0.8.0) Collecting python-baseconv==1.2.2 Downloading python-baseconv-1.2.2.tar.gz (4.9 kB) Preparing metadata (setup.py) ... done Collecting click-default-group~=1.2.2 Downloading click-default-group-1.2.2.tar.gz (3.3 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: Jinja2<3.1.0,>=2.10.3 in c:\users\user_\appdata\roaming\python\python38\site-packages (from datasette) (3.0.1) Collecting mergedeep<1.4.0,>=1.1.1 Downloading mergedeep-1.3.4-py3-none-any.whl (6.4 kB) Collecting asgi-csrf>=0.9 Downloading asgi_csrf-0.9-py3-none-any.whl (10 kB) Collecting janus<1.1,>=0.6.2 Downloading janus-1.0.0-py3-none-any.whl (6.9 kB) Collecting hupper~=1.9 Downloading hupper-1.10.3-py2.py3-none-any.whl (26 kB) Requirement already satisfied: PyYAML<7.0,>=5.3 in c:\users\user_\appdata\roaming\python\python38\site-packages (from datasette) (5.4.1) Requirement already satisfied: uvicorn~=0.11 in c:\users\user_\appdata\roaming\python\python38\site-packages (from datasette) (0.15.0) Requirement already satisfied: asgiref<3.5.0,>=3.2.10 in c:\users\user_\appdata\roaming\python\python38\site-packages (from datasette) (3.4.1) Requirement already satisfied: click<8.1.0,>=7.1.1 in c:\users\user_\appdata\roaming\python\python38\site-packages (from datasette) (8.0.4) Collecting pint~=0.9 Downloading Pint-0.18-py2.py3-none-any.whl (209 kB) |████████████████████████████████| 209 kB 2.2 MB/s Collecting python-multipart Downloading python-multipart-0.0.5.tar.gz (32 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: colorama in c:\users\user_\appdata\roaming\python\python38\site-packages (from click<8.1.0,>=7.1.1->datasette) (0.4.4) Collecting httpcore<0.15.0,>=0.14.5 Downloading httpcore-0.14.7-py3-none-any.whl (68 kB) |████████████████████████████████| 68 kB 1.3 MB/s Collecting sniffio Using cached sniffio-1.2.0-py3-none-any.whl (10 kB) Requirement already satisfied: charset-normalizer in c:\users\user_\appdata\roaming\python\python38\site-packages (from httpx>=0.20->datasette) (2.0.12) Requirement already satisfied: certifi in c:\users\user_\appdata\roaming\python\python38\site-packages (from httpx>=0.20->datasette) (2021.5.30) Collecting rfc3986[idna2008]<2,>=1.3 Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Requirement already satisfied: typing-extensions>=3.7.4.3 in c:\users\user_\appdata\roaming\python\python38\site-packages (from janus<1.1,>=0.6.2->datasette) (3.7.4.3) Requirement already satisfied: MarkupSafe>=2.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from Jinja2<3.1.0,>=2.10.3->datasette) (2.0.1) Requirement already satisfied: packaging in c:\users\user_\appdata\roaming\python\python38\site-packages (from pint~=0.9->datasette) (20.9) Requirement already satisfied: h11>=0.8 in c:\users\user_\appdata\roaming\python\python38\site-packages (from uvicorn~=0.11->datasette) (0.12.0) Collecting anyio==3.* Downloading anyio-3.5.0-py3-none-any.whl (79 kB) |████████████████████████████████| 79 kB 1.6 MB/s Requirement already satisfied: idna>=2.8 in c:\users\user_\appdata\roaming\python\python38\site-packages (from anyio==3.*->httpcore<0.15.0,>=0.14.5->httpx>=0.20->datasette) (2.10) Requirement already satisfied: pyparsing>=2.0.2 in c:\users\user_\appdata\roaming\python\python38\site-packages (from packaging->pint~=0.9->datasette) (2.4.7) Requirement already satisfied: six>=1.4.0 in c:\users\user_\appdata\roaming\python\python38\site-packages (from python-multipart->asgi-csrf>=0.9->datasette) (1.15.0) Building wheels for collected packages: python-baseconv, click-default-group, python-multipart Building wheel for python-baseconv (setup.py) ... done Created wheel for python-baseconv: filename=python_baseconv-1.2.2-py3-none-any.whl size=5508 sha256=e0e9076191e4b060cb75546d0b59e4d9568d7daaada78cc950a6a07ecc8692d8 Stored in directory: c:\users\user_\appdata\local\pip\cache\wheelsad\e73036bce4db3c7cb862fa87acb47515e2d811b3f2b99bd5d8 Building wheel for click-default-group (setup.py) ... done Created wheel for click-default-group: filename=click_default_group-1.2.2-py3-none-any.whl size=3385 sha256=f194e814575a048cff3a2cfc6166c7b9f54e7593fbf133a2bd48609209f0a9e3 Stored in directory: c:\users\user_\appdata\local\pip\cache\wheelsef\ec\d087477ddc7c2807136ca08eb01b5f00e66da90eb4dbf323ab Building wheel for python-multipart (setup.py) ... done Created wheel for python-multipart: filename=python_multipart-0.0.5-py3-none-any.whl size=31678 sha256=3b7370d5972d5bea361d6fcafeec6e595f32c672aee7061660fab9220c289213 Stored in directory: c:\users\user_\appdata\local\pip\cache\wheelse\fcc\cf980e6413d3ee8e70cd8f39e2366b0f487e3e221aeb452eb0 Successfully built python-baseconv click-default-group python-multipart Installing collected packages: sniffio, rfc3986, anyio, python-multipart, httpcore, python-baseconv, pluggy, pint, mergedeep, janus, hupper, httpx, click-default-group, asgi-csrf, datasette Attempting uninstall: pluggy Found existing installation: pluggy 0.13.1 Uninstalling pluggy-0.13.1: Successfully uninstalled pluggy-0.13.1 pytest 6.2.4 requires pluggy<1.0.0a1,>=0.12, but you have pluggy 1.0.0 which is incompatible. Successfully installed anyio-3.5.0 asgi-csrf-0.9 click-default-group-1.2.2 datasette-0.60.2 httpcore-0.14.7 httpx-0.22.0 hupper-1.10.3 janus-1.0.0 mergedeep-1.3.4 pint-0.18 pluggy-1.0.0 python-baseconv-1.2.2 python-multipart-0.0.5 rfc3986-1.5.0 sniffio-1.2.0
Enterキーを押すと、インストールが開始され、上記のように「Successfully installed」と表示されます。これが表示されれば、datasetteが正常にインストールされたことになります。
なお、今回はdatasetteのバージョン0.60.2をインストールしました。
コメント