Skip to main content

stacksearch 🔎

Code style: black PyPI PyPI - Python Version PyPI - License Documentation Status PythonCI

NOTE: STACKSEARCH IS NO LONGER ACTIVELY MAINTAINED. There will still be the occasional bug fixes and updates, but not as much.

StackSearch is a python module that provides a way to search StackExchange sites such as StackOverflow.

Installation

You know the drill

$ pip install stacksearch

Usage

CLI

$ stacksearch "This is the query"

or

$ python3 -m stacksearch "This is the query"

Python API

>>> from stacksearch import sync_search
>>> sync_search("This is the query")

or the asynchronous version

>>> import asyncio
>>> from stacksearch import search
>>> async def main():
...    await search("This is the query")

>>> asyncio.run(main())

Have fun!

Features

The benefits of this module as opposed to the other StackOverflow-searching modules is that this module provides the following:

  • A markdown reverser engine to return useful and beautiful answers
  • The ability to return a dictionary of ALL the search results found, not just the first result
  • The ability to return results from all StackExchange sites
  • A beautiful command-line interface for humans via argparse and Rich
  • An optional asynchronous Python API
  • The ability to crank out raw JSON data to use
  • Fully type hinted

Usage Examples

  • For creating a text editor extension built on this package

  • For searching StackOverflow and/or other StackExchange websites without leaving the Terminal (for those Vim people)

  • For getting lots of answers from all StackExchange sites you know

License

MIT

Please feel free to contribute!

Links 📎

Release files for stacksearch 2

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

Source distribution (sdist)

Source distribution for stacksearch 2
File Size Uploaded
stacksearch-2.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stacksearch 2
File Interpreter ABI Platform
stacksearch-2-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / stacksearch-2.tar.gz

Download URL stacksearch-2.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0b27c64485effeccd65b7f17e55c372ff1460eee1c8cd772421f93c83a79082b
BLAKE2b-256 checksum
How to use checksums
7217d1dedc15d772556ebd02dce7ff7598820c714b6bf333aa1359029ba9bd1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.6.13 Darwin/20.3.0

Release files / stacksearch-2-py3-none-any.whl

Download URL stacksearch-2-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
426c12648a322f3500dd5ed75386227f684065dff11560483c7e52c11d7b4773
BLAKE2b-256 checksum
How to use checksums
8d28957cb6817bc5bb5d5c706033e004a62bf5603c9b04391763a78811f4d3c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.6.13 Darwin/20.3.0

Release history Release notifications | RSS feed

This release

2 This release

2 release files

1.5

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3

2 release files

1.2.18

2 release files

1.2.13

2 release files

1.2.11

2 release files

1.2.10

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

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