{"id":18900016,"url":"https://github.com/likema/pygalgen","last_synced_at":"2025-04-15T02:35:30.058Z","repository":{"id":143436684,"uuid":"206243549","full_name":"likema/pygalgen","owner":"likema","description":"A tool for generating SVG chart by YAML or JSON.","archived":false,"fork":false,"pushed_at":"2019-12-10T06:41:04.000Z","size":25,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T14:21:53.978Z","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/likema.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}},"created_at":"2019-09-04T06:03:53.000Z","updated_at":"2023-03-30T01:04:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c341f878-0227-4798-8461-3506d5e6c0c0","html_url":"https://github.com/likema/pygalgen","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likema%2Fpygalgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likema%2Fpygalgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likema%2Fpygalgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/likema%2Fpygalgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/likema","download_url":"https://codeload.github.com/likema/pygalgen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248994928,"owners_count":21195471,"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","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-08T08:48:47.215Z","updated_at":"2025-04-15T02:35:30.041Z","avatar_url":"https://github.com/likema.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pygal generation tool\n\nA tool for generating SVG or PNG chart by YAML or JSON.\n\n## Prerequisites\n\nPython 3\n\n```bash\npip install pyyaml pygal cairosvg\n```\n\n## Usage\n\n```\nusage: pygalgen [-h] [--list-styles] [-t {svg,png,html}] [-j JS] [-s STYLE]\n                [-o OUTPUT]\n                [yaml]\n\npositional arguments:\n  yaml                  YAML or JSON config, default STDIN\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --list-styles         List all available styles.\n  -t {svg,png,html}, --type {svg,png,html}\n                        Output type, default output file extension or svg if\n                        not specified output\n  -j JS, --js JS        Javascript file, effective when type is PNG\n  -c CONFIG, --config CONFIG\n                        Config block in YAML or JSON\n  -s STYLE, --style STYLE\n                        Style name, override style name only when trailing\n                        with a \"!\", override entire style when trailing with\n                        two \"!\"\n  -o OUTPUT, --output OUTPUT\n                        Output SVG or PNG file, default STDOUT\n```\n\n## Sample YAML\n\n```yaml\ntype: Line\ntitle: Browser usage evolution\nx: [2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012]\ny: [5, 10, 15, 20, 30, 40, 50, 60, 70, 80, 90, 100]\nseries:\n  - [Firefox, ~, ~, 0, 16.6, 25, 31, 36.4, 45.5, 46.3, 42.8, 37.1]\n  - [Chrome, ~, ~, ~, ~, ~, ~, 0, 3.9, 10.8, 23.8, 35.3]\n  - [IE, 85.8, 84.6, 84.7, 74.5, 66, 58.6, 54.7, 44.8, 36.2, 26.6, 20.1]\n  - [Others, 14.2, 15.4, 15.3, 8.9, 9, 10.4, 8.9, 5.8, 6.7, 6.8, 7.5]\n```\n\nSee more:\n\n* [Simple style sample](test.yaml)\n* [Style config sample](test_style.yaml)\n* [Simple series sample](test_series.yaml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikema%2Fpygalgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flikema%2Fpygalgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flikema%2Fpygalgen/lists"}