Skip to main content

This is the Python package py-simple-search.

Project description

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

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)

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

py_simple_search-0.0.1a0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

py_simple_search-0.0.1a0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file py_simple_search-0.0.1a0.tar.gz.

File metadata

  • Download URL: py_simple_search-0.0.1a0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for py_simple_search-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 05caed9b681f1360f749f6ae3ce44b5963a4f886fbec6f052ffab17c8bcb9d0c
MD5 a9e58eb87519ad14a38bbcd86608bb52
BLAKE2b-256 dda36e2e38d461b0631a9faf82f9ea62891ec4db97c688a9dbf2e6ee10c87aa5

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_simple_search-0.0.1a0.tar.gz:

Publisher: deploy-to-pypi.yml on hktonylee/py-simple-search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_simple_search-0.0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for py_simple_search-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 3be25d6d16581bbbdb645c70fa02244ee31f62724cc1390ddf5b62b0d58f5116
MD5 0f048eb693feda7b5401d1aa662e342c
BLAKE2b-256 db7fc720f2d8a8e2f69f71c9507f94b5c57d05094b5f4e8338bf087dab05a1a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_simple_search-0.0.1a0-py3-none-any.whl:

Publisher: deploy-to-pypi.yml on hktonylee/py-simple-search

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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