cumo


Namecumo JSON
Version 0.33.5 PyPI version JSON
download
home_pagehttps://github.com/kurusugawa-computer/cumo
SummaryWebブラウザ上に点群を描画する python ライブラリ
upload_time2024-04-30 05:19:13
maintainerNone
docs_urlNone
authorKurusugawa Computer
requires_python<4.0,>=3.7
licenseBSD
keywords point-cloud pcd
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # cumo

## ビルド

yarn、protoc、poetryが必要です(`.devcontainer/Dockerfile`参照)。
以下のようにすると`lib/dist`にtar.gzとwhlファイルが生成されます。
クライアントのHTML等はライブラリに埋め込まれています。

```console
$ ./build.sh
```

## インストール

```console
$ pip install pointcloud-viewer
```

## ドキュメント

sphinxでドキュメントの生成が可能です。

```console
$ cd lib
$ poetry install
$ poetry run sphinx-apidoc --append-syspath -F -o ./docs .
```

## 使用例

`lib/cumo/__main__.py`は3面図を撮る例です。

```console
$ poetry run python -m cumo pcl_logo.pcd
open: http://127.0.0.1:8082
setup...
resize window and press custom control button "start"
saved: screenshot_x.png
saved: screenshot_y.png
saved: screenshot_z.png
```

REPLでの使用も可能です。

```console
$ poetry run python
Python 3.8.7 (default, Apr  9 2022, 21:34:33)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cumo import PointCloudViewer
>>> viewer = PointCloudViewer()
>>> viewer.start()
>>> # open localhost:8082 on your browser
>>> with open(filename, "rb") as f:
>>>     b = f.read()
>>>     viewer.send_pointcloud_pcd(b)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kurusugawa-computer/cumo",
    "name": "cumo",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.7",
    "maintainer_email": null,
    "keywords": "point-cloud, pcd",
    "author": "Kurusugawa Computer",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/58/9b/955e6a0622093486dc8fc07d095b8fbf24b92f0c7300db9174340c75ef2b/cumo-0.33.5.tar.gz",
    "platform": null,
    "description": "# cumo\n\n## \u30d3\u30eb\u30c9\n\nyarn\u3001protoc\u3001poetry\u304c\u5fc5\u8981\u3067\u3059\uff08`.devcontainer/Dockerfile`\u53c2\u7167\uff09\u3002\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068`lib/dist`\u306btar.gz\u3068whl\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eHTML\u7b49\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u57cb\u3081\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002\n\n```console\n$ ./build.sh\n```\n\n## \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n\n```console\n$ pip install pointcloud-viewer\n```\n\n## \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\n\nsphinx\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u751f\u6210\u304c\u53ef\u80fd\u3067\u3059\u3002\n\n```console\n$ cd lib\n$ poetry install\n$ poetry run sphinx-apidoc --append-syspath -F -o ./docs .\n```\n\n## \u4f7f\u7528\u4f8b\n\n`lib/cumo/__main__.py`\u306f3\u9762\u56f3\u3092\u64ae\u308b\u4f8b\u3067\u3059\u3002\n\n```console\n$ poetry run python -m cumo pcl_logo.pcd\nopen: http://127.0.0.1:8082\nsetup...\nresize window and press custom control button \"start\"\nsaved: screenshot_x.png\nsaved: screenshot_y.png\nsaved: screenshot_z.png\n```\n\nREPL\u3067\u306e\u4f7f\u7528\u3082\u53ef\u80fd\u3067\u3059\u3002\n\n```console\n$ poetry run python\nPython 3.8.7 (default, Apr  9 2022, 21:34:33)\n[GCC 9.4.0] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n>>> from cumo import PointCloudViewer\n>>> viewer = PointCloudViewer()\n>>> viewer.start()\n>>> # open localhost:8082 on your browser\n>>> with open(filename, \"rb\") as f:\n>>>     b = f.read()\n>>>     viewer.send_pointcloud_pcd(b)\n```\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Web\u30d6\u30e9\u30a6\u30b6\u4e0a\u306b\u70b9\u7fa4\u3092\u63cf\u753b\u3059\u308b python \u30e9\u30a4\u30d6\u30e9\u30ea",
    "version": "0.33.5",
    "project_urls": {
        "Homepage": "https://github.com/kurusugawa-computer/cumo",
        "Repository": "https://github.com/kurusugawa-computer/cumo"
    },
    "split_keywords": [
        "point-cloud",
        " pcd"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0998cc8d68df83fd27fbb27c56246894dae56f7c7f234e57adef7bef4c6ae201",
                "md5": "5df91c53d48eec7d56fd4802238271c7",
                "sha256": "9a8ad62716512a271d59b2b64133df30a79ab211b5a3566b059ec8681a62e869"
            },
            "downloads": -1,
            "filename": "cumo-0.33.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5df91c53d48eec7d56fd4802238271c7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.7",
            "size": 1183613,
            "upload_time": "2024-04-30T05:19:07",
            "upload_time_iso_8601": "2024-04-30T05:19:07.503830Z",
            "url": "https://files.pythonhosted.org/packages/09/98/cc8d68df83fd27fbb27c56246894dae56f7c7f234e57adef7bef4c6ae201/cumo-0.33.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "589b955e6a0622093486dc8fc07d095b8fbf24b92f0c7300db9174340c75ef2b",
                "md5": "88a6f03ef7488337a8eb69f32675740f",
                "sha256": "5ba05c7aa6f0bc9cb30baebf423b7c874449ee670b1eb362e68d69d9f2ab1191"
            },
            "downloads": -1,
            "filename": "cumo-0.33.5.tar.gz",
            "has_sig": false,
            "md5_digest": "88a6f03ef7488337a8eb69f32675740f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.7",
            "size": 1167663,
            "upload_time": "2024-04-30T05:19:13",
            "upload_time_iso_8601": "2024-04-30T05:19:13.268831Z",
            "url": "https://files.pythonhosted.org/packages/58/9b/955e6a0622093486dc8fc07d095b8fbf24b92f0c7300db9174340c75ef2b/cumo-0.33.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-30 05:19:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kurusugawa-computer",
    "github_project": "cumo",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cumo"
}
        
Elapsed time: 0.25575s