# 開発環境構築
## フロントエンドを立ち上げ
NodeJS 16が必要
```bash
cd streamlit_image_annotation_customize/streamlit_image_annotation/Detection
yarn
yarn start
```
`streamlit_image_annotation_customize/__init__.py` で `IS_RELEASE = False` に設定する
## annotation_tool コーロがローカル「streamlit_image_annotation_customize」ライブラリをインストールする
既存のライブラリを削除
```
pip uninstall streamlit_image_annotation_customize
```
streamlit_image_annotation_customizeのコードフォルダー(setup.pyファイルがあるフォルダー)で下記のコマンドで実行
```
pip install -e .
```
これでannotation_toolで利用できるようになり、フロントエンドの修正をしたら、すぐに反映される
# pypiに公開
## ~/.pypirc を下記の内容で作成する (1回のみ)
```
[pypi]
username = __token__
password = ***
```
## frontendビルド
```bash
cd streamlit_image_annotation_customize/Detection/frontend
yarn build
```
and set `IS_RELEASE = True` in `streamlit_image_annotation_customize/__init__.py`.
and `setup.py`で公開バージョン番号を設定 `version="xx.xx.xx" `
## make wheel
```bash
python setup.py sdist
python setup.py sdist bdist_wheel
```
## upload
```bash
twine upload dist/*
```
## 利用
```bash
pip install streamlit_image_annotation_customize
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hirune924/Streamlit-Image-Annotation",
"name": "streamlit-image-annotation-customize",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "Python, Streamlit, React, JavaScript",
"author": "hirune924",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/d5/78/88768f00c8f33afc7bb3802b19f3a782bf62b4e9bb11e6a1839341993f42/streamlit_image_annotation_customize-0.4.40.tar.gz",
"platform": null,
"description": "\n# \u958b\u767a\u74b0\u5883\u69cb\u7bc9\n\n## \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092\u7acb\u3061\u4e0a\u3052\nNodeJS 16\u304c\u5fc5\u8981\n```bash\ncd streamlit_image_annotation_customize/streamlit_image_annotation/Detection\nyarn\nyarn start\n```\n`streamlit_image_annotation_customize/__init__.py` \u3067 `IS_RELEASE = False` \u306b\u8a2d\u5b9a\u3059\u308b\n\n## annotation_tool \u30b3\u30fc\u30ed\u304c\u30ed\u30fc\u30ab\u30eb\u300cstreamlit_image_annotation_customize\u300d\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\n\u65e2\u5b58\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u524a\u9664\n\n```\npip uninstall streamlit_image_annotation_customize\n```\n\nstreamlit_image_annotation_customize\u306e\u30b3\u30fc\u30c9\u30d5\u30a9\u30eb\u30c0\u30fc(setup.py\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u30fc)\u3067\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\n\n```\npip install -e .\n```\n\n\u3053\u308c\u3067annotation_tool\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u4fee\u6b63\u3092\u3057\u305f\u3089\u3001\u3059\u3050\u306b\u53cd\u6620\u3055\u308c\u308b\n\n\n# pypi\u306b\u516c\u958b\n\n## ~/.pypirc \u3092\u4e0b\u8a18\u306e\u5185\u5bb9\u3067\u4f5c\u6210\u3059\u308b (\uff11\u56de\u306e\u307f)\n\n```\n[pypi]\n username = __token__\n password = ***\n```\n\n## frontend\u30d3\u30eb\u30c9\n\n```bash\ncd streamlit_image_annotation_customize/Detection/frontend\nyarn build\n```\nand set `IS_RELEASE = True` in `streamlit_image_annotation_customize/__init__.py`.\n\nand `setup.py`\u3067\u516c\u958b\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u8a2d\u5b9a `version=\"xx.xx.xx\" `\n\n## make wheel\n\n```bash\npython setup.py sdist\npython setup.py sdist bdist_wheel\n```\n## upload\n\n```bash\ntwine upload dist/*\n```\n## \u5229\u7528\n\n```bash\npip install streamlit_image_annotation_customize\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "streamlit components for image annotation",
"version": "0.4.40",
"project_urls": {
"Homepage": "https://github.com/hirune924/Streamlit-Image-Annotation"
},
"split_keywords": [
"python",
" streamlit",
" react",
" javascript"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e50fcb3ff38e6c67c0663e7f819b6e15a831562be4ffe9200673c798a73bbf01",
"md5": "2cf7b8fbf103be3b854528c10531422e",
"sha256": "4742e101d89b049498e8f54dbddbc3320f89ec2cd7b16dbf85492ae99ed2dc62"
},
"downloads": -1,
"filename": "streamlit_image_annotation_customize-0.4.40-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2cf7b8fbf103be3b854528c10531422e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 1198215,
"upload_time": "2024-10-11T11:24:17",
"upload_time_iso_8601": "2024-10-11T11:24:17.124476Z",
"url": "https://files.pythonhosted.org/packages/e5/0f/cb3ff38e6c67c0663e7f819b6e15a831562be4ffe9200673c798a73bbf01/streamlit_image_annotation_customize-0.4.40-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d57888768f00c8f33afc7bb3802b19f3a782bf62b4e9bb11e6a1839341993f42",
"md5": "f97c7176e0d51c7866de0a7b1ebf6d19",
"sha256": "fc5725ef06dafd4b4b223f9e58b3ef9fd959a977226c5cfd9ae2729ae80f0272"
},
"downloads": -1,
"filename": "streamlit_image_annotation_customize-0.4.40.tar.gz",
"has_sig": false,
"md5_digest": "f97c7176e0d51c7866de0a7b1ebf6d19",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 1189282,
"upload_time": "2024-10-11T11:24:18",
"upload_time_iso_8601": "2024-10-11T11:24:18.599035Z",
"url": "https://files.pythonhosted.org/packages/d5/78/88768f00c8f33afc7bb3802b19f3a782bf62b4e9bb11e6a1839341993f42/streamlit_image_annotation_customize-0.4.40.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-11 11:24:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hirune924",
"github_project": "Streamlit-Image-Annotation",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "streamlit-image-annotation-customize"
}