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.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file py_reconciliation_service_api-0.2.0.tar.gz.

File metadata

  • Download URL: py_reconciliation_service_api-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.8.10 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for py_reconciliation_service_api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cba39493e6d063314566d502847ed69182b47999b319560935cae099542a9206
MD5 77fd056ad65a31d972e57dc0e6b7531f
BLAKE2b-256 4cbdf05d1151212ecc5f6a6ad3fafc4a3b5ca1e76b53db4834ac4c91643df8e0

See more details on using hashes here.

File details

Details for the file py_reconciliation_service_api-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for py_reconciliation_service_api-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f018488d89a026bf244c36756585b1607eeff14b7d911fa57c20a744d216952
MD5 522561adc09199c26d9f2c23932a9f4d
BLAKE2b-256 5d21c08c1cbca14d45ffc95a0f50a929ba4615457ca5ee7d6a4514bb533cb5ae

See more details on using hashes here.

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