Skip to main content

PyPI version Code style: black Python 3.6+ supported

ddg3

A Python library for querying the Duck Duck Go API.

Copyright Michael Stephens me@mikej.st, released under a BSD-style license.

Updated for Python3 by Jacobi Petrucciani jacobi@mimirhq.com

Source: https://github.com/jpetrucciani/python-duckduckgo

Installation

To install run

pip install ddg3

or

python setup.py install

Usage

import ddg3 
r = ddg3.query('Duck Duck Go') 
r.type                         # 'answer' 
r.results[0].text              # 'Official site' 

r.results[0].url               # '<http://duckduckgo.com/>' 
r.abstract.url                 # '<http://en.wikipedia.org/wiki/Duck_Duck_Go>' 
r.abstract.source              # 'Wikipedia'


r = ddg3.query('Python') 
r.type                         # 'disambiguation' 

r.related[6].text              # 'Python (programming language), a computer programming language' 
r.related[6].url               # '<http://duckduckgo.com/Python_(programming_language)>'

r = ddg3.query('1 + 1') 
r.type                         # 'nothing' 

r.answer.text                  # '1 + 1 = 2' 
r.answer.type                  # 'calc'

Metadata

Release files for ddg3 0.6.8

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

Source distribution (sdist)

Source distribution for ddg3 0.6.8
File Size Uploaded Provenance Actions
ddg3-0.6.8.tar.gz 5.0 kB Without provenance Details for ddg3-0.6.8.tar.gz

Built distribution (wheel)

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

Total release size: 9.9 kB

Release files / ddg3-0.6.8.tar.gz

Download URL ddg3-0.6.8.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a91ecec252296cbe0e37d9366b0b4ad2d89d0b425d56efa0e1f1c583aa6e4dd
BLAKE2b-256 checksum
How to use checksums
b6abc3eba78bc73477a5ca85aaf6d4999f0960437069d43a14ab4121eb633af3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Release files / ddg3-0.6.8-py3-none-any.whl

Download URL ddg3-0.6.8-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f152fa0d7903506e16cf9cfe5b5f092244af520a4b55cab49d365f8109cc9d09
BLAKE2b-256 checksum
How to use checksums
e3cffbdb53b36891ddb6669ccbf17e8c26e82eefb9726e5a0ed23dbb50b6449c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Security for ddg3 0.6.8

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.

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