{"id":18264444,"url":"https://github.com/pylons/paginate_sqlalchemy","last_synced_at":"2025-07-22T19:03:34.742Z","repository":{"id":5820945,"uuid":"7036241","full_name":"Pylons/paginate_sqlalchemy","owner":"Pylons","description":"Extension to the Python 'paginate' module to work with SQLAlchemy objects","archived":false,"fork":false,"pushed_at":"2020-03-23T11:55:54.000Z","size":16,"stargazers_count":43,"open_issues_count":1,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-24T09:16:31.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pylons.png","metadata":{"files":{"readme":"README","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-06T13:40:55.000Z","updated_at":"2025-03-27T21:26:14.000Z","dependencies_parsed_at":"2022-08-25T23:00:57.154Z","dependency_job_id":null,"html_url":"https://github.com/Pylons/paginate_sqlalchemy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pylons/paginate_sqlalchemy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fpaginate_sqlalchemy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fpaginate_sqlalchemy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fpaginate_sqlalchemy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fpaginate_sqlalchemy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pylons","download_url":"https://codeload.github.com/Pylons/paginate_sqlalchemy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pylons%2Fpaginate_sqlalchemy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266553957,"owners_count":23947240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:14:40.618Z","updated_at":"2025-07-22T19:03:33.916Z","avatar_url":"https://github.com/Pylons.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"What is pagination?\n---------------------\nThis module helps dividing large lists of items into pages. The user is shown one page at a time and\ncan navigate to other pages. Imagine you are offering a company phonebook and let the user search\nthe entries. If the search result contains 23 entries but you may want to display no more than 10\nentries at once. The first page contains entries 1-10, the second 11-20 and the third 21-23. See the\ndocumentation of the \"Page\" class for more information. \n\nWhat does this module do?\n---------------------------\nThe *paginate* module supports list-like objects only. If you want to paginate through SQLAlchemy\nobjects like Select or ORM-mapped objects then use this module. It provides an SqlalchemyOrmPage\nclass for that purpose.\n\nHow do I use this module with ORM-mapped objects?\n---------------------------------------------------\nSee the documentation for *paginate.Page* about how to use pagination. Instead of *paginate.Page*\nyou just use *paginate_sqlalchemy.SqlalchemyOrmPage *with the same parameters as *paginate.Page*.\nAssumed that have an ORM class called *Cars*. You would create a query in your SQLAlchemy session::\n\n    cars_query = session.query(Cars)\n\nFinally you create a page from this query::\n\n    page = paginate_sqlalchemy.SqlalchemyOrmPage(cars_query, page=5)\n\nThis *page* object works just like any *paginate.Page* object.\n\nYou can find a complete example in the tests/test_paginate_sqlalchemy.py file of this Python module.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpylons%2Fpaginate_sqlalchemy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpylons%2Fpaginate_sqlalchemy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpylons%2Fpaginate_sqlalchemy/lists"}