{"id":17603022,"url":"https://github.com/yjg30737/svghelper","last_synced_at":"2026-02-17T10:02:58.690Z","repository":{"id":57679228,"uuid":"482745015","full_name":"yjg30737/svghelper","owner":"yjg30737","description":"Set svg color with Python","archived":false,"fork":false,"pushed_at":"2022-05-24T23:39:33.000Z","size":25,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-06T22:34:37.153Z","etag":null,"topics":["elementtree","python","python-svg","python3","python37","svg","svg-color","xml"],"latest_commit_sha":null,"homepage":"","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/yjg30737.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}},"created_at":"2022-04-18T06:49:07.000Z","updated_at":"2023-07-25T13:31:38.000Z","dependencies_parsed_at":"2022-09-04T02:11:33.231Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/svghelper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/svghelper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fsvghelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fsvghelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fsvghelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fsvghelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/svghelper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fsvghelper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29539973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T08:11:05.436Z","status":"ssl_error","status_checked_at":"2026-02-17T08:09:38.860Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["elementtree","python","python-svg","python3","python37","svg","svg-color","xml"],"created_at":"2024-10-22T13:37:30.406Z","updated_at":"2026-02-17T10:02:58.626Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svghelper\nPython SVG helper. set/replace svg color, etc.\n\n## Install\n`python -m pip install svghelper`\n\n## Method Overview\n* `set_color(input_file: str, output_file: str, color: str)` - set the color of a svg file. `input_file` is source, `output_file` is result. `color` argument should be 6 digits string color like `#FF0000`.\n* `set_files_color(input_dir: str, output_dir: str, output_color: str)` - set the color of svg files in the `input_dir`.\n* `replace_color(input_file: str, output_file: str, input_color: str, output_color: str)` - replace the color.\n* `replace_files_color(input_dir: str, output_dir: str, input_color: str, output_color: str)` - replace svg files' color.\n* `set_comp_color(input_file: str, output_file: str)` - set complementary color.\n* `set_files_comp_color(input_dir: str, output_dir: str)` - set svg files' complementary color\n\n## Included Package\n* \u003ca href=\"https://github.com/yjg30737/colorgetter.git\"\u003ecolorgetter\u003c/a\u003e\n\n## Example\n### Code Sample\n```python\nimport svghelper\n\n# Copy capture.svg as capture2.svg and change the major color of it to #FF0000(red)\nsvghelper.set_color('capture.svg', 'capture2.svg', '#FF0000')\n```\n\n### Result\n#### Before\n![image](https://user-images.githubusercontent.com/55078043/163768522-e7f39eeb-8c6d-4fe8-a3ee-45283a3f6b2b.png)\n#### After\n![image](https://user-images.githubusercontent.com/55078043/163768599-55d32215-77dc-4759-8e72-a679730d3434.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fsvghelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fsvghelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fsvghelper/lists"}