{"id":22013497,"url":"https://github.com/sky-joker/wrapdraw","last_synced_at":"2025-05-06T21:45:13.205Z","repository":{"id":196155241,"uuid":"299959704","full_name":"sky-joker/wrapdraw","owner":"sky-joker","description":"This tool automatically renders and download a network diagram from drawthe","archived":false,"fork":false,"pushed_at":"2020-10-03T12:25:48.000Z","size":18,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T03:14:28.332Z","etag":null,"topics":["diagram","drawthe","network","python"],"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/sky-joker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-09-30T15:10:54.000Z","updated_at":"2023-12-12T02:34:12.000Z","dependencies_parsed_at":"2023-09-21T21:32:49.244Z","dependency_job_id":null,"html_url":"https://github.com/sky-joker/wrapdraw","commit_stats":null,"previous_names":["sky-joker/wrapdraw"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-joker%2Fwrapdraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-joker%2Fwrapdraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-joker%2Fwrapdraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sky-joker%2Fwrapdraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sky-joker","download_url":"https://codeload.github.com/sky-joker/wrapdraw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252776450,"owners_count":21802460,"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":["diagram","drawthe","network","python"],"created_at":"2024-11-30T03:20:30.393Z","updated_at":"2025-05-06T21:45:13.182Z","avatar_url":"https://github.com/sky-joker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wrapdraw\n\n[![](https://img.shields.io/github/license/sky-joker/wrapdraw?style=for-the-badge)](https://github.com/sky-joker/wrapdraw/blob/master/LICENSE.txt)\n[![](https://img.shields.io/docker/image-size/skyjokerxx/wrapdraw?sort=date\u0026style=for-the-badge)](https://hub.docker.com/r/skyjokerxx/wrapdraw)\n\nThis tool can automatically render and download a network diagram from [drawthe](https://github.com/cidrblock/drawthe.net).\n\n## Requirements\n\n* Python \u003e= 3.6\n\n## Usage\n\nYou can do to start the wrapdraw container the following procedure.\n\n**If using docker**\n\n```\n# docker run -itd --name wrapdraw --rm skyjokerxx/wrapdraw:latest\n# docker ps\nCONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS              PORTS               NAMES\nbd550e0bb9e6        skyjokerxx/wrapdraw:latest   \"/bin/sh -c 'pytho...\"   38 seconds ago      Up 37 seconds                           wrapdraw\n```\n\n**If using podman**\n\n```\n# podman run -itd --name wrapdraw --rm skyjokerxx/wrapdraw:latest\n# podman ps\nCONTAINER ID  IMAGE                                 COMMAND               CREATED         STATUS             PORTS  NAMES\n3138419da952  docker.io/skyjokerxx/wrapdraw:latest  /bin/sh -c python...  30 seconds ago  Up 29 seconds ago         wrapdraw\n```\n\n**The example of when using Ansible**\n\nPlease see the following sample.\n\n[https://github.com/sky-joker/wrapdraw/tree/master/sample/ansible](https://github.com/sky-joker/wrapdraw/tree/master/sample/ansible)\n\n## Environment variable\n\nThe following environment variables are available to set when starting a container.\n\n|        env         |                                 default                                 |              description              |\n|--------------------|-------------------------------------------------------------------------|---------------------------------------|\n| URL                | http://go.drawthe.net/                                                  | URL of drawthe to use                 |\n| UPLOAD_FOLDER      | upload                                                                  | A save path of a YAML file uploaded   |\n| SAVE_FOLDER        | save                                                                    | A save path of an NW diagram rendered |\n| DRIVER_PATH        | /usr/local/lib/python3.6/site-packages/chromedriver_binary/chromedriver | A save path of chromedriver           |\n| CHROME_WINDOW_SIZE | 1920,1080                                                               | Window size of Google Chrome          |\n| LISTEN_PORT        | 8080                                                                    | The app listen port                   |\n\nIf you want to use locally constructed drawthe, set the URL environment the following procedure.\n\n```\n# docker run -itd --name wrapdraw --rm -e URL='http://172.17.0.3' skyjokerxx/wrapdraw:latest\n```\n\nIf you felt the NW diagram small, you can change its size the following procedure.\n\n```\n# docker run -itd --name wrapdraw --rm -e CHROME_WINDOW_SIZE='2560,2048' skyjokerxx/wrapdraw:latest\n```\n\n## License\n\n[MIT](https://github.com/sky-joker/wrapdraw/blob/master/LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-joker%2Fwrapdraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsky-joker%2Fwrapdraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsky-joker%2Fwrapdraw/lists"}