{"id":14065139,"url":"https://github.com/BrettVerney/bannerMaker","last_synced_at":"2025-07-29T20:31:10.933Z","repository":{"id":112729476,"uuid":"362278632","full_name":"BrettVerney/bannerMaker","owner":"BrettVerney","description":"Create tidy text based banners for CLI based systems, servers and appliances.","archived":false,"fork":false,"pushed_at":"2023-09-22T06:30:24.000Z","size":57,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-13T07:08:17.000Z","etag":null,"topics":["aruba","banner","banner-generator","cisco","cli"],"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/BrettVerney.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-04-27T23:22:54.000Z","updated_at":"2023-08-19T09:05:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"a055e050-bbeb-4e81-89e5-6751e3b77826","html_url":"https://github.com/BrettVerney/bannerMaker","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/BrettVerney%2FbannerMaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrettVerney%2FbannerMaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrettVerney%2FbannerMaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrettVerney%2FbannerMaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrettVerney","download_url":"https://codeload.github.com/BrettVerney/bannerMaker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046087,"owners_count":17861092,"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":["aruba","banner","banner-generator","cisco","cli"],"created_at":"2024-08-13T07:04:19.572Z","updated_at":"2024-12-04T04:30:47.060Z","avatar_url":"https://github.com/BrettVerney.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"[![published](https://static.production.devnetcloud.com/codeexchange/assets/images/devnet-published.svg)](https://developer.cisco.com/codeexchange/github/repo/wifiwizardofoz/bannerMaker)\n# bannerMaker\nCreate tidy text based banners for CLI based systems, servers and appliances.\n\n**Author:** Brett Verney\u003c/br\u003e\n**Version:** v1.1 | 22-09-2023\n\nAs a Network Engineer I feel I have wasted far too many hours trying to centre text while creating Message of the Day and Authentication Failure banners for CLI based network infrastructure i.e. Cisco and Aruba.\n\nThis tool takes away that pain.\n\nReally though, it takes one or more paragraphs of text and centres it between a box depicted by asterisks. Nothing more, nothing less.\n\nIt also preserves blank lines which other tools don't without great difficulty.\n\n## Requirements\n\n- Python 3+\n- Python Libraries\n  - parawrap\n\n## Basic Script Usage\n\n```python bannerMaker.py \u003cinput_file\u003e```\u003cbr\u003e\u003cbr\u003e \nWhere **\u003cinput_file\u003e** is a text file containing one or more paragraphs of text.\n\nThe resulting banner will be output to **banner.txt**\n\n## Example\n\nA file named **input.txt** contains the following text:\u003cbr\u003e\n\n![bannerMaker input example1](https://github.com/wifiwizardofoz/bannerMaker/blob/main/input_example1.png)\u003cbr\u003e\n\nExecuting the script and specifying the **input.txt** file as an argument:\n\n```python bannerMaker.py input.txt```\n\nCreates a file named **banner.txt** containing the following:\u003cbr\u003e\n\n![bannerMaker output example1](https://github.com/wifiwizardofoz/bannerMaker/blob/main/output_example1.png)\n\nAnother example:\u003cbr\u003e\n\n![bannerMaker output example2](https://github.com/wifiwizardofoz/bannerMaker/blob/main/output_example2.png)\n\nThe whitespace is preserved by utilising 'space' characters instead of tabs so that the output can copied and pasted directly to the CLI or config file as is.\n\n## Customisation\n\nThe script uses box width and text padding values that are considered safe for most terminal CLI appliances by default. These can be modified within the script itself. It is best to use even integers:\n```\nbox_width = int(76)\npadding = int(4)\n```\nYou can also modify the heading at the top of the banner:\n```\nheading = ('WARNING')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBrettVerney%2FbannerMaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBrettVerney%2FbannerMaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBrettVerney%2FbannerMaker/lists"}