text-console 2.0.7__tar.gz → 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,284 @@
1
+ Copyright (c) 2024-2025 Ircama, EUPL-1.2
2
+
3
+ Corresponding SPDX licence: European Union Public License 1.2
4
+
5
+ Licence ID: EUPL-1.2
6
+
7
+ See also:
8
+ https://opensource.org/licenses/EUPL-1.2
9
+ https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
10
+
11
+ European Union Public Licence
12
+ V. 1.2
13
+
14
+ EUPL © the European Union 2007, 2016
15
+
16
+ This European Union Public Licence (the ‘EUPL’) applies to the Work (as
17
+ defined below) which is provided under the terms of this Licence. Any use of
18
+ the Work, other than as authorised under this Licence is prohibited (to the
19
+ extent such use is covered by a right of the copyright holder of the Work).
20
+
21
+ The Work is provided under the terms of this Licence when the Licensor (as
22
+ defined below) has placed the following notice immediately following the
23
+ copyright notice for the Work: “Licensed under the EUPL”, or has expressed by
24
+ any other means his willingness to license under the EUPL.
25
+
26
+ 1. Definitions
27
+
28
+ In this Licence, the following terms have the following meaning:
29
+ — ‘The Licence’: this Licence.
30
+ — ‘The Original Work’: the work or software distributed or communicated by the
31
+ ‘Licensor under this Licence, available as Source Code and also as
32
+ ‘Executable Code as the case may be.
33
+ — ‘Derivative Works’: the works or software that could be created by the
34
+ ‘Licensee, based upon the Original Work or modifications thereof. This
35
+ ‘Licence does not define the extent of modification or dependence on the
36
+ ‘Original Work required in order to classify a work as a Derivative Work;
37
+ ‘this extent is determined by copyright law applicable in the country
38
+ ‘mentioned in Article 15.
39
+ — ‘The Work’: the Original Work or its Derivative Works.
40
+ — ‘The Source Code’: the human-readable form of the Work which is the most
41
+ convenient for people to study and modify.
42
+
43
+ — ‘The Executable Code’: any code which has generally been compiled and which
44
+ is meant to be interpreted by a computer as a program.
45
+ — ‘The Licensor’: the natural or legal person that distributes or communicates
46
+ the Work under the Licence.
47
+ — ‘Contributor(s)’: any natural or legal person who modifies the Work under
48
+ the Licence, or otherwise contributes to the creation of a Derivative Work.
49
+ — ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
50
+ the Work under the terms of the Licence.
51
+ — ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
52
+ renting, distributing, communicating, transmitting, or otherwise making
53
+ available, online or offline, copies of the Work or providing access to its
54
+ essential functionalities at the disposal of any other natural or legal
55
+ person.
56
+
57
+ 2. Scope of the rights granted by the Licence
58
+
59
+ The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
60
+ sublicensable licence to do the following, for the duration of copyright
61
+ vested in the Original Work:
62
+
63
+ — use the Work in any circumstance and for all usage,
64
+ — reproduce the Work,
65
+ — modify the Work, and make Derivative Works based upon the Work,
66
+ — communicate to the public, including the right to make available or display
67
+ the Work or copies thereof to the public and perform publicly, as the case
68
+ may be, the Work,
69
+ — distribute the Work or copies thereof,
70
+ — lend and rent the Work or copies thereof,
71
+ — sublicense rights in the Work or copies thereof.
72
+
73
+ Those rights can be exercised on any media, supports and formats, whether now
74
+ known or later invented, as far as the applicable law permits so.
75
+
76
+ In the countries where moral rights apply, the Licensor waives his right to
77
+ exercise his moral right to the extent allowed by law in order to make
78
+ effective the licence of the economic rights here above listed.
79
+
80
+ The Licensor grants to the Licensee royalty-free, non-exclusive usage rights
81
+ to any patents held by the Licensor, to the extent necessary to make use of
82
+ the rights granted on the Work under this Licence.
83
+
84
+ 3. Communication of the Source Code
85
+
86
+ The Licensor may provide the Work either in its Source Code form, or as
87
+ Executable Code. If the Work is provided as Executable Code, the Licensor
88
+ provides in addition a machine-readable copy of the Source Code of the Work
89
+ along with each copy of the Work that the Licensor distributes or indicates,
90
+ in a notice following the copyright notice attached to the Work, a repository
91
+ where the Source Code is easily and freely accessible for as long as the
92
+ Licensor continues to distribute or communicate the Work.
93
+
94
+ 4. Limitations on copyright
95
+
96
+ Nothing in this Licence is intended to deprive the Licensee of the benefits
97
+ from any exception or limitation to the exclusive rights of the rights owners
98
+ in the Work, of the exhaustion of those rights or of other applicable
99
+ limitations thereto.
100
+
101
+ 5. Obligations of the Licensee
102
+
103
+ The grant of the rights mentioned above is subject to some restrictions and
104
+ obligations imposed on the Licensee. Those obligations are the following:
105
+
106
+ Attribution right: The Licensee shall keep intact all copyright, patent or
107
+ trademarks notices and all notices that refer to the Licence and to the
108
+ disclaimer of warranties. The Licensee must include a copy of such notices and
109
+ a copy of the Licence with every copy of the Work he/she distributes or
110
+ communicates. The Licensee must cause any Derivative Work to carry prominent
111
+ notices stating that the Work has been modified and the date of modification.
112
+
113
+ Copyleft clause: If the Licensee distributes or communicates copies of the
114
+ Original Works or Derivative Works, this Distribution or Communication will be
115
+ done under the terms of this Licence or of a later version of this Licence
116
+ unless the Original Work is expressly distributed only under this version of
117
+ the Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
118
+ (becoming Licensor) cannot offer or impose any additional terms or conditions
119
+ on the Work or Derivative Work that alter or restrict the terms of the
120
+ Licence.
121
+
122
+ Compatibility clause: If the Licensee Distributes or Communicates Derivative
123
+ Works or copies thereof based upon both the Work and another work licensed
124
+ under a Compatible Licence, this Distribution or Communication can be done
125
+ under the terms of this Compatible Licence. For the sake of this clause,
126
+ ‘Compatible Licence’ refers to the licences listed in the appendix attached to
127
+ this Licence. Should the Licensee's obligations under the Compatible Licence
128
+ conflict with his/her obligations under this Licence, the obligations of the
129
+ Compatible Licence shall prevail.
130
+
131
+ Provision of Source Code: When distributing or communicating copies of the
132
+ Work, the Licensee will provide a machine-readable copy of the Source Code or
133
+ indicate a repository where this Source will be easily and freely available
134
+ for as long as the Licensee continues to distribute or communicate the Work.
135
+
136
+ Legal Protection: This Licence does not grant permission to use the trade
137
+ names, trademarks, service marks, or names of the Licensor, except as required
138
+ for reasonable and customary use in describing the origin of the Work and
139
+ reproducing the content of the copyright notice.
140
+
141
+ 6. Chain of Authorship
142
+
143
+ The original Licensor warrants that the copyright in the Original Work granted
144
+ hereunder is owned by him/her or licensed to him/her and that he/she has the
145
+ power and authority to grant the Licence.
146
+
147
+ Each Contributor warrants that the copyright in the modifications he/she
148
+ brings to the Work are owned by him/her or licensed to him/her and that he/she
149
+ has the power and authority to grant the Licence.
150
+
151
+ Each time You accept the Licence, the original Licensor and subsequent
152
+ Contributors grant You a licence to their contributions to the Work, under the
153
+ terms of this Licence.
154
+
155
+ 7. Disclaimer of Warranty
156
+
157
+ The Work is a work in progress, which is continuously improved by numerous
158
+ Contributors. It is not a finished work and may therefore contain defects or
159
+ ‘bugs’ inherent to this type of development.
160
+
161
+ For the above reason, the Work is provided under the Licence on an ‘as is’
162
+ basis and without warranties of any kind concerning the Work, including
163
+ without limitation merchantability, fitness for a particular purpose, absence
164
+ of defects or errors, accuracy, non-infringement of intellectual property
165
+ rights other than copyright as stated in Article 6 of this Licence.
166
+
167
+ This disclaimer of warranty is an essential part of the Licence and a
168
+ condition for the grant of any rights to the Work.
169
+
170
+ 8. Disclaimer of Liability
171
+
172
+ Except in the cases of wilful misconduct or damages directly caused to natural
173
+ persons, the Licensor will in no event be liable for any direct or indirect,
174
+ material or moral, damages of any kind, arising out of the Licence or of the
175
+ use of the Work, including without limitation, damages for loss of goodwill,
176
+ work stoppage, computer failure or malfunction, loss of data or any commercial
177
+ damage, even if the Licensor has been advised of the possibility of such
178
+ damage. However, the Licensor will be liable under statutory product liability
179
+ laws as far such laws apply to the Work.
180
+
181
+ 9. Additional agreements
182
+
183
+ While distributing the Work, You may choose to conclude an additional
184
+ agreement, defining obligations or services consistent with this Licence.
185
+ However, if accepting obligations, You may act only on your own behalf and on
186
+ your sole responsibility, not on behalf of the original Licensor or any other
187
+ Contributor, and only if You agree to indemnify, defend, and hold each
188
+ Contributor harmless for any liability incurred by, or claims asserted against
189
+ such Contributor by the fact You have accepted any warranty or additional
190
+ liability.
191
+
192
+ 10. Acceptance of the Licence
193
+
194
+ The provisions of this Licence can be accepted by clicking on an icon ‘I
195
+ agree’ placed under the bottom of a window displaying the text of this Licence
196
+ or by affirming consent in any other similar way, in accordance with the rules
197
+ of applicable law. Clicking on that icon indicates your clear and irrevocable
198
+ acceptance of this Licence and all of its terms and conditions.
199
+
200
+ Similarly, you irrevocably accept this Licence and all of its terms and
201
+ conditions by exercising any rights granted to You by Article 2 of this
202
+ Licence, such as the use of the Work, the creation by You of a Derivative Work
203
+ or the Distribution or Communication by You of the Work or copies thereof.
204
+
205
+ 11. Information to the public
206
+
207
+ In case of any Distribution or Communication of the Work by means of
208
+ electronic communication by You (for example, by offering to download the Work
209
+ from a remote location) the distribution channel or media (for example, a
210
+ website) must at least provide to the public the information requested by the
211
+ applicable law regarding the Licensor, the Licence and the way it may be
212
+ accessible, concluded, stored and reproduced by the Licensee.
213
+
214
+ 12. Termination of the Licence
215
+
216
+ The Licence and the rights granted hereunder will terminate automatically upon
217
+ any breach by the Licensee of the terms of the Licence. Such a termination
218
+ will not terminate the licences of any person who has received the Work from
219
+ the Licensee under the Licence, provided such persons remain in full
220
+ compliance with the Licence.
221
+
222
+ 13. Miscellaneous
223
+
224
+ Without prejudice of Article 9 above, the Licence represents the complete
225
+ agreement between the Parties as to the Work.
226
+
227
+ If any provision of the Licence is invalid or unenforceable under applicable
228
+ law, this will not affect the validity or enforceability of the Licence as a
229
+ whole. Such provision will be construed or reformed so as necessary to make it
230
+ valid and enforceable.
231
+
232
+ The European Commission may publish other linguistic versions or new versions
233
+ of this Licence or updated versions of the Appendix, so far this is required
234
+ and reasonable, without reducing the scope of the rights granted by the
235
+ Licence. New versions of the Licence will be published with a unique version
236
+ number.
237
+
238
+ All linguistic versions of this Licence, approved by the European Commission,
239
+ have identical value. Parties can take advantage of the linguistic version of
240
+ their choice.
241
+
242
+ 14. Jurisdiction
243
+
244
+ Without prejudice to specific agreement between parties,
245
+ — any litigation resulting from the interpretation of this License, arising
246
+ between the European Union institutions, bodies, offices or agencies, as a
247
+ Licensor, and any Licensee, will be subject to the jurisdiction of the Court
248
+ of Justice of the European Union, as laid down in article 272 of the Treaty
249
+ on the Functioning of the European Union,
250
+ — any litigation arising between other parties and resulting from the
251
+ interpretation of this License, will be subject to the exclusive
252
+ jurisdiction of the competent court where the Licensor resides or conducts
253
+ its primary business.
254
+
255
+ 15. Applicable Law
256
+
257
+ Without prejudice to specific agreement between parties,
258
+ — this Licence shall be governed by the law of the European Union Member State
259
+ where the Licensor has his seat, resides or has his registered office,
260
+ — this licence shall be governed by Belgian law if the Licensor has no seat,
261
+ residence or registered office inside a European Union Member State.
262
+
263
+ Appendix
264
+
265
+ ‘Compatible Licences’ according to Article 5 EUPL are:
266
+ — GNU General Public License (GPL) v. 2, v. 3
267
+ — GNU Affero General Public License (AGPL) v. 3
268
+ — Open Software License (OSL) v. 2.1, v. 3.0
269
+ — Eclipse Public License (EPL) v. 1.0
270
+ — CeCILL v. 2.0, v. 2.1
271
+ — Mozilla Public Licence (MPL) v. 2
272
+ — GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
273
+ — Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
274
+ works other than software
275
+ — European Union Public Licence (EUPL) v. 1.1, v. 1.2
276
+ — Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or
277
+ Strong Reciprocity (LiLiQ-R+)
278
+
279
+ — The European Commission may update this Appendix to later versions of the
280
+ above licences without producing a new version of the EUPL, as long as they
281
+ provide the rights granted in Article 2 of this Licence and protect the
282
+ covered Source Code from exclusive appropriation.
283
+ — All other changes or additions to this Appendix require the production of a
284
+ new EUPL version.
@@ -1,31 +1,28 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: text_console
3
- Version: 2.0.7
4
- Summary: ('A customizable Tkinter-based text console widget, in which a user types in commands to be sent to the Python interpreter.',)
5
- Home-page: https://github.com/Ircama/text_console
3
+ Version: 2.1.0
4
+ Summary: A customizable Tkinter-based text console widget, in which a user types in commands to be sent to the Python interpreter.
6
5
  Author: Ircama
