A simple Python module that searches on DuckDuckGo.
Installation:
Duckpy can be installed using pip from PyPI or from GitHub
via PyPI using pip:
pip install -U duckpy
via GitHub using pip+git:
pip install -U git+https://github.com/AmanoTeam/duckpy
Usage:
To use duckpy is easy, but let's see some examples:
First example:
import duckpy
search = duckpy.search("test")
# Prints first result title
print(search["results"][0]["title"])
# Prints first result URL
print(search["results"][0]["url"])
# Prints first result description
print(search["results"][0]["description"])
The result will be like this:
Find online tests, practice test, and test creation software ...
https://www.test.com/
Online tests and testing for certification, practice tests, test making tools, medical testing and more.
Metadata
Release files for duckpy 1.2.1
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 | |
|---|---|---|---|---|
| duckpy-1.2.1.tar.gz | 1.9 kB | Without provenance | Details |
Release files / duckpy-1.2.1.tar.gz
| Download URL | duckpy-1.2.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90b82f4f37aeb25f4704ece7ab41ad2ebd243a34eb799d6f9639b4a9d9c61656
|
|
BLAKE2b-256 checksum How to use checksums |
b14a558094ef54ea31f6a649e280fa142bd02e9ae0d36cf19ff0c474e4264f50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2
|
Security for duckpy 1.2.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.