A set of utilities for efficiently querying the ORES api.
Project description
# ORES API
This repo contains a python package called “oresapi”. This package makes it straightforward to query the ORES API in a performant way.
# Example
` >>> from oresapi import Session >>> >>> my_session = Session( ... "https://ores.wikimedia.org", ... user_agent="Demonstrating how to use Session - my_address@email.com") >>> >>> rev_ids = [12345, 678910] >>> results = my_session.score("enwiki", ["damaging", "goodfaith"], rev_ids) >>> >>> for rev_id, result in zip(rev_ids, results): ... print(rev_id, result) ... 12345 {'goodfaith': {'score': {'prediction': True, 'probability': {'true': 0.9454305247958957, 'false': 0.05456947520410427}}}, 'damaging': {'score': {'prediction': False, 'probability': {'true': 0.1774477630070302, 'false': 0.8225522369929699}}}} 678910 {'goodfaith': {'score': {'prediction': True, 'probability': {'true': 0.9971569940025945, 'false': 0.002843005997405501}}}, 'damaging': {'score': {'prediction': False, 'probability': {'true': 0.008388045944843079, 'false': 0.9916119540551569}}}} `
# Author * Aaron Halfaker - https://github.com/halfak
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for oresapi-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bc2eaf140979267e8bcf80a217d87a8665955bb937510307dfe58ee5640b34c |
|
MD5 | 97574ec2caddd73ae25d48c7b295e8a9 |
|
BLAKE2b-256 | f2138c391cb55120d8706f14cedfe447cc66141eafc6232961ed85927b645185 |