7
- License: EUPL-1.2
8
- Keywords: shell console tkinter
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)
11
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
12
- Classifier: Programming Language :: Python :: 3 :: Only
6
+ License-Expression: EUPL-1.2
7
+ Project-URL: Homepage, https://github.com/Ircama/text_console
8
+ Project-URL: Documentation, https://ircama.github.io/text_console
9
+ Keywords: shell,console,tkinter
13
10
  Classifier: Development Status :: 5 - Production/Stable
14
- Classifier: Operating System :: OS Independent
15
11
  Classifier: Intended Audience :: Developers
16
- Requires-Python: >3.6
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Requires-Python: >=3.9
17
23
  Description-Content-Type: text/markdown
18
24
  License-File: LICENSE
19
- Dynamic: author
20
- Dynamic: classifier
21
- Dynamic: description
22
- Dynamic: description-content-type
23
- Dynamic: home-page
24
- Dynamic: keywords
25
- Dynamic: license
26
25
  Dynamic: license-file
27
- Dynamic: requires-python
28
- Dynamic: summary
29
26
 
30
27
  # text_console
31
28
 
@@ -119,5 +116,163 @@ In the History Panel:
119
116
  |Double-click|Recall command to main window from history panel|
120
117
  | Esc | In history panel: Close Command History panel / Cancel search|
