Skip to main content

A simple library for searching the web and using internet search engines.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moa_engine-0.1.0.tar.gz (22.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moa_engine-0.1.0-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file moa_engine-0.1.0.tar.gz.

File metadata

  • Download URL: moa_engine-0.1.0.tar.gz
  • Upload date:
  • Size: 22.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for moa_engine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c4044615e66fc1ce678c85526edb5c99b16bc958cb7600c2ede902b5c4a44f2c
MD5 7b3c4f76007ffa1bad4ecc8100a89613
BLAKE2b-256 3a8f8acf97ba3935be31f0623cd0656ccb5de111b3550bb41b342a9ac046d56c

See more details on using hashes here.

File details

Details for the file moa_engine-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: moa_engine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for moa_engine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 692b704da835475bb3da6d78845b8a8b8b19137299ac00bb8b9fc4ca6012c27e
MD5 9f5e69fe6af3de1aa746d9ae565b2585
BLAKE2b-256 00fa2e7313b83da9454f237a42931817ab51bebebd9d5b19b8d308c6cd229517

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page