A library of processes for manipulating tabular data in CSV format
Project description
tablelinker-lib
TableLinker をコマンドライン / プログラム組み込みで利用するためのライブラリ。
インストール手順
Poetry を利用します。
$ poetry install --with group=dev
$ poetry shell
MacOS の場合、デフォルトの python バージョンが 3.11 なので pytorch がインストールできません。以下の手順が必要です。
% pyenv install 3.10
% poetry env use 3.10
% poetry shell
% poetry install --with group=dev
コマンドラインで利用する場合
tablelinker モジュールを実行すると、標準入力から受け取った CSV を コンバータで変換し、標準出力に送るパイプとして利用できます。
$ cat sample/datafiles/yanai_tourism.csv | \
python -m tablelinker sample/taskfiles/task.json
利用するコンバータと、コンバータに渡すパラメータは JSON ファイルに記述し、 パラメータで指定します。
組み込んで利用する場合
sample.py
を参照してください。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tablelinker_lib-1.0.0.tar.gz
(76.4 kB
view hashes)
Built Distribution
Close
Hashes for tablelinker_lib-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b67b2bfdeeaa63869d120815bdd264c3a7e3325df57738ce95efce3d1d51cb67 |
|
MD5 | 551bad241b064ae9277a7b6ed52d21a9 |
|
BLAKE2b-256 | 39b98bd44b6d6b2509666070868a69a6c4601be62f7aac32ceb118dc6430c4cb |