tablelinker-lib


Nametablelinker-lib JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/KMCS-NII/tablelinker-lib
SummaryA library of processes for manipulating tabular data in CSV format
upload_time2023-04-01 00:42:20
maintainerTakeshi Sagara
docs_urlNone
authorAkiko Aizawa
requires_python>=3.8.1,<3.11.0
license
keywords csv tabular manipulation cleansing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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` を参照してください。


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/KMCS-NII/tablelinker-lib",
    "name": "tablelinker-lib",
    "maintainer": "Takeshi Sagara",
    "docs_url": null,
    "requires_python": ">=3.8.1,<3.11.0",
    "maintainer_email": "sagara@info-proto.com",
    "keywords": "CSV,tabular,manipulation,cleansing",
    "author": "Akiko Aizawa",
    "author_email": "akiko@nii.ac.jp",
    "download_url": "https://files.pythonhosted.org/packages/9b/60/dcd18448e6a8cbac50a440eeb43aa351e56778b1055dafb9decea2a78873/tablelinker_lib-1.0.0.tar.gz",
    "platform": null,
    "description": "# tablelinker-lib\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\u30e9\u30a4\u30d6\u30e9\u30ea\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\nMacOS \u306e\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e python \u30d0\u30fc\u30b8\u30e7\u30f3\u304c 3.11 \u306a\u306e\u3067\npytorch \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u306e\u624b\u9806\u304c\u5fc5\u8981\u3067\u3059\u3002\n\n```\n% pyenv install 3.10\n% poetry env use 3.10\n% poetry shell\n% poetry install --with group=dev\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": "",
    "summary": "A library of processes for manipulating tabular data in CSV format",
    "version": "1.0.0",
    "split_keywords": [
        "csv",
        "tabular",
        "manipulation",
        "cleansing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "39b98bd44b6d6b2509666070868a69a6c4601be62f7aac32ceb118dc6430c4cb",
                "md5": "551bad241b064ae9277a7b6ed52d21a9",
                "sha256": "b67b2bfdeeaa63869d120815bdd264c3a7e3325df57738ce95efce3d1d51cb67"
            },
            "downloads": -1,
            "filename": "tablelinker_lib-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "551bad241b064ae9277a7b6ed52d21a9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.1,<3.11.0",
            "size": 104609,
            "upload_time": "2023-04-01T00:42:17",
            "upload_time_iso_8601": "2023-04-01T00:42:17.415260Z",
            "url": "https://files.pythonhosted.org/packages/39/b9/8bd44b6d6b2509666070868a69a6c4601be62f7aac32ceb118dc6430c4cb/tablelinker_lib-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b60dcd18448e6a8cbac50a440eeb43aa351e56778b1055dafb9decea2a78873",
                "md5": "9b0d7da4638d835f2baa5dc188c71b6b",
                "sha256": "8fb5e3be318e999ad0a46634c923fc07cd35f6474c431b3fa11f6068f67ac89c"
            },
            "downloads": -1,
            "filename": "tablelinker_lib-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9b0d7da4638d835f2baa5dc188c71b6b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.1,<3.11.0",
            "size": 76368,
            "upload_time": "2023-04-01T00:42:20",
            "upload_time_iso_8601": "2023-04-01T00:42:20.287468Z",
            "url": "https://files.pythonhosted.org/packages/9b/60/dcd18448e6a8cbac50a440eeb43aa351e56778b1055dafb9decea2a78873/tablelinker_lib-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-01 00:42:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "KMCS-NII",
    "github_project": "tablelinker-lib",
    "lcname": "tablelinker-lib"
}
        
Elapsed time: 0.07045s