{ "info": { "author": "William Le Ferrand", "author_email": "william@logichub.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# lhclient\n\nThis utility connects to a deployment to\n\n* Import scripts\n* Import modules\n* Import flow\n* Create an Event Type from a CSV file\n\n## Parameters\n\nAll actions expect the following parameters\n\n* origin: eg. https:///api\n* username\n* password (prompted interactively if missing)\n\nThe last argument is either a file or a directory. If a directory is provided, the script will apply the action to all the files in the directory with suffixes .json, .py, .sh, .csv.\n\n## Actions\n\n### Import a script\n\nUploads either a python or a bash script. If a script with the same name already exists, its contents are overwritten with the new contents (that's how the backend works, nothing specific to this script).\n\n#### Syntax\n\n```\npython lhclient.py import script --origin https:///api --username \n```\n\n### Import a module\n\nImports a module from its JSON representation. If a module with the same ID already exists, it will fail with the `DuplicateModuleIdException` exception. \n\n#### Syntax\n\n```\npython lhclient.py import module --origin https:///api --username \n```\n\n### Import a flow\n\nImports a flow from its JSON representation. We are currently using the legacy API, so import will fail if a flow with the same name already exists.\n\n#### Syntax\n\n```\npython lhclient.py import flow --origin https:///api --username \n```\n\n### Create Event Type from CSV\n\nUploads a CSV file, creates a new FileConnection (named as the file, without the extension) and creates a new EventType (named as the file, without the extension as well). If the CSV file already exists, its contents will NOT be overwritten on the server. If an EventType already has the name of the filename, the creation will fail (we can't have two EventTypes with the same name).\n\nYou can optionally use the --name argument to specify the name to use for both the FileConnection and the EventType\n\n#### Syntax\n\n```\npython lhclient.py create event-type from-csv --origin https:///api --username \n```\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://logichub.com", "keywords": "security,automation,logichub", "license": "MIT", "maintainer": "William Le Ferrand", "maintainer_email": "william@logichub.com", "name": "lhclient", "package_url": "https://pypi.org/project/lhclient/", "platform": "", "project_url": "https://pypi.org/project/lhclient/", "project_urls": { "Homepage": "https://logichub.com" }, "release_url": "https://pypi.org/project/lhclient/0.1.14/", "requires_dist": [ "requests[security] (>=2.18.4,<2.19.0)", "click (>=7.0,<7.1)" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "The official client for the Logichub API", "version": "0.1.14" }, "last_serial": 4742105, "releases": { "0.1.10": [ { "comment_text": "", "digests": { "md5": "bc30f214f678e137e19f226e87c74c09", "sha256": "87181594523bf80d900fc139949b1d8f62aecd0a02bda10e69638c4f05993a57" }, "downloads": -1, "filename": "lhclient-0.1.10-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bc30f214f678e137e19f226e87c74c09", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 13234, "upload_time": "2018-11-14T23:22:18", "url": "https://files.pythonhosted.org/packages/07/77/ae1be76d81a5c571510e866a70fa47b144b39c9bc02008eefce27eed1fbb/lhclient-0.1.10-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "724f5778aa2467c50c8a394b90abd8b1", "sha256": "65ffa5ba68237af81e2c531def7b11cb89d775dbd2c4ac6e06d55ae6940ec9c0" }, "downloads": -1, "filename": "lhclient-0.1.10.tar.gz", "has_sig": false, "md5_digest": "724f5778aa2467c50c8a394b90abd8b1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4340, "upload_time": "2018-11-14T23:22:20", "url": "https://files.pythonhosted.org/packages/69/17/69c4ef64ea56da5f7e973506eaeb356b6c61d13f379447f6c55fb9a37d25/lhclient-0.1.10.tar.gz" } ], "0.1.11": [ { "comment_text": "", "digests": { "md5": "88c47df32d52d7a238879a73a7b29581", "sha256": "8930999a31db89275bc25635de2c008ac706426e43972e0ff64f6d58f1805e87" }, "downloads": -1, "filename": "lhclient-0.1.11-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "88c47df32d52d7a238879a73a7b29581", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 13232, "upload_time": "2019-01-25T21:48:17", "url": "https://files.pythonhosted.org/packages/2c/68/2aed88364a8f613f6818070f4017ef481e6e9defcd42923e0b601aea6769/lhclient-0.1.11-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79c372058c48863bda0f3394b16092ec", "sha256": "87a4f6774ef3e730e97a888ba4861b8adb3e46695cbaa484672b926fcc6a69cd" }, "downloads": -1, "filename": "lhclient-0.1.11.tar.gz", "has_sig": false, "md5_digest": "79c372058c48863bda0f3394b16092ec", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4312, "upload_time": "2019-01-25T21:48:19", "url": "https://files.pythonhosted.org/packages/70/76/590c20870e3d6d6acd3fac6fec42ca8f3304e2a5a49f69b7a3c1a0237c39/lhclient-0.1.11.tar.gz" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "37878b8540abc9099eeecb71aab18a38", "sha256": "57955b7359760716fda193993f3a9e29996941a70898b77327302e0afb785de8" }, "downloads": -1, "filename": "lhclient-0.1.12-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "37878b8540abc9099eeecb71aab18a38", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 13237, "upload_time": "2019-01-25T22:00:25", "url": "https://files.pythonhosted.org/packages/cc/74/3e7d26d9e7923a8071145ea56fecd35a2929d308c7fdf0d47cf29ef1b7f8/lhclient-0.1.12-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2de11a50480a43f38bdcf59b90e6a988", "sha256": "482c58f70983b2ceada8535da295edbe4a0745e3f28ae63ab1c8df080d945c92" }, "downloads": -1, "filename": "lhclient-0.1.12.tar.gz", "has_sig": false, "md5_digest": "2de11a50480a43f38bdcf59b90e6a988", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4320, "upload_time": "2019-01-25T22:00:27", "url": "https://files.pythonhosted.org/packages/b3/25/02f5ffe7e9004c63773d0a12c913c2e21b692063feeb892b9d3053b6997b/lhclient-0.1.12.tar.gz" } ], "0.1.14": [ { "comment_text": "", "digests": { "md5": "2b24be553565a3ced268c3200b22442a", "sha256": "3ffe123ebda6ea02a696f7650589cee67e4d156728b530822773e7e02b0986e4" }, "downloads": -1, "filename": "lhclient-0.1.14-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2b24be553565a3ced268c3200b22442a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 13185, "upload_time": "2019-01-25T22:29:00", "url": "https://files.pythonhosted.org/packages/7b/04/367b967acbed969709ec90998349e5d9a8cfc17d60dfe56f354482475db8/lhclient-0.1.14-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "071424ebf1bce853c7dea48e51bf0d99", "sha256": "81deccbdc420c7a5c981726d08067a25fdbf130754410e4496cf8b0d6cd48f83" }, "downloads": -1, "filename": "lhclient-0.1.14.tar.gz", "has_sig": false, "md5_digest": "071424ebf1bce853c7dea48e51bf0d99", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4328, "upload_time": "2019-01-25T22:29:01", "url": "https://files.pythonhosted.org/packages/05/9d/5fc5acba12caff417b7270cbe713970e5e0d7f2fd30b5844d901556c4623/lhclient-0.1.14.tar.gz" } ], "0.1.9": [ { "comment_text": "", "digests": { "md5": "13798ac0e6e05757f5131e3c208177f0", "sha256": "56935db69793414ffa6596d7a6cc47c61e8aeae3ae75c66d04307708434ddf9b" }, "downloads": -1, "filename": "lhclient-0.1.9-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "13798ac0e6e05757f5131e3c208177f0", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 13177, "upload_time": "2018-11-14T22:50:45", "url": "https://files.pythonhosted.org/packages/de/47/bf3f1ec16251497873ff85343cd8ae4996dc66fac4cb5698e3da3937c591/lhclient-0.1.9-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a73a26e9b12d65d49deec614ef388346", "sha256": "28cf22e3da3d1f6edbfe24a767f2a46ee1ae45bcd8b06bf046f26a08eb52a92e" }, "downloads": -1, "filename": "lhclient-0.1.9.tar.gz", "has_sig": false, "md5_digest": "a73a26e9b12d65d49deec614ef388346", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4313, "upload_time": "2018-11-14T22:50:47", "url": "https://files.pythonhosted.org/packages/b7/c0/04f23ff174a0764db13cbad567878dd13ac8ea267fe7561f570a26d3134f/lhclient-0.1.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2b24be553565a3ced268c3200b22442a", "sha256": "3ffe123ebda6ea02a696f7650589cee67e4d156728b530822773e7e02b0986e4" }, "downloads": -1, "filename": "lhclient-0.1.14-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2b24be553565a3ced268c3200b22442a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 13185, "upload_time": "2019-01-25T22:29:00", "url": "https://files.pythonhosted.org/packages/7b/04/367b967acbed969709ec90998349e5d9a8cfc17d60dfe56f354482475db8/lhclient-0.1.14-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "071424ebf1bce853c7dea48e51bf0d99", "sha256": "81deccbdc420c7a5c981726d08067a25fdbf130754410e4496cf8b0d6cd48f83" }, "downloads": -1, "filename": "lhclient-0.1.14.tar.gz", "has_sig": false, "md5_digest": "071424ebf1bce853c7dea48e51bf0d99", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 4328, "upload_time": "2019-01-25T22:29:01", "url": "https://files.pythonhosted.org/packages/05/9d/5fc5acba12caff417b7270cbe713970e5e0d7f2fd30b5844d901556c4623/lhclient-0.1.14.tar.gz" } ] }