Skip to main content

Pagify

Welcome to the Pagify documentation! This package provides an easy-to-use solution for handling pagination in Python applications, supporting a wide range of projects from basic scripts to complex frameworks.


Introduction

The Pagify package is a versatile and efficient tool for implementing pagination in Python applications. It supports multiple pagination types to cater to different needs, making it suitable for use with plain Python, Django, Flask, or any other Python-based frameworks.

Key Features

  • Framework-Agnostic: Compatible with raw Python applications, Django projects, and more.
  • Multiple Pagination Methods: Supports offset, cursor, and page number pagination for diverse use cases.
  • Detailed Metadata: Provides comprehensive pagination details such as next, previous, and current pages.
  • Easy-to-Use: Straightforward API for rapid integration.
  • Customizable: Easily extendable for advanced use cases.

Installation

To install the Pagify package, run the following command:

Install the Pagify Package

Install Pagify from PyPI using pip:

pip install pagify

Usage

For complete guides, detailed examples, and advanced use cases, refer to the usage documentation. This section covers everything from basic usage to customization for different pagination strategies.

Quick Start

Here's a brief overview to get you started quickly:

  1. Import and Setup: Import the appropriate pagination method from pagify.adapters.
  2. Apply Pagination: Use the method on your dataset or query results.
  3. Format Responses: Utilize the provided functions for standardized JSON response formatting.

Example:

from pagify.adapters.paginate import paginate_with_page_number

data = [{'id': i} for i in range(1, 101)]  # Sample dataset
result = paginate_with_page_number(data, page=2, page_size=10)
print(result)

API Reference

For a detailed breakdown of classes, methods, and available parameters, please refer to the API reference. This will guide you through the full potential of Pagify and provide insights into all features.

  • Pagination Adapters: Overview of adapters for various pagination types.
  • Helper Functions: Details of utility functions for formatting responses.
  • Error Handling: Learn how to manage common issues when implementing pagination.

Contributing

We welcome contributions to Pagify! If you'd like to contribute, follow these steps:

  1. Fork the Repository: Create a copy of the project on your GitHub account.
  2. Make Changes: Implement your improvements or new features.
  3. Submit a Pull Request: Share your work with the community.

For detailed contribution guidelines, see the CONTRIBUTING.md file in the repository.


License

This project is licensed under the MIT License. For more information, see the LICENSE file. This permits free use, modification, and distribution while maintaining the package's open-source nature.

Metadata

Release files for pagify 1.1.1

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

Source distribution (sdist)

Source distribution for pagify 1.1.1
File Size Uploaded Provenance Actions
pagify-1.1.1.tar.gz 8.3 kB Without provenance Details for pagify-1.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 16.3 kB

Release files / pagify-1.1.1.tar.gz

Download URL pagify-1.1.1.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e000a2163dbd6db4aafd425ec8e6ae674b7629b03bed3bb9c5bf31ea421bfa64
BLAKE2b-256 checksum
How to use checksums
4236cb631060dc5081536006f042ff463d7d99e4decd989b8102ae3171ff2cc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Release files / pagify-1.1.1-py3-none-any.whl

Download URL pagify-1.1.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1bc620b0800b4f171a7274967847a82138f7dc6a124314a0e5fddfb9b45ebbc1
BLAKE2b-256 checksum
How to use checksums
30de5931f99b78a8dd387ceda7817a47f7904193edc1c4bef77c7bc7beb73a35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Security for pagify 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files No provenance

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