{ "info": { "author": "Georgi Nikolov", "author_email": "contact@cylab.be", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7" ], "description": "# mark-python-client\n\n[![pipeline status](https://gitlab.cylab.be/cylab/mark-python-client/badges/master/pipeline.svg)](https://gitlab.cylab.be/cylab/mark-python-client/commits/master)\n[![coverage report](https://gitlab.cylab.be/cylab/mark-python-client/badges/master/coverage.svg)](https://gitlab.cylab.be/cylab/mark-python-client/commits/master)\n[![PyPI version](https://badge.fury.io/py/mark-python-client.svg)](https://badge.fury.io/py/mark-python-client)\n\nA Python client for the MARK framework:\n\nhttps://cylab.be/research/mark\n\n## Installation\n\n```bash\n$ pip install mark-python-client\n```\n\n## Usage\n\nTo use the mark_python_client.py script just add it to your python code and you can invoke the different\nmethods defined in the script\n\n```python\nfrom mark_client import mark_python_client as mark_client\n\n#initialize the MARK Client\nclient = mark_client.MarkClient()\n\n#set the url of the MARK server\nclient.set_server_url(\"http://server.ip.address:ip.port\")\n\n#add evidence to the database via the MARK server\nclient.add_evidence(evidence_to_be_added)\n\n#fetch the ranked list of the k-most suspicious entries\nranked_list = client.get_evidence()\n\n#fetch evidences with a specific label and subject\nevidences = client.find_evidence(label, subject)\n```\n\n## Contributing\n\n### Installation\n\n```bash\n$ git clone https://gitlab.cylab.be/cylab/mark-python-client.git\n$ cd mark-python-client\n$ pip install -r requirements.txt\n```\n\n### Project overview\n\n1. mark_client - source folder of the project\n\n 1.1. mark_python_client.py : main code\n\n 1.2. conftest.py : empty script used by pytest unit test library to point the global PATH variable to the modules and scripts used in the unit tests\n\n2. tests - test folder of the project\n\n 2.1. mark_python_client_test.py : integration test (requires a fully installed mark server)\n\n### Testing\n\nCurrently the only implemented test is a complete integration test, which requires a fully running mark server. The recommended way to test the project is thus using gitlab-runner.\n\n1. Install Docker\nhttps://docs.docker.com/install/linux/docker-ce/ubuntu/\n\n2. Install gitlab-runner\nhttps://docs.gitlab.com/runner/\n\n3. Run the tests\n```bash\n$ gitlab-runner exec docker test:integration\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.cylab.be/cylab/mark-python-client", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "mark-python-client", "package_url": "https://pypi.org/project/mark-python-client/", "platform": "", "project_url": "https://pypi.org/project/mark-python-client/", "project_urls": { "Homepage": "https://gitlab.cylab.be/cylab/mark-python-client" }, "release_url": "https://pypi.org/project/mark-python-client/1.0.9/", "requires_dist": null, "requires_python": "", "summary": "A client library for MARK server", "version": "1.0.9" }, "last_serial": 5895256, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "40667fdab35d899291be73548f938aa3", "sha256": "2f294e1ae81ef231401bf4e1ceec82f9409d4f95189d6c525ab3c31b63f63d3a" }, "downloads": -1, "filename": "mark_python_client-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "40667fdab35d899291be73548f938aa3", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 4702, "upload_time": "2019-07-10T10:56:53", "url": "https://files.pythonhosted.org/packages/79/d7/a0816697170175a3937e8803f5a479c8c29b042830a23a6b40a834d9477b/mark_python_client-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2ee648f6803749265e734bc4de79fae4", "sha256": "c7343b47b39602fae2a42e719967f1b77a77140becc70c424ae7d84dfb5bb44f" }, "downloads": -1, "filename": "mark-python-client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "2ee648f6803749265e734bc4de79fae4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3504, "upload_time": "2019-07-10T10:56:55", "url": "https://files.pythonhosted.org/packages/c5/97/b64c4ee0bce51948e54b759eac0f537a215296b458c7c08d269a6aa00d73/mark-python-client-1.0.0.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "414d984c4a49d1e3283917c340c14e73", "sha256": "0b977236ae4012cccb98bcf149a922964f6306508c04b658095247d90efe1eba" }, "downloads": -1, "filename": "mark-python-client-1.0.2.tar.gz", "has_sig": false, "md5_digest": "414d984c4a49d1e3283917c340c14e73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2959, "upload_time": "2019-07-10T21:58:11", "url": "https://files.pythonhosted.org/packages/e2/08/289dad372437bfdd8294dd11af2619d2e27a228a35c49ac9ae7ec7d9cd70/mark-python-client-1.0.2.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "98cbe45fe324a89f1add6f9db105cc1c", "sha256": "89d37046a8c3ec13882a67b1733b19c09074ab791d34c008be24805b9fe60d40" }, "downloads": -1, "filename": "mark-python-client-1.0.4.tar.gz", "has_sig": false, "md5_digest": "98cbe45fe324a89f1add6f9db105cc1c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3004, "upload_time": "2019-07-11T09:59:47", "url": "https://files.pythonhosted.org/packages/42/15/3ec6e1e9da6049dc281741088595a2026c8cc3f82822686a4d6f134d1e10/mark-python-client-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "2c5aa14ae27edc6486e622d3fd44bc37", "sha256": "ce59bc57e796024c813217fff5043bdc6f7d97867ec21a2aba4ada13408e35b5" }, "downloads": -1, "filename": "mark-python-client-1.0.5.tar.gz", "has_sig": false, "md5_digest": "2c5aa14ae27edc6486e622d3fd44bc37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3112, "upload_time": "2019-07-16T11:35:44", "url": "https://files.pythonhosted.org/packages/ae/ef/8fa758258fee7c4b18b467822e43691bd8d623665f344fd86e931f715e99/mark-python-client-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "445873f7d3c0db05c3f3bf255a84c98c", "sha256": "511d2eee3c2d7c5dc21212b98a53a71f16fdc63e33e4771db9a05ed2fe84e3ec" }, "downloads": -1, "filename": "mark-python-client-1.0.6.tar.gz", "has_sig": false, "md5_digest": "445873f7d3c0db05c3f3bf255a84c98c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3124, "upload_time": "2019-09-17T19:45:20", "url": "https://files.pythonhosted.org/packages/65/af/2ad1893d1c0adcc9afb93dc09c06f8d5e7abb4ffb568f126862929e28c97/mark-python-client-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "02e59adeae281591ec34f46b60f2b31b", "sha256": "7acdeb5a71a8420f7f1217950781566c5f8dfdf1ef4f818132cf1675c9b30b0c" }, "downloads": -1, "filename": "mark-python-client-1.0.7.tar.gz", "has_sig": false, "md5_digest": "02e59adeae281591ec34f46b60f2b31b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3066, "upload_time": "2019-09-18T12:48:45", "url": "https://files.pythonhosted.org/packages/7e/3e/da603bbea7711c8ad202eaf4404bf231097ba95f2127cdbd667c7991de3a/mark-python-client-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "b652920b1f0a3df3bfa3b9051fed078f", "sha256": "b4ba21681e1abee47695d9bfcd956fc4466da7b145aa3cadc8879ceeabdfdae7" }, "downloads": -1, "filename": "mark-python-client-1.0.8.tar.gz", "has_sig": false, "md5_digest": "b652920b1f0a3df3bfa3b9051fed078f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3068, "upload_time": "2019-09-24T07:24:45", "url": "https://files.pythonhosted.org/packages/29/52/e023c5eb14427152072ffc2f54daf44c3781008c90fa1337815083824036/mark-python-client-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "61a5640e3bebbb03fea91184e5e6fafc", "sha256": "5f2c9fb2563712eb7d75db586bb211a1e719fe3e79ab02cf4dd8add3cbee42e5" }, "downloads": -1, "filename": "mark-python-client-1.0.9.tar.gz", "has_sig": false, "md5_digest": "61a5640e3bebbb03fea91184e5e6fafc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3126, "upload_time": "2019-09-27T09:50:07", "url": "https://files.pythonhosted.org/packages/3c/8a/42dc0d474b9b8bae6233a5c4d982114f558d4a7d835c9d18cc1084aca468/mark-python-client-1.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "61a5640e3bebbb03fea91184e5e6fafc", "sha256": "5f2c9fb2563712eb7d75db586bb211a1e719fe3e79ab02cf4dd8add3cbee42e5" }, "downloads": -1, "filename": "mark-python-client-1.0.9.tar.gz", "has_sig": false, "md5_digest": "61a5640e3bebbb03fea91184e5e6fafc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3126, "upload_time": "2019-09-27T09:50:07", "url": "https://files.pythonhosted.org/packages/3c/8a/42dc0d474b9b8bae6233a5c4d982114f558d4a7d835c9d18cc1084aca468/mark-python-client-1.0.9.tar.gz" } ] }