CQi SDK for Python
A Python library for the IMS Open Corpus Workbench (CWB) Corpus Query Interface (CQi) API.
Installation
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 |
Usage
import cqi
client = cqi.CQiClient('127.0.0.1')
client.connect(username='anonymous', password='') # <class 'cqi.status.StatusConnectOk'>
client.ping() # <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'>
Metadata
Release files for cqi 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cqi-0.1.7.tar.gz | 14.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cqi-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.3 kB
Release files / cqi-0.1.7.tar.gz
| Download URL | cqi-0.1.7.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f09b9a0fb479ee859c4dd35b7ca74d3128c7b745e6b282b359c1cd4afe60dfc
|
|
BLAKE2b-256 checksum How to use checksums |
fc95a57def4427743fb97bff62212855f858499b849632f778f6e25ce09cc251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Release files / cqi-0.1.7-py3-none-any.whl
| Download URL | cqi-0.1.7-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f24caaae4011f2bc083518c99a83aae744d7773a9a702e9aad1d8e9f5f7ac1ce
|
|
BLAKE2b-256 checksum How to use checksums |
3c52f7f8cc13a386c80838cbcc276fde3d72c0e076d4e2cb898f578b1fb8fe32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|
Security for cqi 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.