Metadata-Version: 2.4
Name: py-simple-search
Version: 0.0.1a0
Summary: This is the Python package py-simple-search.
Author-email: Tony Lee <iamtonylee@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/hktonylee/py-simple-search
Project-URL: Repository, https://github.com/hktonylee/py-simple-search
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"

# Welcome

This is the Python package py-simple-search. This package provides a simple search functionality for Python. It also provides a CLI tool to search things (TBD).

# Usage

```python
from py_simple_search import breadth_first_search
from itertools import product
import string


SEARCH_CHARS = string.ascii_uppercase + string.ascii_lowercase + string.digits + '+_.'


def validate(x):
    return get('https://www.__some_example_website__.com/?q=' + x).status_code == 200


def expand_search_space(x, validate_result):
    if not validate_result:
        yield from product([x], SEARCH_CHARS)


for result in breadth_first_search(validate, expand_search_space, multithreaded_workers=10):
    print(result)

```
