A template for algorithm node
Project description
Algorithm Node Template For DataHub
PIP install
pip install datahub-algo-base
Source Install
- go get the source file Test-Pypi Pypi
- unzip datahub-algo-base-X.X.X.tar.gz
- cd source dir datahub-algo-base-X.X.X
- execute
python ./setup.py build python ./setup.py install
Build
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
- create src directory
before you create your algo, you need to install the latest base package
pip install datahub-algo-base
- add main.py to test and run
export all dependencies
pip freeze > requirement.txt
after you debug your code, you can compress code by following shell:
tar --exclude='venv' --exclude='dataHubPy*' --exclude='*idea' -cvzf ../xxxx.tar.gz .
and then upload package onto data hub page;
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datahub-algo-base-0.0.21.tar.gz
(10.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datahub-algo-base-0.0.21.tar.gz.
File metadata
- Download URL: datahub-algo-base-0.0.21.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc6c7648a277f7207f8c7fe9ae99a3368814cd136feb564a9c4c90fe8a954fdd
|
|
| MD5 |
b1b85b8d8897688a6853d8fe88180f1b
|
|
| BLAKE2b-256 |
8ba7736d288f441a7a5c52864e7ffdb725d2e67a0cafd451cf7c6b547d3ade30
|
File details
Details for the file datahub_algo_base-0.0.21-py3-none-any.whl.
File metadata
- Download URL: datahub_algo_base-0.0.21-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
539786d96db7f354ac984e8df090e2bf37627694373ce95d7244d1c9e7bb45fe
|
|
| MD5 |
bf5a22245dfa7b9c8217f0cb559243f6
|
|
| BLAKE2b-256 |
26e04842102b405f99b93874a94026a5155dcd763f0fefcc75e831296ce5fe1d
|