Skip to main content

pyMOA 🌐

pyMOA is a free and open source Python library that implements the MOA metasearch engine as a clean and easy-to-use client for Python. It allows you to seamlessly integrate web search into your Python programs.

The project is currently in alpha development, so there is no pre-built package.

🔍 Key Features

  • Privacy First
    No user data is stored or tracked during searches.

  • Metasearch Support
    Utilizes MOA under the hood to fetch and combine results from multiple search engines simultaneously.

  • Ad-free Search Results
    Clean, clutter-free search responses.

  • Open-source under GPL‑3.0 License
    Use, modify, and distribute freely under GPL‑3.0 terms.

🛠️ Build & Install from Source

  1. Clone the repository:
git clone https://github.com/moa-engine/pyMOA.git
cd pyMOA
  1. (Optional but recommended) Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Build the package:
python -m build
  1. Install the wheel package:
pip install dist/pyMOA-0.1.0-py3-none-any.whl

Replace the filename if the version changes.


✅ Usage Example

from pyMOA import search

results = search(
    q="privacy search engine",
    lang="en",
    country="us",
    engine=None,         # Optional: specify engines like ["google", "duckduckgo"]
    page=1,
    safesearch=1,        # 0: off, 1: moderate, 2: strict
    time_range=None,     # One of ["day", "week", "month", "year"]
    size=5               # Max number of results per engine
)

print(results)

Let me know if you also want to add error handling or CLI usage examples.

🤝 Contributing

  • Open an Issue to report bugs or request new features
  • Submit a Pull Request to add functionality, improve tests, or update documentation

📄 License

Distributed under the GPL‑3.0 License. You are free to use, modify, and redistribute this library, provided modified source is also shared.

Release files for moa-engine 0.1.0

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

Source distribution (sdist)

Source distribution for moa-engine 0.1.0
File Size Uploaded
moa_engine-0.1.0.tar.gz 22.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for moa-engine 0.1.0
File Interpreter ABI Platform
moa_engine-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.4 kB

Release files / moa_engine-0.1.0.tar.gz

Download URL moa_engine-0.1.0.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c4044615e66fc1ce678c85526edb5c99b16bc958cb7600c2ede902b5c4a44f2c
BLAKE2b-256 checksum
How to use checksums
3a8f8acf97ba3935be31f0623cd0656ccb5de111b3550bb41b342a9ac046d56c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / moa_engine-0.1.0-py3-none-any.whl

Download URL moa_engine-0.1.0-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
692b704da835475bb3da6d78845b8a8b8b19137299ac00bb8b9fc4ca6012c27e
BLAKE2b-256 checksum
How to use checksums
00fa2e7313b83da9454f237a42931817ab51bebebd9d5b19b8d308c6cd229517
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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