{"id":44714272,"url":"https://github.com/gussan-me/st_dataframe_paginator","last_synced_at":"2026-02-15T13:20:08.499Z","repository":{"id":300503865,"uuid":"1006339933","full_name":"gussan-me/st_dataframe_paginator","owner":"gussan-me","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-22T07:28:44.000Z","size":410,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-28T00:40:29.123Z","etag":null,"topics":["streamlit-component","streamlit-components"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/gussan-me.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-22T03:28:39.000Z","updated_at":"2025-06-23T09:48:21.000Z","dependencies_parsed_at":"2025-06-22T04:37:05.136Z","dependency_job_id":null,"html_url":"https://github.com/gussan-me/st_dataframe_paginator","commit_stats":null,"previous_names":["gussan-me/st_dataframe_paginator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gussan-me/st_dataframe_paginator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gussan-me%2Fst_dataframe_paginator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gussan-me%2Fst_dataframe_paginator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gussan-me%2Fst_dataframe_paginator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gussan-me%2Fst_dataframe_paginator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gussan-me","download_url":"https://codeload.github.com/gussan-me/st_dataframe_paginator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gussan-me%2Fst_dataframe_paginator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29479464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["streamlit-component","streamlit-components"],"created_at":"2026-02-15T13:20:04.772Z","updated_at":"2026-02-15T13:20:08.484Z","avatar_url":"https://github.com/gussan-me.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📄 Streamlit DataFrame Paginator\n\nA lightweight Streamlit component that displays a **paginated table** for large DataFrames.  \nThis helps keep your Streamlit apps responsive by showing the data in manageable pages.\n\n---\n\n## ✨ Features\n\n- 🔢 **Pagination**: Displays data with page navigation, improving usability for large DataFrames.\n- 🌍 **Multilingual Support**: You can fully customize all pagination labels to any language, including Japanese. For example:\n\n    ```python\n    # Japanese\n    labels = {\n        \"first\": \"最初\",\n        \"prev\": \"前へ\",\n        \"next\": \"次へ\",\n        \"last\": \"最後\",\n        \"displayed_record\": \"表示行数:\"\n    }\n    # English\n    labels={\n        \"first\": \"First\",\n        \"prev\": \"Previous\",\n        \"next\": \"Next\",\n        \"last\": \"Last\",\n    }\n    ```\n\n- 📊 **Column Sorting**: Users can click on any column header to sort the table by that column, toggling between ascending and descending order.\n- ↔️ **Horizontal Scrolling**: If the DataFrame contains many columns, horizontal scrolling is enabled, so you can easily view all data without layout issues.\n\n---\n## Installation\n```bash\npip install st_dataframe_paginator\n```\n## Usage\n```python\nimport streamlit as st\nfrom st_dataframe_paginator import st_dataframe_paginator\nimport pandas as pd\n\n# Example DataFrame\ndf = pd.DataFrame({\n    \"Name\": [\"Alice\", \"Bob\", \"Charlie\", \"David\", \"Eve\", \"Frank\", \"Grace\", \"Hank\"],\n    \"Score\": [85, 92, 88, 70, 95, 60, 75, 90]\n})\n\n# Use the paginator\nst_dataframe_paginator(\n    df,\n    page_size=3,\n    page_size_options=[3, 5, 10],\n    labels={\n        \"first\": \"⏮️ First\",\n        \"prev\": \"◀️ Previous\",\n        \"next\": \"Next ▶️\",\n        \"last\": \"Last ⏭️\",\n    },\n    key=\"st_paginator_1\"\n)\n```\n\n## Parameters\n| Parameter           | Type        | Default        | Description                                 |\n|---------------------|-------------|----------------|---------------------------------------------|\n| `data`                | DataFrame   | Required       | The DataFrame to paginate                   |\n| `page_size`         | int         | `10`           | Number of rows per page                     |\n| `page_size_options` | list[int]   | `[10, 20, 50]` | Dropdown options for page size              |\n| `labels`            | dict        | Optional       | Custom labels for navigation buttons        |\n| `key`               | str or int | Optional | a unique identifier used to distinguish widgets and avoid conflicts when multiple elements of the same type are present|\n\n\n## Screenshot\n\n![sample](sample.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgussan-me%2Fst_dataframe_paginator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgussan-me%2Fst_dataframe_paginator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgussan-me%2Fst_dataframe_paginator/lists"}