{ "info": { "author": "Olivier Sallou", "author_email": "olivier.sallou@irisa.fr", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python" ], "description": "# Clair\n\nClair is an open source project for the static analysis of vulnerabilities in appc and docker containers (https://github.com/coreos/clair).\n\nThis Python package provides methods to analyse a local Docker image and injects image layers to a Clair server.\n\n# License\n\nAll code is under Apache 2.0 or more.\n\n Copyright 2015 Olivier Sallou \n .\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n .\n http://www.apache.org/licenses/LICENSE-2.0\n .\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n# Example\n\n\n cfg = {\n 'clair.host': 'http://127.0.0.1:6060',\n 'docker.connect': 'tcp://127.0.0.1:2375'\n }\n log = logging.getLogger(__name__)\n\n\n test = Clair(cfg)\n layers = test.analyse('docker-registry.genouest.org/osallou/testgit')\n\n layer_ids = []\n for layer in layers:\n layer_ids.append(layer['id'])\n vulnerabilities = test.get_layers_vulnerabilities(layer_ids)\n\n log.warn(str(vulnerabilities))\n\n\n0.2: Fix packaging\n0.1: First release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/osallou/clair", "keywords": "docker clair", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "clair", "package_url": "https://pypi.org/project/clair/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/clair/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/osallou/clair" }, "release_url": "https://pypi.org/project/clair/0.3/", "requires_dist": null, "requires_python": null, "summary": "Import a Docker image layers to Clair for security analysis", "version": "0.3" }, "last_serial": 2033805, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "65a3f4495316db63aad5655614bbc4fa", "sha256": "24d335c3e9b34df36145279c51ab50873b1a6170084c53a13e163c01619d86d8" }, "downloads": -1, "filename": "clair-0.1.tar.gz", "has_sig": false, "md5_digest": "65a3f4495316db63aad5655614bbc4fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2629, "upload_time": "2016-03-22T15:09:45", "url": "https://files.pythonhosted.org/packages/7a/37/dcc64a7d714a8c81b8e4110d156b887be079c8fd4a008a108086a7b8f3ca/clair-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "97af08f21cefd99dd945ad4a5413c345", "sha256": "1610ee2fb01f6e0792dc7506ec889a1138d568e99a667a3bea83735fa54e7234" }, "downloads": -1, "filename": "clair-0.2.tar.gz", "has_sig": false, "md5_digest": "97af08f21cefd99dd945ad4a5413c345", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2859, "upload_time": "2016-03-23T16:34:38", "url": "https://files.pythonhosted.org/packages/2b/3e/9de549b9da2c9b73593350a2355fc1a38117d9066cff0a1021837d22a026/clair-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "f2a4d0d25cffdfcfab0e4657db70faca", "sha256": "426e2ecee9d05f0642b4abc39dfcb00db3bf85ca57e04a00e515273b69e9bcac" }, "downloads": -1, "filename": "clair-0.3.tar.gz", "has_sig": false, "md5_digest": "f2a4d0d25cffdfcfab0e4657db70faca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3251, "upload_time": "2016-03-29T12:56:39", "url": "https://files.pythonhosted.org/packages/6b/ce/59b59f5f773824717fa12d1cedf9c2a7053db6b2a3cb8ab9868633333fed/clair-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f2a4d0d25cffdfcfab0e4657db70faca", "sha256": "426e2ecee9d05f0642b4abc39dfcb00db3bf85ca57e04a00e515273b69e9bcac" }, "downloads": -1, "filename": "clair-0.3.tar.gz", "has_sig": false, "md5_digest": "f2a4d0d25cffdfcfab0e4657db70faca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3251, "upload_time": "2016-03-29T12:56:39", "url": "https://files.pythonhosted.org/packages/6b/ce/59b59f5f773824717fa12d1cedf9c2a7053db6b2a3cb8ab9868633333fed/clair-0.3.tar.gz" } ] }