{"id":13532139,"url":"https://github.com/pyecharts/pyecharts-snapshot","last_synced_at":"2026-01-16T11:10:07.960Z","repository":{"id":38375413,"uuid":"100536335","full_name":"pyecharts/pyecharts-snapshot","owner":"pyecharts","description":"renders the output of pyecharts as png, jpeg, gif, svg, eps, pdf and raw base64","archived":false,"fork":false,"pushed_at":"2022-08-03T18:26:54.000Z","size":9116,"stargazers_count":180,"open_issues_count":1,"forks_count":39,"subscribers_count":8,"default_branch":"dev","last_synced_at":"2025-10-30T12:55:56.387Z","etag":null,"topics":["base64","chart","eps","gif","jpeg","pdf","png","svg"],"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/pyecharts.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-16T22:03:22.000Z","updated_at":"2025-10-24T00:22:51.000Z","dependencies_parsed_at":"2022-08-09T03:15:55.007Z","dependency_job_id":null,"html_url":"https://github.com/pyecharts/pyecharts-snapshot","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/pyecharts/pyecharts-snapshot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecharts%2Fpyecharts-snapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecharts%2Fpyecharts-snapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecharts%2Fpyecharts-snapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecharts%2Fpyecharts-snapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyecharts","download_url":"https://codeload.github.com/pyecharts/pyecharts-snapshot/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyecharts%2Fpyecharts-snapshot/sbom","scorecard":{"id":751325,"data":{"date":"2025-08-11","repo":{"name":"github.com/pyecharts/pyecharts-snapshot","commit":"ca916c0af23308c52eec56e75f88f23d98ff71f5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'dev'","Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: pipCommand not pinned by hash: lint.sh:1","Info:   0 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"56 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3c5c-7235-994j","Warn: Project is vulnerable to: GHSA-3f63-hfp8-52jq","Warn: Project is vulnerable to: PYSEC-2021-41 / GHSA-3wvg-mj6g-m9cv","Warn: Project is vulnerable to: PYSEC-2020-77 / GHSA-3xv8-3j54-hgrp","Warn: Project is vulnerable to: PYSEC-2020-80 / GHSA-43fq-w8qq-v88h","Warn: Project is vulnerable to: GHSA-44wm-f244-xhp3","Warn: Project is vulnerable to: GHSA-4fx9-vc88-q2xc","Warn: Project is vulnerable to: PYSEC-2021-35 / GHSA-57h3-9rgr-c24m","Warn: Project is vulnerable to: PYSEC-2020-172 / GHSA-5gm3-px64-rw72","Warn: Project is vulnerable to: PYSEC-2021-331 / GHSA-7534-mm45-c74v","Warn: Project is vulnerable to: PYSEC-2021-92 / GHSA-7r7m-5h27-29hp","Warn: Project is vulnerable to: PYSEC-2020-78 / GHSA-8843-m7mw-mxqm","Warn: Project is vulnerable to: PYSEC-2023-227 / GHSA-8ghj-p4vj-mr35","Warn: Project is vulnerable to: PYSEC-2014-87 / GHSA-8m9x-pxwq-j236","Warn: Project is vulnerable to: PYSEC-2022-10 / GHSA-8vj2-vxx3-667w","Warn: Project is vulnerable to: PYSEC-2021-36 / GHSA-8xjq-8fcg-g5hw","Warn: Project is vulnerable to: PYSEC-2016-6 / GHSA-8xjv-v9xq-m5h9","Warn: Project is vulnerable to: PYSEC-2021-42 / GHSA-95q3-8gr9-gm8w","Warn: Project is vulnerable to: PYSEC-2022-168 / GHSA-9j59-75qj-795w","Warn: Project is vulnerable to: PYSEC-2014-10 / GHSA-cfmr-38g9-f2h7","Warn: Project is vulnerable to: PYSEC-2020-76 / GHSA-cqhg-xjhh-p8hf","Warn: Project is vulnerable to: PYSEC-2021-40 / GHSA-f4w8-cv6p-x6r5","Warn: Project is vulnerable to: PYSEC-2021-69 / GHSA-f5g8-5qq7-938w","Warn: Project is vulnerable to: PYSEC-2021-139 / GHSA-g6rj-rv7j-xwp4","Warn: Project is vulnerable to: PYSEC-2015-16 / GHSA-h5rf-vgqx-wjv2","Warn: Project is vulnerable to: PYSEC-2016-5 / GHSA-hggx-3h72-49ww","Warn: Project is vulnerable to: PYSEC-2020-84 / GHSA-hj69-c76v-86wr","Warn: Project is vulnerable to: PYSEC-2016-7 / GHSA-hvr8-466p-75rh","Warn: Project is vulnerable to: PYSEC-2015-15 / GHSA-j6f7-g425-4gmx","Warn: Project is vulnerable to: GHSA-j7hp-h8jx-5ppr","Warn: Project is vulnerable to: PYSEC-2019-110 / GHSA-j7mj-748x-7p78","Warn: Project is vulnerable to: GHSA-jgpv-4h4c-xhw3","Warn: Project is vulnerable to: PYSEC-2022-42979 / GHSA-m2vv-5vj5-2hm7","Warn: Project is vulnerable to: PYSEC-2021-37 / GHSA-mvg9-xffr-p774","Warn: Project is vulnerable to: PYSEC-2020-83 / GHSA-p49h-hjvm-jg3h","Warn: Project is vulnerable to: PYSEC-2022-8 / GHSA-pw3c-h7wp-cvhx","Warn: Project is vulnerable to: PYSEC-2021-93 / GHSA-q5hq-fp76-qmrc","Warn: Project is vulnerable to: PYSEC-2020-82 / GHSA-r7rm-8j6h-r933","Warn: Project is vulnerable to: PYSEC-2014-23 / GHSA-r854-96gq-rfg3","Warn: Project is vulnerable to: PYSEC-2016-8 / GHSA-rwr3-c2q8-gm56","Warn: Project is vulnerable to: PYSEC-2020-81 / GHSA-vcqg-3p29-xw73","Warn: Project is vulnerable to: PYSEC-2020-79 / GHSA-vj42-xq3r-hr3r","Warn: Project is vulnerable to: PYSEC-2021-70 / GHSA-vqcj-wrf2-7v73","Warn: Project is vulnerable to: PYSEC-2016-9 / GHSA-w4vg-rf63-f3j3","Warn: Project is vulnerable to: PYSEC-2014-22 / GHSA-x895-2wrm-hvp7","Warn: Project is vulnerable to: PYSEC-2022-9 / GHSA-xrcv-f9gm-v42c","Warn: Project is vulnerable to: PYSEC-2021-137","Warn: Project is vulnerable to: PYSEC-2021-138","Warn: Project is vulnerable to: PYSEC-2021-317","Warn: Project is vulnerable to: PYSEC-2021-38","Warn: Project is vulnerable to: PYSEC-2021-39","Warn: Project is vulnerable to: PYSEC-2021-94","Warn: Project is vulnerable to: PYSEC-2023-175","Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T20:28:30.813Z","repository_id":38375413,"created_at":"2025-08-22T20:28:30.814Z","updated_at":"2025-08-22T20:28:30.814Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["base64","chart","eps","gif","jpeg","pdf","png","svg"],"created_at":"2024-08-01T07:01:08.496Z","updated_at":"2026-01-16T11:10:07.945Z","avatar_url":"https://github.com/pyecharts.png","language":"Python","funding_links":[],"categories":["Languages"],"sub_categories":["Python"],"readme":"================================================================================\npyecharts-snapshot\n================================================================================\n\n.. image:: https://api.travis-ci.org/pyecharts/pyecharts-snapshot.svg\n   :target: http://travis-ci.org/pyecharts/pyecharts-snapshot\n\n.. image:: https://codecov.io/github/pyecharts/pyecharts-snapshot/coverage.png\n   :target: https://codecov.io/github/pyecharts/pyecharts-snapshot\n.. image:: https://badge.fury.io/py/pyecharts-snapshot.svg\n   :target: https://pypi.org/project/pyecharts-snapshot\n\n.. image:: https://pepy.tech/badge/pyecharts-snapshot/month\n   :target: https://pepy.tech/project/pyecharts-snapshot/month\n\n.. image:: https://img.shields.io/github/stars/pyecharts/pyecharts-snapshot.svg?style=social\u0026maxAge=3600\u0026label=Star\n    :target: https://github.com/pyecharts/pyecharts-snapshot/stargazers\n\n.. image:: https://img.shields.io/static/v1?label=continuous%20templating\u0026message=%E6%A8%A1%E7%89%88%E6%9B%B4%E6%96%B0\u0026color=blue\u0026style=flat-square\n    :target: https://moban.readthedocs.io/en/latest/#at-scale-continous-templating-for-open-source-projects\n\n.. image:: https://img.shields.io/static/v1?label=coding%20style\u0026message=black\u0026color=black\u0026style=flat-square\n    :target: https://github.com/psf/black\n\n\nNews - 16.04.2019\n================================================================================\n\nSince 0.2.0, NO LONGER, phantomjs is required! NO LONGER, it supports python 2.7\n\nBUT, the capability to render pyecharts in a script has been merged into\npyecharts 1.0.0. And the dependency on phantomjs has been sprawn as:\n`snapshot-phantomjs \u003chttps://github.com/pyecharts/snapshot-phantomjs\u003e`_ .\n\nIf you love to use 'snapshot' command line, please continue to use this\nproject. \n\nIntroduction\n================================================================================\n\npyecharts-snapshot renders the output of pyecharts/echarts.js as a png, jpeg,\ngif, eps, svg image, raw base64 encoding or a pdf file at command line.\n\n\nUsage\n================================================================================\n\nGet png:\n\n.. code-block:: bash\n\n   $ snapshot render.html\n\nAnd you will get:\n\n.. image:: https://raw.githubusercontent.com/pyecharts/pyecharts-snapshot/master/images/demo.png\n   :width: 800px\n\nGet pdf:\n\n.. code-block:: bash\n\n   $ snapshot render.html pdf\n\nAnd you will get:\n\n.. image:: https://raw.githubusercontent.com/pyecharts/pyecharts-snapshot/master/images/demo_in_pdf.png\n   :target: https://raw.githubusercontent.com/pyecharts/pyecharts-snapshot/master/examples/grid.pdf\n   :width: 800px\n\nAnd here the code to `generate it \u003chttps://github.com/pyecharts/pyecharts-snapshot/blob/master/examples/grid.py\u003e`_\n\n\nGet svg:\n\n.. code-block:: bash\n\n   $ snapshot render.html svg\n\nPlease be aware that `render.html` should have configure echarts to do svg rendering. This library, being\nstupid, does not make canvas rendered image as svg rendered. Here is `an example svg file \u003chttps://github.com/pyecharts/pyecharts-snapshot/master/exampless/cang-zhou.svg\u003e`_.\n\n\nUsage details\n--------------------------------------------------------------------------------\n\nCommand line options::\n\n   $ snapshot output.html [png|jpeg|gif|svg|pdf] [delay] [pixel ratio]\n\nwhere:\n\n`delay` tells pyecharts-snapshot to take a snapshot after\nsome time measured in seconds. It is needed only when your snapshot is partial because the chart\nanimation takes long than 1.5 second(default).\n`pixel ratio` tells pyecharts-snapshot to use a different pixel ratio when generate\nthe image. It defaults to 2.\n\n\nProgrammatical usage is simple:\n\n.. code-block:: python\n\n   ...\n   somechart.render(path='cool_snapshot.png')  # delay=1, pixel_ratio=3) 1 second delay, 3 as pixel ratio\n\nwhere delay as an optional parameter can be given to specify `delay_in_seconds`.\n\nCoffee\n================================================================================\n\nPlease buy `me a coffee \u003chttp://pyecharts.org/#/zh-cn/donate\u003e`_ if you think this library helped.\n\n\nInstallation\n================================================================================\n\n\nYou can install pyecharts-snapshot via pip:\n\n.. code-block:: bash\n\n    $ pip install pyecharts-snapshot\n\n\nor clone it and install it:\n\n.. code-block:: bash\n\n    $ git clone https://github.com/pyecharts/pyecharts-snapshot.git\n    $ cd pyecharts-snapshot\n    $ python setup.py install\n\n\nAnd you need to do:\n\n.. code-block:: bash\n\n   $ pyppeteer-install\n\n.. note::\n\n   pyppeteer-install is recommended but optional. Your first ever run of\n   **snapshot** command will invoke pyppeteer-install. This command will\n   download `Chrominium \u003chttps://www.chromium.org\u003e`_,\n   `about 100MB \u003chttps://github.com/miyakogi/pyppeteer#usage\u003e`_\n\nTest status\n================================================================================\n\nFully tested on 3.6, 3.7 and 3.8-dev.\n\nConstraints\n================================================================================\n\nOnly one image at a time. No 3D image support\n\nDesign Considerations\n================================================================================\n\n#. Ghost.Py: very hard to install on my own. Dropped\n\n\nMaintenance Instructions\n================================================================================\n\n#. install pyecharts-snapshot\n#. make demo\n#. take screenshots of grid.pdf and snapshot.pdf in examples folder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyecharts%2Fpyecharts-snapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyecharts%2Fpyecharts-snapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyecharts%2Fpyecharts-snapshot/lists"}