{ "info": { "author": "Fabio Beranizo Fontes Lopes", "author_email": "fabiol@cpqd.com.br", "bugtrack_url": null, "classifiers": [], "description": "# dojot-flow-node-python\n\nA Python library that allows you to integrate your own node on Dojot's [FlowBroker](https://github.com/dojot/flowbroker).\n\n## How to build your own node\n\n1) You need to create a class that extends the `DataHandlerBase` class, this\nclass is the responsable by implements your node behavior. The following methods\n__must be__ implemented:\n - get_node_representation_path\n - get_metadata\n - get_locale_data\n - handle_message\n\n2) Is necessary to create a `.html` file that describes your node. You can find how to create it using the [NodeRed documentation](https://nodered.org/docs/creating-nodes/). Dojot's FlowBroker uses the [NodeRed](https://nodered.org/) frontend.\n\n\n3) You need to encapsulate your code into a docker container.\n\n4) Publish your container in some public repository like [DockerHub](https://hub.docker.com/) or some private based on [DockerRegistry](https://docs.docker.com/registry).\n\n5) Call the FlowBroker endpoint to add a new node. Please check the [FlowBroker documentation](https://dojot.github.io/flowbroker/apiary_latest.html) to check\nhow this endpoint works.\n\n## Sample\nA sample node is attached to this package to illustrate the steps described in\nthe previous section. It's a simple node that converts a Celcius temperature\nmeasure into Kelvin.\n\n### How to build\n\nBuild the docker image:\n```sh\ncd sample_node\ndocker build -t /kelvin .\n```\n\nPublish it on your DockerHub:\n```sh\ndocker push /kelvin\n```\n\nAcquire a Dojot's token:\n```sh\ncurl -X POST http://127.0.0.1:8000/auth \\\n-H 'Content-Type:application/json' \\\n-d '{\"username\": \"admin\", \"passwd\" : \"admin\"}'\n```\n\nThis command will return a JWT token, you need to store it on an environment\nvariable:\n```sh\nexport JWT=\n```\n\nAdd the Kelvin node to Dojot.\n```sh\ncurl -H \"Authorization: Bearer ${JWT}\" http://localhost:8000/flows/v1/node -H 'content-type: application/json' -d '{\"image\": \"/kelvin:latest\", \"id\":\"kelvin\"}'\n```\n\nNow the Kelvin node will be available on `converters` category into the FlowBroker Dojot's interface.\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://dojot.com.br", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dojot-flow-node", "package_url": "https://pypi.org/project/dojot-flow-node/", "platform": "", "project_url": "https://pypi.org/project/dojot-flow-node/", "project_urls": { "Homepage": "http://dojot.com.br" }, "release_url": "https://pypi.org/project/dojot-flow-node/0.0.10/", "requires_dist": [ "pyzmq" ], "requires_python": "", "summary": "Dojot flow node.", "version": "0.0.10" }, "last_serial": 5213183, "releases": { "0.0.10": [ { "comment_text": "", "digests": { "md5": "9a999a9d6698a0445d3f993df18b13a9", "sha256": "db0877cecc198d59400f5886edda6e9d38d32e2563a1e7d4da2f904a024217c0" }, "downloads": -1, "filename": "dojot_flow_node-0.0.10-py2-none-any.whl", "has_sig": false, "md5_digest": "9a999a9d6698a0445d3f993df18b13a9", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5987, "upload_time": "2019-05-01T16:04:31", "url": "https://files.pythonhosted.org/packages/64/69/ffcc3f9192166f7541d462ad54a5fbd9a46235cbd10592cf5df5c1d262f4/dojot_flow_node-0.0.10-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "40d5de43dd057c7bd6eedc925b303e71", "sha256": "f07bb82b5d606909d3ae7e48bae1224c2f3585490bb8ba5ed503fcd897af03d2" }, "downloads": -1, "filename": "dojot_flow_node-0.0.10-py3-none-any.whl", "has_sig": false, "md5_digest": "40d5de43dd057c7bd6eedc925b303e71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5988, "upload_time": "2019-05-01T16:04:32", "url": "https://files.pythonhosted.org/packages/9a/e9/089556dbcfdaf08a4844181d3a4c293a482950e66826ee73ad9639dac6b6/dojot_flow_node-0.0.10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b3a0a3baf0e945228d637ce2d6852bba", "sha256": "ff00fc2b111ed5d66e90e9e85408dfc77b075551dfd6c6291c3e2059b1edf941" }, "downloads": -1, "filename": "dojot-flow-node-0.0.10.tar.gz", "has_sig": false, "md5_digest": "b3a0a3baf0e945228d637ce2d6852bba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3812, "upload_time": "2019-05-01T16:04:33", "url": "https://files.pythonhosted.org/packages/29/d3/392fbcd89c358315459d6811e89433cec608e77635451dca0bae5e0033e9/dojot-flow-node-0.0.10.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "6e133bc7b56a6771d9582a70ed020bd5", "sha256": "d8de8595bc565b4af68d87d158a2a6fa085262e82d2523a8ac3f1e787ab71e43" }, "downloads": -1, "filename": "dojot_flow_node-0.0.7-py2-none-any.whl", "has_sig": false, "md5_digest": "6e133bc7b56a6771d9582a70ed020bd5", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5905, "upload_time": "2019-04-16T17:02:46", "url": "https://files.pythonhosted.org/packages/04/fe/a94202867804deabb57136de954ca557aa795be1cd401b890c3be4c265e2/dojot_flow_node-0.0.7-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65107956decaa2b0c1b3ef2292481f6a", "sha256": "0472d4cf941d70fe6582f338ab2ee630dd71aa774c59f38bc519ed44d1bdc911" }, "downloads": -1, "filename": "dojot_flow_node-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "65107956decaa2b0c1b3ef2292481f6a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5904, "upload_time": "2019-04-16T14:30:02", "url": "https://files.pythonhosted.org/packages/3a/a0/6b5f76c77574942daa161168c9ee600b6fcf15942f9692ec5503ecc87bb3/dojot_flow_node-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "308e38c07835f185a171151f4063244c", "sha256": "a6b16d5e84524714231e19589f06dbd592f4d381eef36c7ea99a5229aa75cc22" }, "downloads": -1, "filename": "dojot-flow-node-0.0.7.tar.gz", "has_sig": false, "md5_digest": "308e38c07835f185a171151f4063244c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3773, "upload_time": "2019-04-16T14:30:04", "url": "https://files.pythonhosted.org/packages/de/6c/2ba5eb2b4c3c27a32a3e81ba3214f6eb73ce5e4c2429cf212e72292198a9/dojot-flow-node-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "4936f28d478f88cddb60d6d2043bf1fa", "sha256": "a5b80ef4e6a1614f0af3f19a03955b4d2be6cfd2036ca4d3698f1bd2581343d8" }, "downloads": -1, "filename": "dojot_flow_node-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "4936f28d478f88cddb60d6d2043bf1fa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5829, "upload_time": "2019-04-23T17:06:53", "url": "https://files.pythonhosted.org/packages/8d/8d/38c0fa7cdd91720ea99dab1f0527e62890c871b0663ca7c2e652a7e09397/dojot_flow_node-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "512bbb6d29e6a8a14bca3c8d2dcbb262", "sha256": "dcce52500be847d273ffe3ea1bb8e4e1ee74ce4527d1f2da394c4480cf976f10" }, "downloads": -1, "filename": "dojot-flow-node-0.0.8.tar.gz", "has_sig": false, "md5_digest": "512bbb6d29e6a8a14bca3c8d2dcbb262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3708, "upload_time": "2019-04-23T17:06:54", "url": "https://files.pythonhosted.org/packages/de/37/af043b6bae067771fad918db275cc1b89147614ab68bbf9493f57912b808/dojot-flow-node-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "804e4e121a4d566aaf370cf9a742a59f", "sha256": "4eed7e0ef209272f81a5997adaa6503912b09955c50533cfce74d4b9af5d53e6" }, "downloads": -1, "filename": "dojot_flow_node-0.0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "804e4e121a4d566aaf370cf9a742a59f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5908, "upload_time": "2019-04-23T19:14:56", "url": "https://files.pythonhosted.org/packages/b1/48/cdc940276dd664d87e8ea0a4d9304fe52cfaac3f7098f90b096de0b59bee/dojot_flow_node-0.0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "59e06c58250261faa6aca28f32ffab1a", "sha256": "e534acab4744f0f6e743ab9a55acf6bafdfc570adb137444617ed674d293174a" }, "downloads": -1, "filename": "dojot-flow-node-0.0.9.tar.gz", "has_sig": false, "md5_digest": "59e06c58250261faa6aca28f32ffab1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3778, "upload_time": "2019-04-23T19:14:58", "url": "https://files.pythonhosted.org/packages/48/33/f408f644edb0440142a8a5f1a890aa559e944fe5c4bc3fe767f7e3df0c62/dojot-flow-node-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9a999a9d6698a0445d3f993df18b13a9", "sha256": "db0877cecc198d59400f5886edda6e9d38d32e2563a1e7d4da2f904a024217c0" }, "downloads": -1, "filename": "dojot_flow_node-0.0.10-py2-none-any.whl", "has_sig": false, "md5_digest": "9a999a9d6698a0445d3f993df18b13a9", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5987, "upload_time": "2019-05-01T16:04:31", "url": "https://files.pythonhosted.org/packages/64/69/ffcc3f9192166f7541d462ad54a5fbd9a46235cbd10592cf5df5c1d262f4/dojot_flow_node-0.0.10-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "40d5de43dd057c7bd6eedc925b303e71", "sha256": "f07bb82b5d606909d3ae7e48bae1224c2f3585490bb8ba5ed503fcd897af03d2" }, "downloads": -1, "filename": "dojot_flow_node-0.0.10-py3-none-any.whl", "has_sig": false, "md5_digest": "40d5de43dd057c7bd6eedc925b303e71", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5988, "upload_time": "2019-05-01T16:04:32", "url": "https://files.pythonhosted.org/packages/9a/e9/089556dbcfdaf08a4844181d3a4c293a482950e66826ee73ad9639dac6b6/dojot_flow_node-0.0.10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b3a0a3baf0e945228d637ce2d6852bba", "sha256": "ff00fc2b111ed5d66e90e9e85408dfc77b075551dfd6c6291c3e2059b1edf941" }, "downloads": -1, "filename": "dojot-flow-node-0.0.10.tar.gz", "has_sig": false, "md5_digest": "b3a0a3baf0e945228d637ce2d6852bba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3812, "upload_time": "2019-05-01T16:04:33", "url": "https://files.pythonhosted.org/packages/29/d3/392fbcd89c358315459d6811e89433cec608e77635451dca0bae5e0033e9/dojot-flow-node-0.0.10.tar.gz" } ] }