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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tablelinker_lib-1.0.0.tar.gz.
File metadata
- Download URL: tablelinker_lib-1.0.0.tar.gz
- Upload date:
- Size: 76.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fb5e3be318e999ad0a46634c923fc07cd35f6474c431b3fa11f6068f67ac89c
|
|
| MD5 |
9b0d7da4638d835f2baa5dc188c71b6b
|
|
| BLAKE2b-256 |
9b60dcd18448e6a8cbac50a440eeb43aa351e56778b1055dafb9decea2a78873
|
File details
Details for the file tablelinker_lib-1.0.0-py3-none-any.whl.
File metadata
- Download URL: tablelinker_lib-1.0.0-py3-none-any.whl
- Upload date:
- Size: 104.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b67b2bfdeeaa63869d120815bdd264c3a7e3325df57738ce95efce3d1d51cb67
|
|
| MD5 |
551bad241b064ae9277a7b6ed52d21a9
|
|
| BLAKE2b-256 |
39b98bd44b6d6b2509666070868a69a6c4601be62f7aac32ceb118dc6430c4cb
|