Skip to main content

A Python library for the IMS Open Corpus Workbench (CWB) corpus query interface (CQi) API.

Project description

CQi SDK for Python

A Python library for the IMS Open Corpus Workbench (CWB) Corpus Query Interface (CQi) API.


The latest stable version is available on PyPI. Either add cqi to your requirements.txt file or install with pip:

pip install cqi

Version compatibility

Package version Protocol version
0.1.0 - 0.1.7 0.1


import cqi

client = cqi.CQiClient('')
client.connect(username='anonymous', password='') # <class 'cqi.status.StatusConnectOk'> # <class 'cqi.status.StatusPingOk'>
corpus = client.corpora.get('CORPUS') # <Corpus: CORPUS>
corpus.query('"and" []* "the";', 'Results') # <class 'cqi.status.StatusOk'>
results = corpus.subcorpora.get('Results') # <Subcorpus: CORPUS:Results>
client.disconnect() # <class 'cqi.status.StatusByeOk'>

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

cqi-0.1.7.tar.gz (14.7 kB view hashes)

Uploaded source

Built Distribution

cqi-0.1.7-py3-none-any.whl (18.6 kB view hashes)

Uploaded py3

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