121
118
 
119
+ ## Installation
120
+
121
+ Requires Python 3.9 or later (including Python 3.14).
122
+
123
+ ```bash
124
+ pip install text-console
125
+ ```
126
+
127
+ ## Playground
128
+
129
+ ```
130
+ python -m text_console
131
+ ```
132
+
133
+ Available options:
134
+
135
+ ```
136
+ Python Console [-h] [-V]
137
+
138
+ options:
139
+ -h, --help show this help message and exit
140
+ -V, --version Print version and exit
141
+
142
+ A customizable Tkinter-based text console widget.
143
+ ```
144
+
145
+ ### Running the pre-built GUI executable
146
+
147
+ The *text_console.zip* archive in the [Releases](https://github.com/Ircama/text_console/releases/latest) folder incudes the *text_console.exe* executable asset; the ZIP archive is auto-generated by a [GitHub Action](https://github.com/Ircama/text_console/blob/main/.github/workflows/build.yml). *text_console.exe* is a Windows GUI that can be directly executed.
148
+
149
+ ### Basic usage with default settings
150
+
151
+ ```python
152
+ import tkinter as tk
153
+ from text_console import TextConsole
154
+
155
+ class TkConsole(tk.Tk):
156
+ def __init__(self):
157
+ super().__init__()
158
+ self.title("Python Console")
159
+ self.geometry("800x400")
160
+
161
+ # Initialize the TextConsole widget
162
+ console = TextConsole(self, self)
163
+ console.pack(fill='both', expand=True)
164
+
165
+ # Configure grid resizing for the main window
166
+ self.grid_rowconfigure(0, weight=1)
167
+ self.grid_columnconfigure(0, weight=1)
168
+
169
+
170
+ app = TkConsole()
171
+ app.mainloop()
172
+ ```
173
+
174
+ ### Invoking TextConsole from a Master widget
175
+
176
+ ```python
177
+ import tkinter as tk
178
+ from text_console import TextConsole
179
+
180
+ class TkConsole(tk.Tk):
181
+ def __init__(self):
182
+ super().__init__()
183
+ self.title("Python Console")
184
+ self.geometry("100x70")
185
+
186
+ # Add a button to launch the TextConsole
187
+ run_console_button = tk.Button(
188
+ self,
189
+ text="Debug Console",
190
+ command=self.run_text_console
191
+ )
192
+ run_console_button.pack(pady=20) # Add some spacing around the button
193
+
194
+ # Configure grid resizing for the main window
195
+ self.grid_rowconfigure(0, weight=1)
196
+ self.grid_columnconfigure(0, weight=1)
197
+
198
+ def run_text_console(self):
199
+ """Launches the TextConsole in a new Toplevel window."""
200
+ console_window = tk.Toplevel(self)
201
+ console_window.title("Debug Console")
202
+ console_window.geometry("800x400")
203
+
204
+ # Initialize the TextConsole widget
205
+ console = TextConsole(self, console_window)
206
+ console.pack(fill='both', expand=True)
207
+
208
+ app = TkConsole()
209
+ app.mainloop()
210
+ ```
211
+
212
+ ### Customized console through subclassing
213
+
214
+ ```python
215
+ from text_console import TextConsole
216
+
217
+ class MyCustomConsole(TextConsole):
218
+
219
+ # Override class attributes
220
+ history_file = "my_custom_history.txt"
221
+
222
+ console_locals = {
223
+ "my_var": 42,
224
+ "my_function": lambda x: x * 2
225
+ }
226
+
227
+ context_menu_items = [
228
+ ("Custom Action", "custom_action"),
229
+ "-", # separator
230
+ ("Clear", "clear")
231
+ ]
232
+
233
+ show_about_message = "My Custom Console v1.0"
234
+ show_help_content = "This is my custom console help content"
235
+
236
+ def custom_action(self):
237
+ print("Custom action executed!")
238
+
239
+ def create_menu(self, main, master):
240
+ # Extend the menu created by the base class
241
+ super().create_menu(main, master)
242
+
243
+ # Add "Web Site" to the Help menu
244
+ menu_bar = master.nametowidget(master.cget('menu')) # Get the menu widget
245
+ help_menu = list(menu_bar.children.values())[2] # Access the Help menu (third = 2)
246
+ help_menu.insert_command(
247
+ help_menu.index("end"),
248
+ label="Web Site",
249
+ command=self.new_action
250
+ )
251
+
252
+ def new_action(self):
253
+ pass
254
+
255
+ """ Alternatively, override create_menu:
256
+ def create_menu(self, main, master):
257
+ # Override to create a custom menu
258
+ menu_bar = Menu(master)
259
+ master.config(menu=menu_bar)
260
+
261
+ # Custom menu items
262
+ custom_menu = Menu(menu_bar, tearoff=0)
263
+ custom_menu.add_command(label="My Action", command=self.custom_action)
264
+ menu_bar.add_cascade(label="Custom", menu=custom_menu)
265
+ """
266
+
267
+
268
+ # Use the custom console
269
+ text_console = MyCustomConsole(main, master)
270
+ ```
271
+
272
+ ## Limitations
273
+
274
+ *text\_console* does **not** support **Ctrl+C** to abort long‑running commands. Because the console is designed as an embeddable in-process API playground within a Tkinter process, it cannot leverage **multiprocessing** to provide real interrupt semantics, which would fork a separate Python environment, breaking the API. Likewise, **multithreading** cannot forcibly terminate an executing function due to Python’s **Global Interpreter Lock (GIL)** and the absence of a built-in thread‑kill API. Furthermore, Tkinter itself offers no mechanism to cancel an in‑progress widget callback or command/code evaluation and it runs inside an event loop rather than the standard Python REPL. Consequently, users must wait for blocking operations to finish.
275
+
276
+ ## License
122
277
 
123
- Full information and usage details at the [text_console GitHub repository](https://github.com/Ircama/text_console).
278
+ EUPL-1.2 License - See [LICENSE](LICENSE) for details.
@@ -92,6 +92,8 @@ In the History Panel:
92
92
 
93
93
  ## Installation
94
94
 
95
+ Requires Python 3.9 or later (including Python 3.14).
96
+
95
97
  ```bash
96
98
  pip install text-console
97
99
  ```
@@ -107,7 +109,7 @@ Available options:
107
109
  ```
108
110
  Python Console [-h] [-V]
109
111
 
110
- optional arguments:
112
+ options:
111
113
  -h, --help show this help message and exit
112
114
  -V, --version Print version and exit
113
115
 
@@ -208,8 +210,8 @@ class MyCustomConsole(TextConsole):
208
210
  def custom_action(self):
209
211
  print("Custom action executed!")
210
212
 
211
- def create_menu(self, master):
212
- # Override to create a custom menu
213
+ def create_menu(self, main, master):
214
+ # Extend the menu created by the base class
213
215
  super().create_menu(main, master)
214
216
 
215
217
  # Add "Web Site" to the Help menu
@@ -221,20 +223,11 @@ class MyCustomConsole(TextConsole):
221
223
  command=self.new_action
222
224
  )
223
225
 
224
- # Override to create a custom menu
225
- menu_bar = Menu(master)
226
- master.config(menu=menu_bar)
227
-
228
- # Custom menu items
229
- custom_menu = Menu(menu_bar, tearoff=0)
230
- custom_menu.add_command(label="My Action", command=self.custom_action)
231
- menu_bar.add_cascade(label="Custom", menu=custom_menu)
232
-
233
226
  def new_action(self):
234
227
  pass
235
228
 
236
229
  """ Alternatively, override create_menu:
237
- def create_menu(self, master):
230
+ def create_menu(self, main, master):
238
231
  # Override to create a custom menu
239
232
  menu_bar = Menu(master)
240
233
  master.config(menu=menu_bar)
@@ -249,3 +242,11 @@ class MyCustomConsole(TextConsole):
249
242
  # Use the custom console
250
243
  text_console = MyCustomConsole(main, master)
251
244
  ```
245
+
246
+ ## Limitations
247
+
248
+ *text\_console* does **not** support **Ctrl+C** to abort long‑running commands. Because the console is designed as an embeddable in-process API playground within a Tkinter process, it cannot leverage **multiprocessing** to provide real interrupt semantics, which would fork a separate Python environment, breaking the API. Likewise, **multithreading** cannot forcibly terminate an executing function due to Python’s **Global Interpreter Lock (GIL)** and the absence of a built-in thread‑kill API. Furthermore, Tkinter itself offers no mechanism to cancel an in‑progress widget callback or command/code evaluation and it runs inside an event loop rather than the standard Python REPL. Consequently, users must wait for blocking operations to finish.
249
+
250
+ ## License
251
+
252
+ EUPL-1.2 License - See [LICENSE](LICENSE) for details.
@@ -0,0 +1,43 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77.0.3"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "text_console"
7
+ description = "A customizable Tkinter-based text console widget, in which a user types in commands to be sent to the Python interpreter."
8
+ readme = { file = "README.md", content-type = "text/markdown" }
9
+ license = "EUPL-1.2"
10
+ license-files = ["LICENSE"]
11
+ authors = [
12
+ { name = "Ircama" },
13
+ ]
14
+ requires-python = ">=3.9"
15
+ keywords = ["shell", "console", "tkinter"]
16
+ classifiers = [
17
+ "Development Status :: 5 - Production/Stable",
18
+ "Intended Audience :: Developers",
19
+ "Operating System :: OS Independent",
20
+ "Programming Language :: Python :: 3",
21
+ "Programming Language :: Python :: 3 :: Only",
22
+ "Programming Language :: Python :: 3.9",
23
+ "Programming Language :: Python :: 3.10",
24
+ "Programming Language :: Python :: 3.11",
25
+ "Programming Language :: Python :: 3.12",
26
+ "Programming Language :: Python :: 3.13",
27
+ "Programming Language :: Python :: 3.14",
28
+ "Topic :: Software Development :: Libraries :: Python Modules",
29
+ ]
30
+ dynamic = ["version"]
31
+
32
+ [project.urls]
33
+ Homepage = "https://github.com/Ircama/text_console"
34
+ Documentation = "https://ircama.github.io/text_console"
35
+
36
+ [project.scripts]
37
+ text_console = "text_console.__main__:main"
38
+
39
+ [tool.setuptools]
40
+ packages = ["text_console"]
41
+
42
+ [tool.setuptools.dynamic]
43
+ version = { attr = "text_console.__version__.__version__" }
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ """Legacy setup.py shim.
4
+
5
+ The packaging metadata has been moved to ``pyproject.toml`` (PEP 621).
6
+ This file is kept only for backwards compatibility with tools that
7
+ still invoke ``python setup.py``. All actual configuration now lives
8
+ in ``pyproject.toml``.
9
+ """
10
+
11
+ from setuptools import setup
12
+
13
+ setup()
@@ -0,0 +1 @@
1
+ __version__ = "2.1.0"
@@ -1,31 +1,28 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: text_console
3
- Version: 2.0.7
4
- Summary: ('A customizable Tkinter-based text console widget, in which a user types in commands to be sent to the Python interpreter.',)
5
- Home-page: https://github.com/Ircama/text_console
3
+ Version: 2.1.0
4
+ Summary: A customizable Tkinter-based text console widget, in which a user types in commands to be sent to the Python interpreter.
6
5
  Author: Ircama
7
- License: EUPL-1.2
8
- Keywords: shell console tkinter
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)
11
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
12
- Classifier: Programming Language :: Python :: 3 :: Only
6
+ License-Expression: EUPL-1.2
7
+ Project-URL: Homepage, https://github.com/Ircama/text_console
8
+ Project-URL: Documentation, https://ircama.github.io/text_console
9
+ Keywords: shell,console,tkinter
13
10
  Classifier: Development Status :: 5 - Production/Stable
14
- Classifier: Operating System :: OS Independent
15
11
  Classifier: Intended Audience :: Developers
16
- Requires-Python: >3.6
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Requires-Python: >=3.9
17
23
  Description-Content-Type: text/markdown
18
24
  License-File: LICENSE
19
- Dynamic: author
20
- Dynamic: classifier
21
- Dynamic: description
22
- Dynamic: description-content-type
23
- Dynamic: home-page
24
- Dynamic: keywords
25
- Dynamic: license
26
25
  Dynamic: license-file
27
- Dynamic: requires-python
28
- Dynamic: summary
29
26
 
30
27
  # text_console
31
28
 
@@ -119,5 +116,163 @@ In the History Panel:
119
116
  |Double-click|Recall command to main window from history panel|
120
117
  | Esc | In history panel: Close Command History panel / Cancel search|
121
118
 
119
+ ## Installation
120
+
121
+ Requires Python 3.9 or later (including Python 3.14).
122
+
123
+ ```bash
124
+ pip install text-console
125
+ ```
126
+
127
+ ## Playground
128
+
129
+ ```
130
+ python -m text_console
131
+ ```
132
+
133
+ Available options:
134
+
135
+ ```
136
+ Python Console [-h] [-V]
137
+
138
+ options:
139
+ -h, --help show this help message and exit
140
+ -V, --version Print version and exit
141
+
142
+ A customizable Tkinter-based text console widget.
143
+ ```
144
+
145
+ ### Running the pre-built GUI executable
146
+
147
+ The *text_console.zip* archive in the [Releases](https://github.com/Ircama/text_console/releases/latest) folder incudes the *text_console.exe* executable asset; the ZIP archive is auto-generated by a [GitHub Action](https://github.com/Ircama/text_console/blob/main/.github/workflows/build.yml). *text_console.exe* is a Windows GUI that can be directly executed.
148
+
149
+ ### Basic usage with default settings
150
+
151
+ ```python
152
+ import tkinter as tk
153
+ from text_console import TextConsole
154
+
155
+ class TkConsole(tk.Tk):
156
+ def __init__(self):
157
+ super().__init__()
158
+ self.title("Python Console")
159
+ self.geometry("800x400")
160
+
161
+ # Initialize the TextConsole widget
162
+ console = TextConsole(self, self)
163
+ console.pack(fill='both', expand=True)
164
+
165
+ # Configure grid resizing for the main window
166
+ self.grid_rowconfigure(0, weight=1)
167
+ self.grid_columnconfigure(0, weight=1)
168
+
169
+
170
+ app = TkConsole()
171
+ app.mainloop()
172
+ ```
173
+
174
+ ### Invoking TextConsole from a Master widget
175
+
176
+ ```python
177
+ import tkinter as tk
178
+ from text_console import TextConsole
179
+
180
+ class TkConsole(tk.Tk):
181
+ def __init__(self):
182
+ super().__init__()
183
+ self.title("Python Console")
184
+ self.geometry("100x70")
185
+
186
+ # Add a button to launch the TextConsole
187
+ run_console_button = tk.Button(
188
+ self,
189
+ text="Debug Console",
190
+ command=self.run_text_console
191
+ )
192
+ run_console_button.pack(pady=20) # Add some spacing around the button
193
+
194
+ # Configure grid resizing for the main window
195
+ self.grid_rowconfigure(0, weight=1)
196
+ self.grid_columnconfigure(0, weight=1)
197
+
198
+ def run_text_console(self):
199
+ """Launches the TextConsole in a new Toplevel window."""
200
+ console_window = tk.Toplevel(self)
201
+ console_window.title("Debug Console")
202
+ console_window.geometry("800x400")
203
+
204
+ # Initialize the TextConsole widget
205
+ console = TextConsole(self, console_window)
206
+ console.pack(fill='both', expand=True)
207
+
208
+ app = TkConsole()
209
+ app.mainloop()
210
+ ```
211
+
212
+ ### Customized console through subclassing
213
+
214
+ ```python
215
+ from text_console import TextConsole
216
+
217
+ class MyCustomConsole(TextConsole):
218
+
219
+ # Override class attributes
220
+ history_file = "my_custom_history.txt"
221
+
222
+ console_locals = {
223
+ "my_var": 42,
224
+ "my_function": lambda x: x * 2
225
+ }
226
+
227
+ context_menu_items = [
228
+ ("Custom Action", "custom_action"),
229
+ "-", # separator
230
+ ("Clear", "clear")
231
+ ]
232
+
233
+ show_about_message = "My Custom Console v1.0"
234
+ show_help_content = "This is my custom console help content"
235
+
236
+ def custom_action(self):
237
+ print("Custom action executed!")
238
+
239
+ def create_menu(self, main, master):
240
+ # Extend the menu created by the base class
241
+ super().create_menu(main, master)
242
+
243
+ # Add "Web Site" to the Help menu
244
+ menu_bar = master.nametowidget(master.cget('menu')) # Get the menu widget
245
+ help_menu = list(menu_bar.children.values())[2] # Access the Help menu (third = 2)
246
+ help_menu.insert_command(
247
+ help_menu.index("end"),
248
+ label="Web Site",
249
+ command=self.new_action
250
+ )
251
+
252
+ def new_action(self):
253
+ pass
254
+
255
+ """ Alternatively, override create_menu:
256
+ def create_menu(self, main, master):
257
+ # Override to create a custom menu
258
+ menu_bar = Menu(master)
259
+ master.config(menu=menu_bar)
260
+
261
+ # Custom menu items
262
+ custom_menu = Menu(menu_bar, tearoff=0)
263
+ custom_menu.add_command(label="My Action", command=self.custom_action)
264
+ menu_bar.add_cascade(label="Custom", menu=custom_menu)
265
+ """
266
+
267
+
268
+ # Use the custom console
269
+ text_console = MyCustomConsole(main, master)
270
+ ```
271
+
272
+ ## Limitations
273
+
274
+ *text\_console* does **not** support **Ctrl+C** to abort long‑running commands. Because the console is designed as an embeddable in-process API playground within a Tkinter process, it cannot leverage **multiprocessing** to provide real interrupt semantics, which would fork a separate Python environment, breaking the API. Likewise, **multithreading** cannot forcibly terminate an executing function due to Python’s **Global Interpreter Lock (GIL)** and the absence of a built-in thread‑kill API. Furthermore, Tkinter itself offers no mechanism to cancel an in‑progress widget callback or command/code evaluation and it runs inside an event loop rather than the standard Python REPL. Consequently, users must wait for blocking operations to finish.
275
+
276
+ ## License
122
277
 
123
- Full information and usage details at the [text_console GitHub repository](https://github.com/Ircama/text_console).
278
+ EUPL-1.2 License - See [LICENSE](LICENSE) for details.
@@ -1,5 +1,6 @@
1
1
  LICENSE
2
2
  README.md
3
+ pyproject.toml
3
4
  setup.py
4
5
  text_console/__init__.py
5
6
  text_console/__main__.py
@@ -1,134 +0,0 @@
1
- Copyright (c) 2024-2025 Ircama, EUPL-1.1
2
-
3
- Corresponding SPDX licence: European Union Public License 1.1
4
-
5
- Licence ID: EUPL-1.1
6
-
7
- See also:
8
- https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/eupl1.1…
9
- https://opensource.org/licenses/EUPL-1.1
10
- https://joinup.ec.europa.eu/software/page/eupl/licence-eupl
11
-
12
- Licence text
13
-
14
- European Union Public Licence V. 1.1
15
-
16
- EUPL (c) the European Community 2007
17
-
18
- This European Union Public Licence (the "EUPL") applies to the Work or Software (as defined below) which is provided under the terms of this Licence. Any use of the Work, other than as authorised under this Licence is prohibited (to the extent such use is covered by a right of the copyright holder of the Work).
19
-
20
- The Original Work is provided under the terms of this Licence when the Licensor (as defined below) has placed the following notice immediately following the copyright notice for the Original Work:
21
-
22
- Licensed under the EUPL V.1.1
23
-
24
- or has expressed by any other mean his willingness to license under the EUPL.
25
-
26
- 1. Definitions
27
- In this Licence, the following terms have the following meaning:
28
-
29
- - The Licence: this Licence.
30
- - The Original Work or the Software: the software distributed and/or communicated by the Licensor under this Licence, available as Source Code and also as Executable Code as the case may be.
31
- - Derivative Works: the works or software that could be created by the Licensee, based upon the Original Work or modifications thereof. This Licence does not define the extent of modification or dependence on the Original Work required in order to classify a work as a Derivative Work; this extent is determined by copyright law applicable in the country mentioned in Article 15.
32
- - The Work: the Original Work and/or its Derivative Works.
33
- - The Source Code: the human-readable form of the Work which is the most convenient for people to study and modify.
34
- - The Executable Code: any code which has generally been compiled and which is meant to be interpreted by a computer as a program.
35
- - The Licensor: the natural or legal person that distributes and/or communicates the Work under the Licence.
36
- - Contributor(s): any natural or legal person who modifies the Work under the Licence, or otherwise contributes to the creation of a Derivative Work.
37
- - The Licensee or "You": any natural or legal person who makes any usage of the Software under the terms of the Licence.
38
- - Distribution and/or Communication: any act of selling, giving, lending, renting, distributing, communicating, transmitting, or otherwise making available, on-line or off-line, copies of the Work or providing access to its essential functionalities at the disposal of any other natural or legal person.
39
- 2. Scope of the rights granted by the Licence
40
- The Licensor hereby grants You a world-wide, royalty-free, non-exclusive, sublicensable licence to do the following, for the duration of copyright vested in the Original Work:
41
-
42
- - use the Work in any circumstance and for all usage,
43
- - reproduce the Work,
44
- - modify the Original Work, and make Derivative Works based upon the Work,
45
- - communicate to the public, including the right to make available or display the Work or copies thereof to the public and perform publicly, as the case may be, the Work,
46
- - distribute the Work or copies thereof,
47
- - lend and rent the Work or copies thereof,
48
- - sub-license rights in the Work or copies thereof.
49
- Those rights can be exercised on any media, supports and formats, whether now known or later invented, as far as the applicable law permits so.
50
-
51
- In the countries where moral rights apply, the Licensor waives his right to exercise his moral right to the extent allowed by law in order to make effective the licence of the economic rights here above listed.
52
-
53
- The Licensor grants to the Licensee royalty-free, non exclusive usage rights to any patents held by the Licensor, to the extent necessary to make use of the rights granted on the Work under this Licence.
54
-
55
- 3. Communication of the Source Code
56
- The Licensor may provide the Work either in its Source Code form, or as Executable Code. If the Work is provided as Executable Code, the Licensor provides in addition a machine-readable copy of the Source Code of the Work along with each copy of the Work that the Licensor distributes or indicates, in a notice following the copyright notice attached to the Work, a repository where the Source Code is easily and freely accessible for as long as the Licensor continues to distribute and/or communicate the Work.
57
-
58
- 4. Limitations on copyright
59
- Nothing in this Licence is intended to deprive the Licensee of the benefits from any exception or limitation to the exclusive rights of the rights owners in the Original Work or Software, of the exhaustion of those rights or of other applicable limitations thereto.
60
-
61
- 5. Obligations of the Licensee
62
- The grant of the rights mentioned above is subject to some restrictions and obligations imposed on the Licensee. Those obligations are the following:
63
-
64
- Attribution right: the Licensee shall keep intact all copyright, patent or trademarks notices and all notices that refer to the Licence and to the disclaimer of warranties. The Licensee must include a copy of such notices and a copy of the Licence with every copy of the Work he/she distributes and/or communicates. The Licensee must cause any Derivative Work to carry prominent notices stating that the Work has been modified and the date of modification.
65
-
66
- Copyleft clause: If the Licensee distributes and/or communicates copies of the Original Works or Derivative Works based upon the Original Work, this Distribution and/or Communication will be done under the terms of this Licence or of a later version of this Licence unless the Original Work is expressly distributed only under this version of the Licence. The Licensee (becoming Licensor) cannot offer or impose any additional terms or conditions on the Work or Derivative Work that alter or restrict the terms of the Licence.
67
-
68
- Compatibility clause: If the Licensee Distributes and/or Communicates Derivative Works or copies thereof based upon both the Original Work and another work licensed under a Compatible Licence, this Distribution and/or Communication can be done under the terms of this Compatible Licence. For the sake of this clause, "Compatible Licence," refers to the licences listed in the appendix attached to this Licence. Should the Licensee's obligations under the Compatible Licence conflict with his/her obligations under this Licence, the obligations of the Compatible Licence shall prevail.
69
-
70
- Provision of Source Code: When distributing and/or communicating copies of the Work, the Licensee will provide a machine-readable copy of the Source Code or indicate a repository where this Source will be easily and freely available for as long as the Licensee continues to distribute and/or communicate the Work.
71
-
72
- Legal Protection: This Licence does not grant permission to use the trade names, trademarks, service marks, or names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the copyright notice.
73
-
74
- 6. Chain of Authorship
75
- The original Licensor warrants that the copyright in the Original Work granted hereunder is owned by him/her or licensed to him/her and that he/she has the power and authority to grant the Licence.
76
-
77
- Each Contributor warrants that the copyright in the modifications he/she brings to the Work are owned by him/her or licensed to him/her and that he/she has the power and authority to grant the Licence.
78
-
79
- Each time You accept the Licence, the original Licensor and subsequent Contributors grant You a licence to their contributions to the Work, under the terms of this Licence.
80
-
81
- 7. Disclaimer of Warranty
82
- The Work is a work in progress, which is continuously improved by numerous contributors. It is not a finished work and may therefore contain defects or "bugs" inherent to this type of software development.
83
-
84
- For the above reason, the Work is provided under the Licence on an "as is" basis and without warranties of any kind concerning the Work, including without limitation merchantability, fitness for a particular purpose, absence of defects or errors, accuracy, non-infringement of intellectual property rights other than copyright as stated in Article 6 of this Licence.
85
-
86
- This disclaimer of warranty is an essential part of the Licence and a condition for the grant of any rights to the Work.
87
-
88
- 8. Disclaimer of Liability
89
- Except in the cases of wilful misconduct or damages directly caused to natural persons, the Licensor will in no event be liable for any direct or indirect, material or moral, damages of any kind, arising out of the Licence or of the use of the Work, including without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, loss of data or any commercial damage, even if the Licensor has been advised of the possibility of such damage. However, the Licensor will be liable under statutory product liability laws as far such laws apply to the Work.
90
-
91
- 9. Additional agreements
92
- While distributing the Original Work or Derivative Works, You may choose to conclude an additional agreement to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or services consistent with this Licence. However, in accepting such obligations, You may act only on your own behalf and on your sole responsibility, not on behalf of the original Licensor or any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against such Contributor by the fact You have accepted any such warranty or additional liability.
93
-
94
- 10. Acceptance of the Licence
95
- The provisions of this Licence can be accepted by clicking on an icon "I agree" placed under the bottom of a window displaying the text of this Licence or by affirming consent in any other similar way, in accordance with the rules of applicable law. Clicking on that icon indicates your clear and irrevocable acceptance of this Licence and all of its terms and conditions.
96
-
97
- Similarly, you irrevocably accept this Licence and all of its terms and conditions by exercising any rights granted to You by Article 2 of this Licence, such as the use of the Work, the creation by You of a Derivative Work or the Distribution and/or Communication by You of the Work or copies thereof.
98
-
99
- 11. Information to the public
100
- In case of any Distribution and/or Communication of the Work by means of electronic communication by You (for example, by offering to download the Work from a remote location) the distribution channel or media (for example, a website) must at least provide to the public the information requested by the applicable law regarding the Licensor, the Licence and the way it may be accessible, concluded, stored and reproduced by the Licensee.
101
-
102
- 12. Termination of the Licence
103
- The Licence and the rights granted hereunder will terminate automatically upon any breach by the Licensee of the terms of the Licence. Such a termination will not terminate the licences of any person who has received the Work from the Licensee under the Licence, provided such persons remain in full compliance with the Licence.
104
-
105
- 13. Miscellaneous
106
- Without prejudice of Article 9 above, the Licence represents the complete agreement between the Parties as to the Work licensed hereunder.
107
-
108
- If any provision of the Licence is invalid or unenforceable under applicable law, this will not affect the validity or enforceability of the Licence as a whole. Such provision will be construed and/or reformed so as necessary to make it valid and enforceable.
109
-
110
- The European Commission may publish other linguistic versions and/or new versions of this Licence, so far this is required and reasonable, without reducing the scope of the rights granted by the Licence. New versions of the Licence will be published with a unique version number.
111
-
112
- All linguistic versions of this Licence, approved by the European Commission, have identical value. Parties can take advantage of the linguistic version of their choice.
113
-
114
- 14. Jurisdiction
115
- Any litigation resulting from the interpretation of this License, arising between the European Commission, as a Licensor, and any Licensee, will be subject to the jurisdiction of the Court of Justice of the European Communities, as laid down in article 238 of the Treaty establishing the European Community.
116
-
117
- Any litigation arising between Parties, other than the European Commission, and resulting from the interpretation of this License, will be subject to the exclusive jurisdiction of the competent court where the Licensor resides or conducts its primary business.
118
-
119
- 15. Applicable Law
120
- This Licence shall be governed by the law of the European Union country where the Licensor resides or has his registered office.
121
-
122
- This licence shall be governed by the Belgian law if:
123
-
124
- - a litigation arises between the European Commission, as a Licensor, and any Licensee;
125
- - the Licensor, other than the European Commission, has no residence or registered office inside a European Union country.
126
- Appendix
127
-
128
- "Compatible Licences" according to article 5 EUPL are:
129
-
130
- - GNU General Public License (GNU GPL) v. 2
131
- - Open Software License (OSL) v. 2.1, v. 3.0
132
- - Common Public License v. 1.0
133
- - Eclipse Public License v. 1.0
134
- - Cecill v. 2.0
@@ -1,81 +0,0 @@
1
- #!/usr/bin/env python3
2
- # -*- coding: utf-8 -*-
3
-
4
- from setuptools import setup, find_packages
5
- import re
6
- import os
7
- import sys
8
-
9
- import json
10
- from urllib import request
11
- from pkg_resources import parse_version
12
-
13
- ###########################################################################
14
-
15
- END_OF_INTRODUCTION = '## Installation'
16
-
17
- EPILOGUE = '''
18
- Full information and usage details at the [text_console GitHub repository](https://github.com/Ircama/text_console).
19
- '''
20
-
21
- DESCRIPTION = (
22
- "A customizable Tkinter-based text console widget,"
23
- " in which a user types in commands"
24
- " to be sent to the Python interpreter."
25
- ),
26
-
27
- PACKAGE_NAME = "text_console"
28
-
29
- VERSIONFILE = "text_console/__version__.py"
30
-
31
- ###########################################################################
32
-
33
- def versions(pkg_name, site):
34
- url = 'https://' + site + '.python.org/pypi/' + pkg_name + '/json'
35
- try:
36
- releases = json.loads(request.urlopen(url).read())['releases']
37
- except Exception as e:
38
- print("Error while getting data from URL '" + url + "': " + e)
39
- return []
40
- return sorted(releases, key=parse_version, reverse=True)
41
-
42
- with open("README.md", "r") as readme:
43
- long_description = readme.read()
44
-
45
- build = ''
46
- verstrline = open(VERSIONFILE, "rt").read()
47
- VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
48
- mo = re.search(VSRE, verstrline, re.M)
49
- if mo:
50
- verstr = mo.group(1)
51
- else:
52
- raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
53
-
54
-
55
- setup(
56
- name=PACKAGE_NAME,
57
- version=verstr,
58
- description=(DESCRIPTION),
59
- long_description=long_description[
60
- :long_description.find(END_OF_INTRODUCTION)] + EPILOGUE,
61
- long_description_content_type="text/markdown",
62
- classifiers=[
63
- "Programming Language :: Python :: 3",
64
- "License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
65
- "Topic :: Software Development :: Libraries :: Python Modules",
66
- 'Programming Language :: Python :: 3 :: Only',
67
- "Development Status :: 5 - Production/Stable",
68
- "Operating System :: OS Independent",
69
- "Intended Audience :: Developers",
70
- ],
71
- keywords=("shell console tkinter"),
72
- author="Ircama",
73
- url="https://github.com/Ircama/text_console",
74
- license='EUPL-1.2',
75
- packages=find_packages(),
76
- entry_points={
77
- 'console_scripts': [
78
- 'text_console = text_console.__main__:main',
79
- ]},
80
- python_requires='>3.6'
81
- )
@@ -1 +0,0 @@
1
- __version__ = "2.0.7"
File without changes