Skip to main content

Python client for the Reconciliation Service API

Project description

Python Reconciliation Service API

This is a python implementation of the Reconciliation Service API v0.2. It is available on pypi.

It does not support all methods or utilities of the API including authentication.

PyPI - Python Version PyPI - Format PyPI - License

Usage

Here is a basic usage example

from py_reconciliation_service_api import build_reconciliation_service

# the standard location of the wikidata implementation of this API
SERVICE_URL = "https://wikidata.reconci.link/en/api"
service = build_reconciliation_service(SERVICE_URL)

# get 6 candidates for the string "sf"
candidates = service.reconcile({"query": "sf", "limit": 6})
assert len(candidates.result) == 6
# the top result should be called San Francisco
assert candidates.result[0].name == "San Francisco"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_reconciliation_service_api-0.2.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page