{"id":48514167,"url":"https://github.com/nirum/sketchplot","last_synced_at":"2026-04-07T18:30:38.223Z","repository":{"id":342487010,"uuid":"1174146147","full_name":"nirum/sketchplot","owner":"nirum","description":"A small, zero-dependency Python plotting library for the terminal","archived":false,"fork":false,"pushed_at":"2026-03-06T06:09:58.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-06T10:41:01.271Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nirum.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":"2026-03-06T05:44:29.000Z","updated_at":"2026-03-06T06:10:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nirum/sketchplot","commit_stats":null,"previous_names":["nirum/sparkplot","nirum/chalk"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nirum/sketchplot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirum%2Fsketchplot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirum%2Fsketchplot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirum%2Fsketchplot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirum%2Fsketchplot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nirum","download_url":"https://codeload.github.com/nirum/sketchplot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nirum%2Fsketchplot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31524524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"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":[],"created_at":"2026-04-07T18:30:35.882Z","updated_at":"2026-04-07T18:30:38.215Z","avatar_url":"https://github.com/nirum.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sketchplot\n\nA small Python library for rendering plots as plain text to stdout. No dependencies beyond the Python standard library.\n\n## Install\n\n```\npip install sketchplot\n```\n\n## Usage\n\n```python\nimport sketchplot as sp\n\n# Line plot — y only (x inferred as 0..n-1)\nsp.line([1, 4, 2, 8, 5, 7])\n\n# Line plot — explicit x and y\nsp.line([0, 1, 2, 3], [10, 20, 15, 25], title=\"Requests/sec\")\n\n# Histogram\nsp.hist([1.2, 1.3, 2.1, 2.4, 2.5, 3.0, 3.1], bins=5, title=\"Latency\")\n\n# Return string instead of printing\noutput = sp.line([1, 4, 2, 8], render=\"string\")\n\n# ASCII fallback\nsp.line([1, 4, 2, 8], charset=\"ascii\")\n```\n\n## Sample Output\n\n### Line plot\n\n```\n  25┤                                                           ─\n    │                                                         ─/\n    │                                                        /\n    │                                                      ─/\n    │                                                     /\n    │                                                   ─/\n    │                    ─\\                            /\n    │                  ─/  ──\\                       ─/\n    │                 /       ─\\                   ─/\n17.5┤               ─/          ──\\               /\n    │              /               ──\\          ─/\n    │            ─/                   ─\\       /\n    │           /                       ──\\  ─/\n    │         ─/                           ─/\n    │       ─/\n    │      /\n    │    ─/\n    │   /\n    │ ─/\n  10┤/\n    └┬──────────────┬──────────────┬─────────────┬──────────────┬\n     0            0.75            1.5          2.25             3\n```\n\n### Histogram\n\n```\n    Latency\n2┤██       ██ ██\n │██       ██ ██\n │██       ██ ██\n │██       ██ ██\n │██       ██ ██\n │██       ██ ██\n │██       ██ ██\n │██       ██ ██\n │██       ██ ██\n1┤██       ██ ██\n │██    ██ ██ ██\n │██    ██ ██ ██\n │██    ██ ██ ██\n │██    ██ ██ ██\n │██    ██ ██ ██\n │██    ██ ██ ██\n │██    ██ ██ ██\n │██    ██ ██ ██\n │██    ██ ██ ██\n0┤██    ██ ██ ██\n └──────────────\n  1.2  1.96  2.7\n```\n\n## Parameters\n\n| Parameter | Type | Default | Notes |\n|---|---|---|---|\n| `width` | `int` | `60` | Canvas width in characters |\n| `height` | `int` | `20` | Canvas height in characters |\n| `title` | `str \\| None` | `None` | Printed above the plot |\n| `charset` | `\"unicode\" \\| \"ascii\"` | `\"unicode\"` | Character set for drawing |\n| `render` | `\"print\" \\| \"string\"` | `\"print\"` | Output mode |\n| `bins` | `int` | `10` | Number of bins (hist only) |\n\n## Development\n\n```bash\nuv sync\nuv run pytest\nuv tool run ty check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirum%2Fsketchplot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnirum%2Fsketchplot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnirum%2Fsketchplot/lists"}