ImageEngine
ImageEngine is a Python package that allows users to search and download images from multiple sources such as DuckDuckGo, Bing, and Google. With a simple interface and command-line tools, you can easily obtain images related to any search term.
Features
- Search DuckDuckGo: Download images using the DuckDuckGo search engine.
- Search Bing: Download images using the Bing search engine.
- Search Google, DuckDuckGo, and Bing: Download images from all three search engines with a single command.
Installation
To install the package, simply run:
pip install ImageEngine
Alternatively, you can clone the repository and install it locally:
git clone https://github.com/jaypunekar/ImageEngine.git
cd ImageEngine
pip install .
Usage
Command Line Interface (CLI)
After installing the package, you can use the following commands from your terminal:
-
Search and download images from DuckDuckGo:
# "cute puppies" is the search string and "puppy_images" is the directory where images will be stored search-ddg term="cute puppies" path="puppy_images" --max_images=10
-
Search and download images from Bing:
search-bing term="beautiful landscapes" path="landscapes" --max_images=20
-
Search and download images from Google, DuckDuckGo, and Bing:
search-web term="happy animals" path="animals" --max_images=30
Using Functions in Python Scripts
You can also import the functions directly in your Python scripts:
from ImageEngine import searchDDG
from ImageEngine import searchBing
from ImageEngine import searchGoogle
from ImageEngine import searchWeb
# Search images from DuckDuckGo
# "sunset" is the search string and "sunset_images" is the directory where images will be stored
searchDDG(term="sunsets", path="sunset_images", max_images=10)
# Search images from Bing
searchBing(term="mountain views", path="mountain_images", max_images=15)
# Search images from Google
searchGoogle(term="river views", path="river_images", max_images=15)
# Search images from all three engines
searchWeb(term="cute cats", path="cat_images", max_images=20)
Requirements
- Python 3.6 or higher
duckduckgo_searchfastaiicrawler- Other dependencies listed in
setup.py
Contributing
Contributions are welcome! Please fork the repository and submit a pull request to contribute.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Contact
For any inquiries or issues, please contact jay.punekar@icloud.com.
Metadata
Release files for ImageEngine 0.2.5
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 | |
|---|---|---|---|---|
| imageengine-0.2.5.tar.gz | 4.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ImageEngine-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / imageengine-0.2.5.tar.gz
| Download URL | imageengine-0.2.5.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
305c34c78f6909257d02917ddcef739739465c7185ab61b8bf6bf285f03c13e9
|
|
BLAKE2b-256 checksum How to use checksums |
d1166d84a8547a0a6664b0caa040a3ee452d6cf6a336581bf7926abe77604da4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / ImageEngine-0.2.5-py3-none-any.whl
| Download URL | ImageEngine-0.2.5-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75b3e571b1d140b23aebc7767b1b7ad9d4b9e6044a66bd586c1d5bbb676c2005
|
|
BLAKE2b-256 checksum How to use checksums |
579da7825e9bf55c825f6a964ad76866dba0fed534259f26e6264a9b86b8ec07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for ImageEngine 0.2.5
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.