New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

paginate-whoosh

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paginate-whoosh

Extension to the paginate module to support Whoosh

  • 0.3
  • PyPI
  • Socket score

Maintainers
1

paginate_whoosh

This module is an extension to the paginate module. It divides up search results obtained with Whoosh.

Usage

from paginate_whoosh import WhooshPage

qp = QueryParser("text", myindex.schema)
q = qp.parse("a query")

with myindex.searcher() as searcher:
    page = WhooshPage(
        searcher.search(q, limit=None), # limit=None is required!
        page=1, items_per_page=10)
    # Now continue as you are used from the paginate module.
    # Iterate over page to obtain the Whoosh result dictionary

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc