Skip to main content

Simple, type-safe access to the ChatNoir search API.

Project description

PyPi CI Code coverage Python Issues Commit activity Downloads License

🔍 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")

top10_results = results[:10]
print(top10_results)

result_1234 = results[1234]
print(result_1234)

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_api examples
pylint -E chatnoir_api examples
CHATNOIR_API_KEY="<API_KEY>" pytest chatnoir_api examples

Please also add tests for your newly developed code.

Build wheels

Wheels for this package can be built by:

python -m build

License

This repository is released under the MIT license.

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

chatnoir-api-0.1.12.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

chatnoir_api-0.1.12-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file chatnoir-api-0.1.12.tar.gz.

File metadata

  • Download URL: chatnoir-api-0.1.12.tar.gz
  • Upload date:
  • Size: 13.5 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

Hashes for chatnoir-api-0.1.12.tar.gz
Algorithm Hash digest
SHA256 d48672f92ac80d68ad23873e7d79c0cf62bd5a7fa886edc29497e7b04e8293a0
MD5 db5e5749d1206b5df913bd4dcae56232
BLAKE2b-256 c3eca5d6450a7fb1e95f1524358883d8136175e5fba954060ac46ef03a128076

See more details on using hashes here.

File details

Details for the file chatnoir_api-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: chatnoir_api-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 18.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

Hashes for chatnoir_api-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 a54cb09dc9c8876a7153ecc6eed8b8700fe266f2f946ff9c7decf5602e27851a
MD5 4f23b3df281bbfb9cb9617ec64adb37b
BLAKE2b-256 c08d0f313a8284e9e47bececa0d19430894a5655a6550520c53955aeb6e17f1f

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