Skip to main content

QwantAI

QwantAI is a Python library that provides an easy-to-use interface for interacting with the Qwant search engine. You can use it to perform searches and retrieve results either as a single text or streamed data in real time via WebSocket.


Features

  • Perform searches on Qwant using a simple Python function.
  • Retrieve results in your preferred language.
  • Choose between streamed real-time output or a single consolidated response.
  • Lightweight and easy to integrate into any project.

Installation

Install QwantAI using pip (once packaged):

pip install QwantAI

If you're developing locally, clone the repository and install it directly:

git clone https://github.com/ramona-flower/QwantAI.git
cd QwantAI
pip install .

Usage Import the package and start searching:

Non-Streamed Example

  • Retrieve all results as a single text response.
import QwantAI

response = QwantAI.search("Python programming", language="en_US", streamed=False)
print(response)

Streamed Example

  • Retrieve results in real-time as they are generated.
import QwantAI

QwantAI.search("Python programming", language="en_US", streamed=True)

Parameters

search(query, language="en_US", streamed=False)

Parameter Type Description Default
query str The search query string. Required
language str The language for the search (e.g., en_US). en_US
streamed bool Whether to stream results or fetch them all at once. False

Requirements

Python 3.6+
requests (for HTTP requests)
websocket-client (for WebSocket communication)

Install dependencies with:

pip install -r requirements.txt

Disclaimer

This project is provided for educational and informational purposes only. The creator of this package is not responsible for any misuse or damages caused by using this tool. Users are responsible for ensuring their usage complies with applicable laws and regulations.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

Fork the repository. Create a feature branch: git checkout -b feature-name

Commit your changes: git commit -m 'Add new feature'

Push to the branch: git push origin feature-name Open a pull request.

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for more information.

Acknowledgments

Special thanks to the Qwant search engine for providing a robust API.

Metadata

Release files for QwantAI 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for QwantAI 1.0.1
File Size Uploaded Provenance
QwantAI-1.0.1.tar.gz 4.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for QwantAI 1.0.1
File Interpreter ABI Platform
QwantAI-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.0 kB

Release files / QwantAI-1.0.1.tar.gz

Download URL QwantAI-1.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64569416163c384b49751f35f06d9bc020f6e126df01d0a14f5dfabe8cef5bca
BLAKE2b-256 checksum
How to use checksums
21ad82908c401be6575847a7ed208c9e3aed57070d5071020f572a0aeaee2c7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / QwantAI-1.0.1-py3-none-any.whl

Download URL QwantAI-1.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5572f7fe03c07e2d262785c273e6553295c5d9b7ed1512ad6099b227a3b188f7
BLAKE2b-256 checksum
How to use checksums
dd198e0404647e869b84f49c0b6bf974a13710a249d48d83458c0a95fcfbc115
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for QwantAI 1.0.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page