### Algorithm Node Template For DataHub
## PIP install
```shell
pip install datahub-algo-base
```
## Source Install
1. go get the source file [Test-Pypi](https://test.pypi.org/project/datahub-algo-base/) [Pypi](https://pypi.org/project/datahub-algo-base/)
2. unzip datahub-algo-base-X.X.X.tar.gz
3. cd source dir **datahub-algo-base-X.X.X**
4. execute
```shell
python ./setup.py build
python ./setup.py install
```
## Build
```shell
python .\setup.py sdist bdist_wheel
## upload test.pypi.org
python -m twine upload -u __token__ -p pypi-AgENdGVzdC5weXBpLm9yZwIkZTlkMDNiNGMtZTAzMi00N2M4LTg0MTYtYmJiODNiZmU0NmE0AAIqWzMsImRkODRhMjdiLWQ2MDgtNDMyNi1hZTUyLWI4ZGM1OTgyNWM5NSJdAAAGIDqe93qMQUwOaIcx9VB60pbA9iEx-Wvuu47LTakSxAs0 --repository-url https://test.pypi.org/legacy/ dist/*
## upload pypi.org
python -m twine upload -u __token__ -p pypi-AgEIcHlwaS5vcmcCJDU5YTQ3MzdmLWViNjctNDIzNi04OWI3LTU0YjY3MmZlYzdkMgACGVsxLFsiZGF0YWh1Yi1hbGdvLWJhc2UiXV0AAixbMixbIjI0ODQ0NGU5LTU4YzAtNGE2ZC04ODdiLWNmMDg0ZTliNDM3YSJdXQAABiBg6zfERm9-aJ1ZdAUo_irvSGzADS0KG0e9jaLShaJAEA dist/*
```
## Algo Developer
1. create [src]() directory
before you create your algo, you need to install the latest base package
```shell
pip install datahub-algo-base
```
2. add [main.py]() to test and run
export all dependencies
```shell
pip freeze > requirement.txt
```
after you debug your code, you can compress code by following shell:
```shell
tar --exclude='venv' --exclude='dataHubPy*' --exclude='*idea' -cvzf ../xxxx.tar.gz .
```
and then upload package onto data hub page;
Raw data
{
"_id": null,
"home_page": "https://gitea-ops.lab.zjvis.net/flint/data-hub",
"name": "datahub-algo-base",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "Aaron",
"author_email": "byang628@zhejianglab.com",
"download_url": "https://files.pythonhosted.org/packages/8b/a7/736d288f441a7a5c52864e7ffdb725d2e67a0cafd451cf7c6b547d3ade30/datahub-algo-base-0.0.21.tar.gz",
"platform": null,
"description": "### Algorithm Node Template For DataHub\r\n\r\n## PIP install\r\n```shell\r\npip install datahub-algo-base\r\n\r\n```\r\n\r\n## Source Install\r\n1. go get the source file [Test-Pypi](https://test.pypi.org/project/datahub-algo-base/) [Pypi](https://pypi.org/project/datahub-algo-base/)\r\n2. unzip datahub-algo-base-X.X.X.tar.gz\r\n3. cd source dir **datahub-algo-base-X.X.X**\r\n4. execute\r\n ```shell\r\n python ./setup.py build\r\n python ./setup.py install\r\n ``` \r\n\r\n## Build\r\n```shell\r\npython .\\setup.py sdist bdist_wheel\r\n\r\n## upload test.pypi.org\r\npython -m twine upload -u __token__ -p pypi-AgENdGVzdC5weXBpLm9yZwIkZTlkMDNiNGMtZTAzMi00N2M4LTg0MTYtYmJiODNiZmU0NmE0AAIqWzMsImRkODRhMjdiLWQ2MDgtNDMyNi1hZTUyLWI4ZGM1OTgyNWM5NSJdAAAGIDqe93qMQUwOaIcx9VB60pbA9iEx-Wvuu47LTakSxAs0 --repository-url https://test.pypi.org/legacy/ dist/*\r\n\r\n## upload pypi.org\r\npython -m twine upload -u __token__ -p pypi-AgEIcHlwaS5vcmcCJDU5YTQ3MzdmLWViNjctNDIzNi04OWI3LTU0YjY3MmZlYzdkMgACGVsxLFsiZGF0YWh1Yi1hbGdvLWJhc2UiXV0AAixbMixbIjI0ODQ0NGU5LTU4YzAtNGE2ZC04ODdiLWNmMDg0ZTliNDM3YSJdXQAABiBg6zfERm9-aJ1ZdAUo_irvSGzADS0KG0e9jaLShaJAEA dist/*\r\n```\r\n\r\n## Algo Developer\r\n\r\n1. create [src]() directory\r\n\r\nbefore you create your algo, you need to install the latest base package\r\n\r\n```shell\r\npip install datahub-algo-base\r\n```\r\n\r\n2. add [main.py]() to test and run\r\n\r\nexport all dependencies\r\n```shell\r\npip freeze > requirement.txt\r\n```\r\n\r\nafter you debug your code, you can compress code by following shell:\r\n```shell\r\ntar --exclude='venv' --exclude='dataHubPy*' --exclude='*idea' -cvzf ../xxxx.tar.gz .\r\n```\r\n\r\nand then upload package onto data hub page;\r\n",
"bugtrack_url": null,
"license": "",
"summary": "A template for algorithm node",
"version": "0.0.21",
"project_urls": {
"Homepage": "https://gitea-ops.lab.zjvis.net/flint/data-hub"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "26e04842102b405f99b93874a94026a5155dcd763f0fefcc75e831296ce5fe1d",
"md5": "bf5a22245dfa7b9c8217f0cb559243f6",
"sha256": "539786d96db7f354ac984e8df090e2bf37627694373ce95d7244d1c9e7bb45fe"
},
"downloads": -1,
"filename": "datahub_algo_base-0.0.21-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bf5a22245dfa7b9c8217f0cb559243f6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 14344,
"upload_time": "2023-12-14T07:26:54",
"upload_time_iso_8601": "2023-12-14T07:26:54.088125Z",
"url": "https://files.pythonhosted.org/packages/26/e0/4842102b405f99b93874a94026a5155dcd763f0fefcc75e831296ce5fe1d/datahub_algo_base-0.0.21-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8ba7736d288f441a7a5c52864e7ffdb725d2e67a0cafd451cf7c6b547d3ade30",
"md5": "b1b85b8d8897688a6853d8fe88180f1b",
"sha256": "fc6c7648a277f7207f8c7fe9ae99a3368814cd136feb564a9c4c90fe8a954fdd"
},
"downloads": -1,
"filename": "datahub-algo-base-0.0.21.tar.gz",
"has_sig": false,
"md5_digest": "b1b85b8d8897688a6853d8fe88180f1b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 10126,
"upload_time": "2023-12-14T07:26:55",
"upload_time_iso_8601": "2023-12-14T07:26:55.658132Z",
"url": "https://files.pythonhosted.org/packages/8b/a7/736d288f441a7a5c52864e7ffdb725d2e67a0cafd451cf7c6b547d3ade30/datahub-algo-base-0.0.21.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-14 07:26:55",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "datahub-algo-base"
}