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

python-paginator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-paginator

Python object paginator

  • 0.0.2
  • PyPI
  • Socket score

Maintainers
1

Example of usage:

from paginator import core

object_list = [obj_1, obj_2, obj_n...]

paginator = core.paginate(object_list, page_limit=50, start_page=0)

Get current page response:

paginator.response

When calling next or previous page you can access new page data with paginator.response

Get next page:

paginator.get_next()

Get previous page:

paginator.get_previous()

Get response of requested page number:

paginator.get_page_response(page_number=0)

Total pages:

paginator.total_pages

Count objects:

paginator.total

Iterating over paginator pages

for page in paginator:
...

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