simple-terminal-banner 0.0.6__py3-none-any.whl → 0.1.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,7 +48,8 @@ class Banner:
48
48
  for row in self._rows:
49
49
  print(row)
50
50
  else:
51
- print(self._line(self.message))
51
+ if self.message:
52
+ print(self._line(self.message))
52
53
  print(self._create_padding_bottom())
53
54
  print(self._separator())
54
55
  if self.margin_bottom > 0: print(self._create_margin_bottom())
@@ -1,5 +1,10 @@
1
1
  from simple_terminal_banner import Banner, BannerThemes
2
2
 
3
+
4
+ b = Banner()
5
+ b.title = "Hello, World!"
6
+ b.display()
7
+
3
8
  # create a simple banner showing the easiest possible
4
9
  # way to have a quick and easy banner message displayed
5
10
  banner = Banner("Hello, World!")
@@ -0,0 +1,140 @@
1
+ Metadata-Version: 2.2
2
+ Name: simple_terminal_banner
3
+ Version: 0.1.0
4
+ Summary: A simple Python utility to display banners in the terminal
5
+ Author-email: "Stephen J. Graham" <stephen@seesawweb.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/charlbury/simple_terminal_banner
8
+ Project-URL: Repository, https://github.com/charlbury/simple_terminal_banner
9
+ Project-URL: Issues, https://github.com/charlbury/simple_terminal_banner/issues
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.7
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+
17
+ # Simple Terminal Banner
18
+
19
+ ![Build Status](https://github.com/charlbury/simple_terminal_banner/actions/workflows/python-package.yml/badge.svg)
20
+
21
+ ```
22
+ ** Simple Terminal Banner **************
23
+ * *
24
+ * Hello, World! *
25
+ * *
26
+ ****************************************
27
+ ```
28
+
29
+ Display a simple terminal banner.
30
+
31
+ ## Features
32
+
33
+ * Banner Title
34
+ * Themes
35
+ * Padding
36
+ * Margin
37
+ * Configurable border symbols
38
+ * Configurable background symbols
39
+
40
+ ## Example
41
+
42
+ ```python
43
+ from simple_terminal_banner import Banner
44
+
45
+ banner = Banner("Hello, World!")
46
+ banner.display()
47
+ ```
48
+
49
+ Produces:
50
+
51
+ ```
52
+ ****************************************
53
+ * *
54
+ * Hello, World! *
55
+ * *
56
+ ****************************************
57
+ ```
58
+
59
+ ## Titles
60
+
61
+ ```
62
+ banner.title = "Banner Example"
63
+ ```
64
+ Produces:
65
+ ```
66
+ ** Banner Example **********************
67
+ * *
68
+ * Hello, World! *
69
+ * *
70
+ ****************************************
71
+ ```
72
+
73
+ ## Padding
74
+
75
+ ### Title Padding
76
+
77
+ ```
78
+ banner.title_padding = 4
79
+ ```
80
+
81
+ Produces:
82
+
83
+ ```
84
+ ** Banner Example ****************
85
+ * *
86
+ * Hello, World! *
87
+ * *
88
+ ****************************************
89
+ ```
90
+
91
+ ### Content Padding
92
+
93
+ ```
94
+ banner.padding_top = 4
95
+ ```
96
+
97
+ Produces:
98
+
99
+ ```
100
+ ** Banner Example ****************
101
+ * *
102
+ * *
103
+ * *
104
+ * *
105
+ * Hello, World! *
106
+ * *
107
+ ****************************************
108
+ ```
109
+
110
+ ## Configurable Symbols
111
+
112
+ ### Border Symbols
113
+
114
+ ```
115
+ banner.border_symbol = "="
116
+ ```
117
+
118
+ Produces:
119
+
120
+ ```
121
+ == Banner Example ================
122
+ = =
123
+ = =
124
+ = =
125
+ = =
126
+ = Hello, World! =
127
+ = =
128
+ ========================================
129
+ ```
130
+
131
+ ### Background Symbols
132
+
133
+ ```
134
+ banner.background_symbol = "."
135
+ ```
136
+
137
+ Produces:
138
+
139
+ ```
140
+ ```
@@ -0,0 +1,8 @@
1
+ simple_terminal_banner/__init__.py,sha256=0cfNpfswT8T3vW4vLg8xTX3VaYMLUshLevSRd3ogUFQ,40
2
+ simple_terminal_banner/banner.py,sha256=sWHEsXC8MNM1HgtYpjMfAatyZ8moTmhYYWbLertoHB4,7304
3
+ simple_terminal_banner/examples.py,sha256=zQ3gxlMCGmXO6TFm9BsrO_W3A14sGjKCexna1HVoSMA,2655
4
+ simple_terminal_banner-0.1.0.dist-info/LICENSE,sha256=zK9pX0Av9b6gWXqXxUlfXuHZv8EyFyZJJwRh-lwlJIM,1071
5
+ simple_terminal_banner-0.1.0.dist-info/METADATA,sha256=2838ggR_XxPyBPco9QGfv578Ke3cHDUS8BJ3mW4NaOk,3005
6
+ simple_terminal_banner-0.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
7
+ simple_terminal_banner-0.1.0.dist-info/top_level.txt,sha256=AUlEwZU8ureUzl5SFLPaAYNd4wbOwYgAl4nErx2rjKs,23
8
+ simple_terminal_banner-0.1.0.dist-info/RECORD,,
@@ -1,54 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: simple_terminal_banner
3
- Version: 0.0.6
4
- Summary: A simple Python utility to display banners in the terminal
5
- Author-email: "Stephen J. Graham" <stephen@seesawweb.com>
6
- License: MIT
7
- Project-URL: Homepage, https://github.com/charlbury/simple_terminal_banner
8
- Project-URL: Repository, https://github.com/charlbury/simple_terminal_banner
9
- Project-URL: Issues, https://github.com/charlbury/simple_terminal_banner/issues
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: License :: OSI Approved :: MIT License
12
- Classifier: Operating System :: OS Independent
13
- Requires-Python: >=3.7
14
- Description-Content-Type: text/markdown
15
- License-File: LICENSE
16
-
17
- # Simple Terminal Banner
18
-
19
- ```
20
- ** Simple Terminal Banner **************
21
- * *
22
- * Hello, World! *
23
- * *
24
- ****************************************
25
- ```
26
-
27
- Display a simple terminal banner.
28
-
29
- ## Features
30
-
31
- * Banner Title
32
- * Themes
33
- * Padding
34
- * Configurable border symbols
35
- * Configurable background symbols
36
-
37
- ## Example
38
-
39
- ```python
40
- from banner import Banner
41
-
42
- banner = Banner("Hello, World!")
43
- banner.display()
44
- ```
45
-
46
- Produces:
47
-
48
- ```
49
- ****************************************
50
- * *
51
- * Hello, World! *
52
- * *
53
- ****************************************
54
- ```
@@ -1,8 +0,0 @@
1
- simple_terminal_banner/__init__.py,sha256=0cfNpfswT8T3vW4vLg8xTX3VaYMLUshLevSRd3ogUFQ,40
2
- simple_terminal_banner/banner.py,sha256=vmjpqRe66wANTNlOyb4gm9JIei52MvYwGMacjycyul0,7271
3
- simple_terminal_banner/examples.py,sha256=EmLE5DVBc0poF8hdNMSuefw-aWtNKdQ8v8w9QTbCGAA,2602
4
- simple_terminal_banner-0.0.6.dist-info/LICENSE,sha256=zK9pX0Av9b6gWXqXxUlfXuHZv8EyFyZJJwRh-lwlJIM,1071
5
- simple_terminal_banner-0.0.6.dist-info/METADATA,sha256=ag8bbg-Y0xy_9nOeioIHcppKgUgNx42nRYhAiagnB_s,1384
6
- simple_terminal_banner-0.0.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
7
- simple_terminal_banner-0.0.6.dist-info/top_level.txt,sha256=AUlEwZU8ureUzl5SFLPaAYNd4wbOwYgAl4nErx2rjKs,23
8
- simple_terminal_banner-0.0.6.dist-info/RECORD,,