{ "info": { "author": "Sean McFeely", "author_email": "mcfeelynaes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only" ], "description": "# python client for gglsbl-rest service\n\nThis is a simple python client wrapper for the [gglsbl-rest](https://github.com/mlsecproject/gglsbl-rest) service.\n\n## Installation\n\n``pip install gglsbl-rest-client``\n\n## The gglsbl-rest-client CLI script\n\nWhen installed, a commannd line script named 'gglsbl-rest-client' is supplied that can be used to query your [gglsbl-rest](https://github.com/mlsecproject/gglsbl-rest) service.\nThe default configuration file assumes you have the service running on local host. If you do not, the script checks the following locations for config files and overrides previous entries:\n\n- ``//etc/config.ini``\n- ``/etc/gglsbl-rest/config.ini``\n- ``~//.config/gglsbl-rest.ini``\n\n```\n$ gglsbl-rest-client.py -h\nusage: gglsbl-rest-client.py [-h] [-d] [-rh REMOTE_HOST] [-p PORT] [-cs]\n [-l LOOKUP_URL] [--ignore-proxy]\n\nA client for querying MLSec gglsbl-rest Services\n(https://github.com/mlsecproject)\n\noptional arguments:\n -h, --help show this help message and exit\n -d, --debug set logging to DEBUG\n -rh REMOTE_HOST, --remote-host REMOTE_HOST\n the hostname or IP address where the service is\n listening. Default is localhost.\n -p PORT, --port PORT the port the service is listening on. Default: 5000\n -cs, --check-status Check the status of the service\n -l LOOKUP_URL, --lookup-url LOOKUP_URL\n the url to lookup\n --ignore-proxy ignore system proxy. On by default.\n```\n\n## Examples\n\n### URL Lookup\n\n```\n$ gglsbl-rest-client.py -l 'http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/SOCIAL_ENGINEERING/URL/'\n{'matches': [{'platform': 'ANY_PLATFORM',\n 'threat': 'SOCIAL_ENGINEERING',\n 'threat_entry': 'URL'},\n {'platform': 'WINDOWS',\n 'threat': 'SOCIAL_ENGINEERING',\n 'threat_entry': 'URL'},\n {'platform': 'LINUX',\n 'threat': 'SOCIAL_ENGINEERING',\n 'threat_entry': 'URL'},\n {'platform': 'OSX',\n 'threat': 'SOCIAL_ENGINEERING',\n 'threat_entry': 'URL'},\n {'platform': 'ALL_PLATFORMS',\n 'threat': 'SOCIAL_ENGINEERING',\n 'threat_entry': 'URL'},\n {'platform': 'CHROME',\n 'threat': 'SOCIAL_ENGINEERING',\n 'threat_entry': 'URL'}],\n 'url': 'http://testsafebrowsing.appspot.com/apiv4/ANY_PLATFORM/SOCIAL_ENGINEERING/URL/'}\n```\n\n### Status Check\n\n```\n$ gglsbl-rest-client.py -cs\n{'alternatives': [{'active': True,\n 'ctime': '2019-10-01T18:15:44+0000',\n 'mtime': '2019-10-01T18:15:44+0000',\n 'name': '/home/gglsbl/db/sqlite.db',\n 'size': 1389404160}],\n 'environment': 'prod'}\n```\n\nOR\n\n```\n$ gglsbl-rest-client.py \nNo arguments specified. Printing client info and service status.\n\nGGLSBL_Rest_Service_Client\n\tLookup URL: http://127.0.0.1:5000/gglsbl/lookup/\n\tStatus URL: http://127.0.0.1:5000/gglsbl/status\n\n\nGGLSBL Service status:\n{'alternatives': [{'active': True,\n 'ctime': '2019-10-01T18:15:44+0000',\n 'mtime': '2019-10-01T18:15:44+0000',\n 'name': '/home/gglsbl/db/sqlite.db',\n 'size': 1389404160}],\n 'environment': 'prod'}\n```\n\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://github.com/seanmcfeely/gglsbl-rest-client", "keywords": "Information Security,Google SafeBrowsing", "license": "Apache-2.0", "maintainer": "", "maintainer_email": "", "name": "gglsbl-rest-client", "package_url": "https://pypi.org/project/gglsbl-rest-client/", "platform": "", "project_url": "https://pypi.org/project/gglsbl-rest-client/", "project_urls": { "Homepage": "https://github.com/seanmcfeely/gglsbl-rest-client" }, "release_url": "https://pypi.org/project/gglsbl-rest-client/1.0.1/", "requires_dist": [ "requests", "coloredlogs" ], "requires_python": "", "summary": "This is a simple python client wrapper for the [gglsbl-rest](https://github.com/mlsecproject/gglsbl-rest) service.", "version": "1.0.1" }, "last_serial": 5992616, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "70903a719dd9869485185a61fb9c7449", "sha256": "66da5f8ce618c2545751d0c19f3f228bdedb99473dd3a2146028e60598f93b79" }, "downloads": -1, "filename": "gglsbl_rest_client-0.0.1-py3.6.egg", "has_sig": false, "md5_digest": "70903a719dd9869485185a61fb9c7449", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 10867, "upload_time": "2019-10-01T20:17:50", "url": "https://files.pythonhosted.org/packages/27/9f/cde97ab21dd2ab3648c9fd62bafaba9479942b80f694deead78ec57575cd/gglsbl_rest_client-0.0.1-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "6f7bb88b31693c56b9a4860dd0548aec", "sha256": "aecbf5c46d6d694dca90560fa30b034c3127866daa25f90641c93c8e7c2aff19" }, "downloads": -1, "filename": "gglsbl_rest_client-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6f7bb88b31693c56b9a4860dd0548aec", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10411, "upload_time": "2019-10-01T20:17:48", "url": "https://files.pythonhosted.org/packages/d4/92/e6931e58baa71144843182e81ea9c1a9a3a1da7254b5fb5b478abefc01b9/gglsbl_rest_client-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f53e95c7062753e5e64ef95cef50721", "sha256": "fe27ca1752f80c038b5cfa025bfac01d9c964edd608697a84736ac95f4e35cb6" }, "downloads": -1, "filename": "gglsbl-rest-client-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5f53e95c7062753e5e64ef95cef50721", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5873, "upload_time": "2019-10-01T20:17:52", "url": "https://files.pythonhosted.org/packages/d4/33/c305167f4745957f0f63c7ee442c646d50ceebcad2d47ce4836dbbb9aac0/gglsbl-rest-client-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "78f375735940ae176a5e007dc6c33c15", "sha256": "dd030fa7a0602021f9ba00610e93c06877db89ec171203761e5420082008ad6b" }, "downloads": -1, "filename": "gglsbl_rest_client-0.0.2-py3.6.egg", "has_sig": false, "md5_digest": "78f375735940ae176a5e007dc6c33c15", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 11094, "upload_time": "2019-10-01T21:28:29", "url": "https://files.pythonhosted.org/packages/ff/44/87afcb2c795c2430429e5c9647c497c93dac81844a6532225a467758d8b1/gglsbl_rest_client-0.0.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "c8ebf0f2a37bffdb265ba807fb6567c1", "sha256": "d1aea767e46c4738bf5f45ec5fdf0c56b8e790f8758c85bd3795a1acc8d803b5" }, "downloads": -1, "filename": "gglsbl_rest_client-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "c8ebf0f2a37bffdb265ba807fb6567c1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10687, "upload_time": "2019-10-01T21:28:27", "url": "https://files.pythonhosted.org/packages/a9/3f/aa228c693ffa3c7949daaf51d2150090b4a9f9b312ab2a4529c2038a0d55/gglsbl_rest_client-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd055273df5e2e5c179793941309b0d4", "sha256": "905271111436e7a725e17c308c1ba802afe6bb62604e1c4d23237584ce88d851" }, "downloads": -1, "filename": "gglsbl-rest-client-0.0.2.tar.gz", "has_sig": false, "md5_digest": "cd055273df5e2e5c179793941309b0d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6039, "upload_time": "2019-10-01T21:28:30", "url": "https://files.pythonhosted.org/packages/3e/7b/92ca5625721d5e69c2035cd9bb99442499968637306d6ae2d0c72ff84e59/gglsbl-rest-client-0.0.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "541ae0958600755a5e51ecbebf04492d", "sha256": "ee87270314d8234f9eebb48d7d9b6dac521ff15a60d6a0d6a85c2b31c396911d" }, "downloads": -1, "filename": "gglsbl_rest_client-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "541ae0958600755a5e51ecbebf04492d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11186, "upload_time": "2019-10-09T07:45:52", "url": "https://files.pythonhosted.org/packages/b2/e8/cf4b9d541ea314a410600e44bfb617eda9b4f9eac2aa5a9e215b6918405e/gglsbl_rest_client-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "659b68d2e7dacfc8ed870c8d14facf65", "sha256": "02cf63cdcf410236f657a36e2ba12650812a7b39078f9dd96eb5a1f7ddba5e8b" }, "downloads": -1, "filename": "gglsbl-rest-client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "659b68d2e7dacfc8ed870c8d14facf65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6378, "upload_time": "2019-10-09T07:45:54", "url": "https://files.pythonhosted.org/packages/8b/aa/02d4d5af13577607a77732311d0ac58a635c4c66fc67e200005eb46e2df1/gglsbl-rest-client-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "332509582d1a4aee2d0c414b4950ee8f", "sha256": "bc186bb0de20033d1668401d1e66a8c02a9b4b940d65fc5196828410ff863cc4" }, "downloads": -1, "filename": "gglsbl_rest_client-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "332509582d1a4aee2d0c414b4950ee8f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11193, "upload_time": "2019-10-17T22:09:02", "url": "https://files.pythonhosted.org/packages/e0/e7/8dfa2f145f43245c4d0e690edfecab27f07cd9123cd65a938cf956d0c1f0/gglsbl_rest_client-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "023569db5c36892c21bb5ea4af2376c6", "sha256": "94af29f7c4b85359577d1159ad00d1a194ed4630add27c487cad7eb92bb255f6" }, "downloads": -1, "filename": "gglsbl-rest-client-1.0.1.tar.gz", "has_sig": false, "md5_digest": "023569db5c36892c21bb5ea4af2376c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6390, "upload_time": "2019-10-17T22:09:03", "url": "https://files.pythonhosted.org/packages/dc/87/89901230ffc1d256ccf37532f1f8fbcebcbdd6bc6d32c33ce054b87b906d/gglsbl-rest-client-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "332509582d1a4aee2d0c414b4950ee8f", "sha256": "bc186bb0de20033d1668401d1e66a8c02a9b4b940d65fc5196828410ff863cc4" }, "downloads": -1, "filename": "gglsbl_rest_client-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "332509582d1a4aee2d0c414b4950ee8f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11193, "upload_time": "2019-10-17T22:09:02", "url": "https://files.pythonhosted.org/packages/e0/e7/8dfa2f145f43245c4d0e690edfecab27f07cd9123cd65a938cf956d0c1f0/gglsbl_rest_client-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "023569db5c36892c21bb5ea4af2376c6", "sha256": "94af29f7c4b85359577d1159ad00d1a194ed4630add27c487cad7eb92bb255f6" }, "downloads": -1, "filename": "gglsbl-rest-client-1.0.1.tar.gz", "has_sig": false, "md5_digest": "023569db5c36892c21bb5ea4af2376c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6390, "upload_time": "2019-10-17T22:09:03", "url": "https://files.pythonhosted.org/packages/dc/87/89901230ffc1d256ccf37532f1f8fbcebcbdd6bc6d32c33ce054b87b906d/gglsbl-rest-client-1.0.1.tar.gz" } ] }