{ "info": { "author": "Osma Suominen", "author_email": "osma.suominen@helsinki.fi", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Annif-client\n\nThis is a minimal Python 3.x client library for accessing the\n[Annif](http://annif.org) REST API which can be used for automated subject\nindexing and classification of text documents.\n\n## Installation\n\nThe easiest way to install is via pip:\n\n pip3 install annif-client\n\n## Dependencies\n\nThe library depends on the\n[requests](http://docs.python-requests.org/en/master/#) module which is used\nfor HTTP/REST access. If you install this via pip, the dependencies will be\nhandled automatically.\n\n## How to use\n\nThe client library comes with examples demonstrating its usage. You can invoke\nthe example by running the [annif_client.py](annif_client.py) script.\n\nIn your own code, you can use the AnnifClient class like this:\n\n from annif_client import AnnifClient\n\n # then you can create your own client\n annif = AnnifClient()\n\n## Example invocation\n\nHere is the output from a typical example session:\n\n $ python3 annif_client.py\n Demonstrating usage of AnnifClient\n\n * Creating an AnnifClient object\n Now we have an AnnifClient object: AnnifClient(api_base='http://api.annif.org/v1/')\n\n * Finding the available projects\n Project id: yso-fi lang: fi name: YSO ensemble Finnish\n Project id: yso-sv lang: sv name: YSO ensemble Swedish\n Project id: yso-en lang: en name: YSO ensemble English\n Project id: tfidf-fi lang: fi name: TF-IDF Finnish\n Project id: tfidf-sv lang: sv name: TF-IDF Swedish\n Project id: tfidf-en lang: en name: TF-IDF English\n Project id: fasttext-fi lang: fi name: fastText Finnish\n Project id: fasttext-sv lang: sv name: fastText Swedish\n Project id: fasttext-en lang: en name: fastText English\n Project id: maui-fi lang: fi name: Maui Finnish\n Project id: maui-sv lang: sv name: Maui Swedish\n Project id: maui-en lang: en name: Maui English\n Project id: annif-api-fi lang: fi name: Annif prototype API Finnish\n Project id: annif-api-sv lang: sv name: Annif prototype API Swedish\n Project id: annif-api-en lang: en name: Annif prototype API English\n Project id: ykl-fasttext-fi lang: fi name: YKL fastText Finnish\n\n * Looking up information about a specific project\n Project id: yso-en lang: en name: YSO ensemble English\n\n * Analyzing a short text from a string\n \t0.2595\tred fox\n \t0.2039\tdog\n \t0.1946\tlaziness\n \t0.1285\tbrown\n \t0.1220\ttriple jump\n \t0.1194\tlong jump\n \t0.1109\tcanines\n \t0.1094\tblue fox\n \t0.1068\thigh jump\n \t0.0911\tanimal training\n\n * Analyzing a longer text from a file, with a limit on number of results\n \t0.3651\tlicences (permits)\n \t0.1656\tcopyright\n \t0.1566\tnational libraries\n \t0.1461\tApache\n \t0.1220\tcopies\n\n## License\n\nThe code is published under the [Apache 2.0](LICENSE.txt) license.\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/NatLibFi/Annif-client", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "annif-client", "package_url": "https://pypi.org/project/annif-client/", "platform": "", "project_url": "https://pypi.org/project/annif-client/", "project_urls": { "Homepage": "https://github.com/NatLibFi/Annif-client" }, "release_url": "https://pypi.org/project/annif-client/0.2.5/", "requires_dist": [ "requests", "bumpversion; extra == 'dev'" ], "requires_python": "", "summary": "Python client library for accessing Annif REST API", "version": "0.2.5" }, "last_serial": 4410870, "releases": { "0.2.4": [ { "comment_text": "", "digests": { "md5": "0113f240439bd28f78a505bba8c28e43", "sha256": "9f218fc3e8b0f66ba6f8ad5408650d2f7b2a48b1888245b03d17a28c0f7c7653" }, "downloads": -1, "filename": "annif_client-0.2.4-py3-none-any.whl", "has_sig": false, "md5_digest": "0113f240439bd28f78a505bba8c28e43", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4282, "upload_time": "2018-10-24T12:20:20", "url": "https://files.pythonhosted.org/packages/3d/e2/fe02f5da9b658d68c132a5aebcb29099b1303a226459709976ba790a051e/annif_client-0.2.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c3f76dcb28617e9e3487cae0ea68a374", "sha256": "6d7d1c89481334b54858e570e926d2aef4e168bbce90ebab97a3081164d495e3" }, "downloads": -1, "filename": "annif-client-0.2.4.tar.gz", "has_sig": false, "md5_digest": "c3f76dcb28617e9e3487cae0ea68a374", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3540, "upload_time": "2018-10-24T12:20:21", "url": "https://files.pythonhosted.org/packages/bb/c5/024f2a322f2678894a21057ad12a455f95a8bc4a67e5c6e9f67a706a3655/annif-client-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "53166931a46750e4b27ded89aa3ceaf3", "sha256": "d3806f16e0cc66b00e4d351b3a5a84b83837d5ab6b7b511dbf2d87ca44dcf6e9" }, "downloads": -1, "filename": "annif_client-0.2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "53166931a46750e4b27ded89aa3ceaf3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4246, "upload_time": "2018-10-24T12:26:02", "url": "https://files.pythonhosted.org/packages/ea/f5/c78bee33ca6fe5c498f7ce495346a539068f50c1b646ebfa1a14dd2f3d0c/annif_client-0.2.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db79c6ab9459ec4e680e3e6556a08617", "sha256": "78e5e695c486d00e571a26dac61d7643d874c32280c2f7a7e39143da09d5858c" }, "downloads": -1, "filename": "annif-client-0.2.5.tar.gz", "has_sig": false, "md5_digest": "db79c6ab9459ec4e680e3e6556a08617", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3496, "upload_time": "2018-10-24T12:26:04", "url": "https://files.pythonhosted.org/packages/08/da/7b4218715a7a93a405c4f1e60ca2e35f49f2c50dcdae020317a76a6bf46c/annif-client-0.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "53166931a46750e4b27ded89aa3ceaf3", "sha256": "d3806f16e0cc66b00e4d351b3a5a84b83837d5ab6b7b511dbf2d87ca44dcf6e9" }, "downloads": -1, "filename": "annif_client-0.2.5-py3-none-any.whl", "has_sig": false, "md5_digest": "53166931a46750e4b27ded89aa3ceaf3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4246, "upload_time": "2018-10-24T12:26:02", "url": "https://files.pythonhosted.org/packages/ea/f5/c78bee33ca6fe5c498f7ce495346a539068f50c1b646ebfa1a14dd2f3d0c/annif_client-0.2.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db79c6ab9459ec4e680e3e6556a08617", "sha256": "78e5e695c486d00e571a26dac61d7643d874c32280c2f7a7e39143da09d5858c" }, "downloads": -1, "filename": "annif-client-0.2.5.tar.gz", "has_sig": false, "md5_digest": "db79c6ab9459ec4e680e3e6556a08617", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3496, "upload_time": "2018-10-24T12:26:04", "url": "https://files.pythonhosted.org/packages/08/da/7b4218715a7a93a405c4f1e60ca2e35f49f2c50dcdae020317a76a6bf46c/annif-client-0.2.5.tar.gz" } ] }