{ "info": { "author": "Aaron Halfaker", "author_email": "ahalfaker@wikimedia.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Other Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3" ], "description": "# ORES API\n\nThis repo contains a python package called \"oresapi\". This package makes it\nstraightforward to query the ORES API in a performant way. \n\n# Example\n\n```\n>>> from oresapi import Session\n>>>\n>>> my_session = Session(\n... \"https://ores.wikimedia.org\",\n... user_agent=\"Demonstrating how to use Session - my_address@email.com\")\n>>>\n>>> rev_ids = [12345, 678910]\n>>> results = my_session.score(\"enwiki\", [\"damaging\", \"goodfaith\"], rev_ids)\n>>>\n>>> for rev_id, result in zip(rev_ids, results):\n... print(rev_id, result)\n...\n12345 {'goodfaith': {'score': {'prediction': True, 'probability': {'true': 0.9454305247958957, 'false': 0.05456947520410427}}}, 'damaging': {'score': {'prediction': False, 'probability': {'true': 0.1774477630070302, 'false': 0.8225522369929699}}}}\n678910 {'goodfaith': {'score': {'prediction': True, 'probability': {'true': 0.9971569940025945, 'false': 0.002843005997405501}}}, 'damaging': {'score': {'prediction': False, 'probability': {'true': 0.008388045944843079, 'false': 0.9916119540551569}}}}\n```\n\n# Author\n* Aaron Halfaker - https://github.com/halfak\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/halfak/oresapi", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "oresapi", "package_url": "https://pypi.org/project/oresapi/", "platform": "", "project_url": "https://pypi.org/project/oresapi/", "project_urls": { "Homepage": "https://github.com/halfak/oresapi" }, "release_url": "https://pypi.org/project/oresapi/0.0.1/", "requires_dist": [ "more-itertools", "requests" ], "requires_python": ">=3", "summary": "A set of utilities for efficiently querying the ORES api.", "version": "0.0.1" }, "last_serial": 5941666, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "97574ec2caddd73ae25d48c7b295e8a9", "sha256": "1bc2eaf140979267e8bcf80a217d87a8665955bb937510307dfe58ee5640b34c" }, "downloads": -1, "filename": "oresapi-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "97574ec2caddd73ae25d48c7b295e8a9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 5066, "upload_time": "2019-10-07T21:42:46", "url": "https://files.pythonhosted.org/packages/f2/13/8c391cb55120d8706f14cedfe447cc66141eafc6232961ed85927b645185/oresapi-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c39975622c4230adcae95a9a9548f094", "sha256": "ce96aa2294e949b4cd6aae7cb73e72fa5aa15fe3c5e93e54da11c24e3c945a79" }, "downloads": -1, "filename": "oresapi-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c39975622c4230adcae95a9a9548f094", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4028, "upload_time": "2019-10-07T21:43:19", "url": "https://files.pythonhosted.org/packages/ce/66/12dc6937b3609b5e491142007ce10d406cb2046aab317d6b863bee5acdf4/oresapi-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "97574ec2caddd73ae25d48c7b295e8a9", "sha256": "1bc2eaf140979267e8bcf80a217d87a8665955bb937510307dfe58ee5640b34c" }, "downloads": -1, "filename": "oresapi-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "97574ec2caddd73ae25d48c7b295e8a9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 5066, "upload_time": "2019-10-07T21:42:46", "url": "https://files.pythonhosted.org/packages/f2/13/8c391cb55120d8706f14cedfe447cc66141eafc6232961ed85927b645185/oresapi-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c39975622c4230adcae95a9a9548f094", "sha256": "ce96aa2294e949b4cd6aae7cb73e72fa5aa15fe3c5e93e54da11c24e3c945a79" }, "downloads": -1, "filename": "oresapi-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c39975622c4230adcae95a9a9548f094", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 4028, "upload_time": "2019-10-07T21:43:19", "url": "https://files.pythonhosted.org/packages/ce/66/12dc6937b3609b5e491142007ce10d406cb2046aab317d6b863bee5acdf4/oresapi-0.0.1.tar.gz" } ] }