{"id":34501403,"url":"https://github.com/jconleyscales/two-dimensional-q","last_synced_at":"2026-06-08T07:32:22.594Z","repository":{"id":329847601,"uuid":"1120795245","full_name":"jconleyscales/two-dimensional-q","owner":"jconleyscales","description":"Fixed-capacity circular queue backed by a 2D list with wrap-around indexing (Python).","archived":false,"fork":false,"pushed_at":"2025-12-22T01:25:42.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T11:47:40.794Z","etag":null,"topics":["circular-buffer","data-structures","python","queue"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jconleyscales.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-22T00:30:45.000Z","updated_at":"2025-12-22T01:30:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jconleyscales/two-dimensional-q","commit_stats":null,"previous_names":["jconleyscales/two-dimensional-q"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jconleyscales/two-dimensional-q","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jconleyscales%2Ftwo-dimensional-q","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jconleyscales%2Ftwo-dimensional-q/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jconleyscales%2Ftwo-dimensional-q/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jconleyscales%2Ftwo-dimensional-q/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jconleyscales","download_url":"https://codeload.github.com/jconleyscales/two-dimensional-q/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jconleyscales%2Ftwo-dimensional-q/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34053435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["circular-buffer","data-structures","python","queue"],"created_at":"2025-12-24T02:01:37.499Z","updated_at":"2026-06-08T07:32:22.559Z","avatar_url":"https://github.com/jconleyscales.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TwoDimensionalQ (2D Circular Queue) — Python\n\nA fixed-capacity queue backed by a **2D list** that uses **wrap-around indexing** (circular buffer behavior) to avoid shifting elements.\n\n## Features\n- Fixed capacity with usage tracking\n- Row-major wrap-around indexing across a 2D backing store\n- Core operations:\n  - `enqueue(item)` → `True` if added, `False` if full\n  - `dequeue()` → removed item, or `None` if empty\n  - `peek()` → front item without removing it, or `None` if empty\n  - `list_queue()` → items in queue order\n\n## How to Run\n1. Make sure you have Python 3 installed.\n2. Run the file:\n\n```bash```\npython two_dimensional_q.py\n## Example Usage\n\n```python\nfrom two_dimensional_q import TwoDimensionalQ\n\nq = TwoDimensionalQ(2)  # capacity = 4\nq.enqueue(\"A\")\nq.enqueue(\"B\")\n\nprint(q.peek())        # A\nprint(q.dequeue())     # A\nprint(q.list_queue())  # ['B']\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjconleyscales%2Ftwo-dimensional-q","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjconleyscales%2Ftwo-dimensional-q","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjconleyscales%2Ftwo-dimensional-q/lists"}