# tablelinker-light
![Python 3.7](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.7.yml/badge.svg)
![Python 3.8](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.8.yml/badge.svg)
![Python 3.9](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.9.yml/badge.svg)
![Python 3.10](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.10.yml/badge.svg)
![Python 3.11](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.11.yml/badge.svg)
![Python 3.12](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.12.yml/badge.svg)
TableLinker をコマンドライン / プログラム組み込みで利用するための
ライブラリ Tablelinker-lib の軽量版派生バージョンです。
オリジナルの Tablelinker-lib は国立情報学研究所より
https://github.com/NII-CPS-Center/tablelinker-lib
で公開されており、 MIT ライセンスで利用可能です。
## インストール手順
Poetry を利用します。
```
$ poetry install --with group=dev
$ poetry shell
```
## コマンドラインで利用する場合
tablelinker モジュールを実行すると、標準入力から受け取った CSV を
コンバータで変換し、標準出力に送るパイプとして利用できます。
```
$ cat sample/datafiles/yanai_tourism.csv | \
python -m tablelinker sample/taskfiles/task.json
```
利用するコンバータと、コンバータに渡すパラメータは JSON ファイルに記述し、
パラメータで指定します。
## 組み込んで利用する場合
`sample.py` を参照してください。
Raw data
{
"_id": null,
"home_page": "https://github.com/InfoProto/tablelinker-light",
"name": "tablelinker-light",
"maintainer": "Takeshi Sagara",
"docs_url": null,
"requires_python": "<4.0,>=3.7",
"maintainer_email": "sagara@info-proto.com",
"keywords": "CSV, tabular, cleansing, batch processing",
"author": "Takeshi Sagara",
"author_email": "sagara@info-proto.com",
"download_url": "https://files.pythonhosted.org/packages/26/1a/72fe2979d7e2858ae70af642ccb6d7bfa4838c0e6c679995598bc791b3d3/tablelinker_light-1.0.0.post2.tar.gz",
"platform": null,
"description": "# tablelinker-light\n\n![Python 3.7](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.7.yml/badge.svg)\n![Python 3.8](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.8.yml/badge.svg)\n![Python 3.9](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.9.yml/badge.svg)\n![Python 3.10](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.10.yml/badge.svg)\n![Python 3.11](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.11.yml/badge.svg)\n![Python 3.12](https://github.com/InfoProto/tablelinker-light/actions/workflows/python-3.12.yml/badge.svg)\n\n\nTableLinker \u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3 / \u30d7\u30ed\u30b0\u30e9\u30e0\u7d44\u307f\u8fbc\u307f\u3067\u5229\u7528\u3059\u308b\u305f\u3081\u306e\n\u30e9\u30a4\u30d6\u30e9\u30ea Tablelinker-lib \u306e\u8efd\u91cf\u7248\u6d3e\u751f\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002\n\n\u30aa\u30ea\u30b8\u30ca\u30eb\u306e Tablelinker-lib \u306f\u56fd\u7acb\u60c5\u5831\u5b66\u7814\u7a76\u6240\u3088\u308a\nhttps://github.com/NII-CPS-Center/tablelinker-lib\n\u3067\u516c\u958b\u3055\u308c\u3066\u304a\u308a\u3001 MIT \u30e9\u30a4\u30bb\u30f3\u30b9\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\n\n## \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\n\nPoetry \u3092\u5229\u7528\u3057\u307e\u3059\u3002\n\n```\n$ poetry install --with group=dev\n$ poetry shell\n```\n\n## \u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u5229\u7528\u3059\u308b\u5834\u5408\n\ntablelinker \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6a19\u6e96\u5165\u529b\u304b\u3089\u53d7\u3051\u53d6\u3063\u305f CSV \u3092\n\u30b3\u30f3\u30d0\u30fc\u30bf\u3067\u5909\u63db\u3057\u3001\u6a19\u6e96\u51fa\u529b\u306b\u9001\u308b\u30d1\u30a4\u30d7\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u307e\u3059\u3002\n\n```\n$ cat sample/datafiles/yanai_tourism.csv | \\\n python -m tablelinker sample/taskfiles/task.json\n```\n\n\u5229\u7528\u3059\u308b\u30b3\u30f3\u30d0\u30fc\u30bf\u3068\u3001\u30b3\u30f3\u30d0\u30fc\u30bf\u306b\u6e21\u3059\u30d1\u30e9\u30e1\u30fc\u30bf\u306f JSON \u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3057\u3001\n\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\n\n## \u7d44\u307f\u8fbc\u3093\u3067\u5229\u7528\u3059\u308b\u5834\u5408\n\n`sample.py` \u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n",
"bugtrack_url": null,
"license": null,
"summary": "TableLinker: CSV data processing library (light version)",
"version": "1.0.0.post2",
"project_urls": {
"Documentation": "https://tablelinker-light.readthedocs.io/",
"Homepage": "https://github.com/InfoProto/tablelinker-light",
"Repository": "https://github.com/InfoProto/tablelinker-light"
},
"split_keywords": [
"csv",
" tabular",
" cleansing",
" batch processing"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5b8c0d9e98b806ae7308e2c40c9bf4c6822f2c60dfe4ff8c760efa4cfeee4bac",
"md5": "7d6139ed1091452df62e757055c7fccb",
"sha256": "d02d3381720bce3b2dcc852fdae2b938d40161dfdc5abe35feea8c8cb7fd928c"
},
"downloads": -1,
"filename": "tablelinker_light-1.0.0.post2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7d6139ed1091452df62e757055c7fccb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.7",
"size": 102950,
"upload_time": "2024-04-03T05:21:46",
"upload_time_iso_8601": "2024-04-03T05:21:46.480792Z",
"url": "https://files.pythonhosted.org/packages/5b/8c/0d9e98b806ae7308e2c40c9bf4c6822f2c60dfe4ff8c760efa4cfeee4bac/tablelinker_light-1.0.0.post2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "261a72fe2979d7e2858ae70af642ccb6d7bfa4838c0e6c679995598bc791b3d3",
"md5": "d61903fcbc8e03c1d54ddce40e1fdd84",
"sha256": "d50dd4a789af6856df82395da279d7d3d50270554c62827702901c419419c6f2"
},
"downloads": -1,
"filename": "tablelinker_light-1.0.0.post2.tar.gz",
"has_sig": false,
"md5_digest": "d61903fcbc8e03c1d54ddce40e1fdd84",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.7",
"size": 74897,
"upload_time": "2024-04-03T05:21:51",
"upload_time_iso_8601": "2024-04-03T05:21:51.247594Z",
"url": "https://files.pythonhosted.org/packages/26/1a/72fe2979d7e2858ae70af642ccb6d7bfa4838c0e6c679995598bc791b3d3/tablelinker_light-1.0.0.post2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-03 05:21:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "InfoProto",
"github_project": "tablelinker-light",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "tablelinker-light"
}