Simple, type-safe access to the ChatNoir search API.
Project description
🔍 chatnoir-api
Simple, type-safe access to the ChatNoir search API.
Installation
pip install chatnoir-api
Usage
from chatnoir.api.v1 import search
api_key: str = "<API_KEY>"
results = search(api_key, "python library")
top_result = next(iter(results))
print(top_result)
Citation
If you use this package, please cite the paper from the ChatNoir authors. You can use the following BibTeX information for citation:
@InProceedings{bevendorff:2018,
address = {Berlin Heidelberg New York},
author = {Janek Bevendorff and Benno Stein and Matthias Hagen and Martin Potthast},
booktitle = {Advances in Information Retrieval. 40th European Conference on IR Research (ECIR 2018)},
editor = {Leif Azzopardi and Allan Hanbury and Gabriella Pasi and Benjamin Piwowarski},
ids = {potthast:2018c,stein:2018c},
month = mar,
publisher = {Springer},
series = {Lecture Notes in Computer Science},
site = {Grenoble, France},
title = {{Elastic ChatNoir: Search Engine for the ClueWeb and the Common Crawl}},
year = 2018
}
Development
To build and develop this package you need to install the build
package:
pip install build
Installation
Install package dependencies:
pip install -e .
Testing
Install test dependencies:
pip install -e .[test]
Verify your changes against the test suite to verify.
flake8 chatnoir examples
pylint -E chatnoir examples
pytest chatnoir examples
Please also add tests for the axioms or integrations you've added.
Build wheel
A wheel for this package can be built by:
python -m build
License
This repository is released under the MIT license.
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
File details
Details for the file chatnoir-api-0.1.3.tar.gz
.
File metadata
- Download URL: chatnoir-api-0.1.3.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3cb1981bce1aef67594e074b9c90a032ade738dbd44d19b9861c6cb16b1272f |
|
MD5 | b5b2dd18648d4343df8dd39f9ededf2a |
|
BLAKE2b-256 | 00ed1ce605adddd812f60ba164e0990ec5e018bcf14b59b54c9ba610fc0bf227 |
File details
Details for the file chatnoir_api-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: chatnoir_api-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14e09e7bc64cde2b5c09b17a84f194ef59c72d3b99dab91970c7d7e58306c054 |
|
MD5 | 880a55d42305e46bd951a3c2e4127142 |
|
BLAKE2b-256 | 20c080a3302ef0b8843c3173380f15139bd11d7b265c47b2a79faf9d6c20ca9f |