{"id":34086952,"url":"https://github.com/xpinked/memiter","last_synced_at":"2026-04-06T09:02:23.306Z","repository":{"id":245619171,"uuid":"818770939","full_name":"xpinked/memiter","owner":"xpinked","description":"memiter is a Python library that enhances the functionality of generators, making pagination and data access simpler and more intuitive.","archived":false,"fork":false,"pushed_at":"2024-07-19T13:51:19.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-16T16:28:14.454Z","etag":null,"topics":["generator","generator-python","generators","iterator","iterators","pagination","python","python3","software"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/memiter/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xpinked.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}},"created_at":"2024-06-22T20:18:00.000Z","updated_at":"2025-11-24T22:50:14.000Z","dependencies_parsed_at":"2024-06-23T03:02:51.011Z","dependency_job_id":"2cfcdbe6-6137-407f-a5d4-983010ec6e96","html_url":"https://github.com/xpinked/memiter","commit_stats":null,"previous_names":["xpinked/memiter"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/xpinked/memiter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpinked%2Fmemiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpinked%2Fmemiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpinked%2Fmemiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpinked%2Fmemiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xpinked","download_url":"https://codeload.github.com/xpinked/memiter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xpinked%2Fmemiter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31466228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T08:36:52.050Z","status":"ssl_error","status_checked_at":"2026-04-06T08:36:51.267Z","response_time":112,"last_error":"SSL_read: 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":["generator","generator-python","generators","iterator","iterators","pagination","python","python3","software"],"created_at":"2025-12-14T13:35:12.748Z","updated_at":"2026-04-06T09:02:23.298Z","avatar_url":"https://github.com/xpinked.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memiter\n\n`memiter` is a Python library that enhances the functionality of generators, making pagination and data access simpler and more intuitive.\n\nIt allows users to limit the number of elements generated, set the current page for pagination, and access the data that has been generated as many times as needed.\n\nAdditionally, it keeps the original generator, allowing the data to be generated again in a different configuration.\n\n## Features\n\n- **Pagination**: Easily paginate through large datasets by setting limits and pages.\n- **Data Access**: Access the generated data multiple times without re-running the generator.\n- **Flexibility**: Keep the original generator for re-generation of data with different parameters.\n\n## Installation\n\nRequirements:\n\n- Python 3.8+\n\nTo install `memiter`, simply use pip:\n\n```bash\npip install memiter\n```\n\n# Quick Start\n\nHere's a quick example to get you started:\n\n```python\nfrom memiter import memiter\n\n# Create a memiter instance from a range generator\nmy_gen = memiter(range(100)).limit(5).page(2)\n\n# Generate and access the data\nprint(list(my_gen))\n# Output: [5, 6, 7, 8, 9]\n\n# Access the data that has been generated\nprint(my_gen.data)\n# Output: [5, 6, 7, 8, 9]\n```\n\n# Usage\n\n## Creating a Memiter Instance\n\nYou can create a memiter instance from any iterable:\n\n```python\nfrom memiter import memiter\n\nmy_gen = memiter(range(100))\n```\n\nHurray! Your memiter instance is now ready to be used!\n\nBy default, the memiter instance will generate all the data from the original generator.\n\nBut if you want your can enhance the functionality of your generator by using the following methods:\n\n## Pagination\n\nLimit the number of elements and set the current page:\n\n- limit - Set the number of elements to generate.\n- page - Set the current page for pagination.\n\n```python\nmy_gen.limit(5).page(2)\n```\n\n## Iterating Over Data\n\nlike any other generator, you can iterate over the data generated by the memiter instance:\n\n```python\n\nfor data in my_gen:\n    print(data)\n\n```\n\n## Accessing Data\n\nmemiter allows you to access the data that has been generated multiple times without re-running the generator.\n\nYou can access the data that has been generated using the data attribute:\n\n```python\nprint(my_gen.data)\n```\n\n## License\n\nmemiter is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpinked%2Fmemiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxpinked%2Fmemiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxpinked%2Fmemiter/lists"}