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-AgEIcHlwaS5vcmcCJGI5MWRjMzVhLWVmZWItNGEzYS05MjdmLWYxODVhZTk4YTczNAACKlszLCJmYTQ4NDcxMi1mNTcyLTQ1ZWQtYWQ5OC1lOWE1OTExYjgxMjIiXQAABiDmSDOT8WB_QK8sPyuD6AdzAB5M3ebEij7nAKZPcW2--g 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.20.tar.gz
(10.0 kB
view hashes)
Built Distribution
Close
Hashes for datahub_algo_base-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 038e6118d6a9ef00b95f9d75417d49a019d251f11ce371720b47a56ff6c0b80b |
|
MD5 | 4a7441ea734ef4e46c0d6a11017f6bfa |
|
BLAKE2b-256 | 57c661f99ed932b0e315ad6d91083c2b3aa9293146ea0a669b7631f8fc0e19d8 |