KeyboardPaster 0.1.25__tar.gz → 0.1.27__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.
Files changed (23) hide show
  1. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/PKG-INFO +25 -3
  2. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/requires.txt +2 -2
  3. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/PKG-INFO +25 -3
  4. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/README.md +22 -0
  5. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/app.py +6 -7
  6. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/shared_resources.py +1 -1
  7. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/setup.py +5 -3
  8. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/SOURCES.txt +0 -0
  9. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/dependency_links.txt +0 -0
  10. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/entry_points.txt +0 -0
  11. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/top_level.txt +0 -0
  12. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/LICENSE +0 -0
  13. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/__init__.py +0 -0
  14. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/bootstrap.py +0 -0
  15. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/desktop.py +0 -0
  16. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/keyboard_input.py +0 -0
  17. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/keyboard_layout_detector.py +0 -0
  18. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/keyboardpaster_app.kv +0 -0
  19. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/modules/__init__.py +0 -0
  20. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/modules/autoupdate.py +0 -0
  21. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster/res/images/keyboardpaster.png +0 -0
  22. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/keyboardpaster.desktop +0 -0
  23. {keyboardpaster-0.1.25 → keyboardpaster-0.1.27}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: KeyboardPaster
3
- Version: 0.1.25
3
+ Version: 0.1.27
4
4
  Summary: A Python package to type text using the keyboard module
5
5
  Home-page: https://github.com/KnutssonDevelopment/KeyboardPaster
6
6
  Author: Brian Knutsson
@@ -19,8 +19,8 @@ Requires-Python: >=3.10
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
21
  Requires-Dist: pynput
22
- Requires-Dist: kivy
23
- Requires-Dist: kivymd
22
+ Requires-Dist: kivy<2.4,>=2.2
23
+ Requires-Dist: kivymd<2,>=1.2
24
24
  Requires-Dist: requests
25
25
  Provides-Extra: windows
26
26
  Requires-Dist: pywin32; extra == "windows"
@@ -48,10 +48,32 @@ A Python package to type text using the keyboard module. This is useful in situa
48
48
  - Paste 10 different strings using the keyboard
49
49
  - Save string for future usage
50
50
 
51
+ ## Install (Linux / pipx)
52
+
53
+ ```bash
54
+ pipx install keyboardpaster
55
+ ```
56
+
57
+ KivyMD is pinned to 1.x so pipx does not need to compile `pycairo`.
58
+
59
+ If you install KivyMD 2.x yourself, or a dependency pulls in `pycairo`, install Cairo headers first:
60
+
61
+ ```bash
62
+ sudo apt install libcairo2-dev pkg-config
63
+ ```
64
+
65
+ On GNOME Wayland you also need `ydotool` / `ydotoold` for typing into other apps.
66
+
51
67
  ## Future features
52
68
  - Paste images as base64 code
53
69
 
54
70
  ## Changes
71
+ ### v0.1.27
72
+ - BUGFIX: App would crash on linux when copying text
73
+
74
+ ### v0.1.26
75
+ - BUGFIX: Pin KivyMD to 1.x so pipx install does not require pycairo/Cairo headers
76
+
55
77
  ### v0.1.25
56
78
  - BUGFIX: Dropbox menu resulted in crash when multiple profiles were available
57
79
 
@@ -1,6 +1,6 @@
1
1
  pynput
2
- kivy
3
- kivymd
2
+ kivy<2.4,>=2.2
3
+ kivymd<2,>=1.2
4
4
  requests
5
5
 
6
6
  [linux]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: KeyboardPaster
3
- Version: 0.1.25
3
+ Version: 0.1.27
4
4
  Summary: A Python package to type text using the keyboard module
5
5
  Home-page: https://github.com/KnutssonDevelopment/KeyboardPaster
6
6
  Author: Brian Knutsson
@@ -19,8 +19,8 @@ Requires-Python: >=3.10
19
19
  Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
21
  Requires-Dist: pynput
22
- Requires-Dist: kivy
23
- Requires-Dist: kivymd
22
+ Requires-Dist: kivy<2.4,>=2.2
23
+ Requires-Dist: kivymd<2,>=1.2
24
24
  Requires-Dist: requests
25
25
  Provides-Extra: windows
26
26
  Requires-Dist: pywin32; extra == "windows"
@@ -48,10 +48,32 @@ A Python package to type text using the keyboard module. This is useful in situa
48
48
  - Paste 10 different strings using the keyboard
49
49
  - Save string for future usage
50
50
 
51
+ ## Install (Linux / pipx)
52
+
53
+ ```bash
54
+ pipx install keyboardpaster
55
+ ```
56
+
57
+ KivyMD is pinned to 1.x so pipx does not need to compile `pycairo`.
58
+
59
+ If you install KivyMD 2.x yourself, or a dependency pulls in `pycairo`, install Cairo headers first:
60
+
61
+ ```bash
62
+ sudo apt install libcairo2-dev pkg-config
63
+ ```
64
+
65
+ On GNOME Wayland you also need `ydotool` / `ydotoold` for typing into other apps.
66
+
51
67
  ## Future features
52
68
  - Paste images as base64 code
53
69
 
54
70
  ## Changes
71
+ ### v0.1.27
72
+ - BUGFIX: App would crash on linux when copying text
73
+
74
+ ### v0.1.26
75
+ - BUGFIX: Pin KivyMD to 1.x so pipx install does not require pycairo/Cairo headers
76
+
55
77
  ### v0.1.25
56
78
  - BUGFIX: Dropbox menu resulted in crash when multiple profiles were available
57
79
 
@@ -6,10 +6,32 @@ A Python package to type text using the keyboard module. This is useful in situa
6
6
  - Paste 10 different strings using the keyboard
7
7
  - Save string for future usage
8
8
 
9
+ ## Install (Linux / pipx)
10
+
11
+ ```bash
12
+ pipx install keyboardpaster
13
+ ```
14
+
15
+ KivyMD is pinned to 1.x so pipx does not need to compile `pycairo`.
16
+
17
+ If you install KivyMD 2.x yourself, or a dependency pulls in `pycairo`, install Cairo headers first:
18
+
19
+ ```bash
20
+ sudo apt install libcairo2-dev pkg-config
21
+ ```
22
+
23
+ On GNOME Wayland you also need `ydotool` / `ydotoold` for typing into other apps.
24
+
9
25
  ## Future features
10
26
  - Paste images as base64 code
11
27
 
12
28
  ## Changes
29
+ ### v0.1.27
30
+ - BUGFIX: App would crash on linux when copying text
31
+
32
+ ### v0.1.26
33
+ - BUGFIX: Pin KivyMD to 1.x so pipx install does not require pycairo/Cairo headers
34
+
13
35
  ### v0.1.25
14
36
  - BUGFIX: Dropbox menu resulted in crash when multiple profiles were available
15
37
 
@@ -1,6 +1,5 @@
1
1
  import re
2
2
  import json
3
- import subprocess
4
3
  import importlib.resources
5
4
  import keyboardpaster
6
5
 
@@ -13,6 +12,7 @@ from kivy.properties import ObjectProperty, StringProperty, BooleanProperty
13
12
  from kivy.uix.textinput import TextInput
14
13
  from kivy.lang import Builder
15
14
  from kivy.clock import Clock
15
+ from kivy.core.clipboard import Clipboard
16
16
  from kivy.core.window import Window
17
17
  from kivy.factory import Factory
18
18
  from kivy.metrics import dp
@@ -461,14 +461,13 @@ class KeyboardPasterApp(MDApp):
461
461
  def show_type_error(self, error):
462
462
  MDDialog(title="Kan ikke sende tastaturinput", text=str(error)).open()
463
463
 
464
- @staticmethod
465
- def copy_text(input_text, _checkbox):
464
+ def copy_text(self, input_text, _checkbox):
466
465
  if not input_text:
467
- # print("No text found")
468
466
  return
469
-
470
- cmd = 'echo ' + input_text.strip() + '|clip'
471
- subprocess.check_call(cmd, shell=True)
467
+ try:
468
+ Clipboard.copy(input_text)
469
+ except Exception as error:
470
+ MDDialog(title="Kan ikke kopiere", text=str(error)).open()
472
471
 
473
472
  @staticmethod
474
473
  def hide_text(_input_text, _checkbox):
@@ -1,6 +1,6 @@
1
1
  from pathlib import Path
2
2
 
3
- app_version = "0.1.25"
3
+ app_version = "0.1.27"
4
4
  APP_WM_CLASS = "keyboardpaster"
5
5
 
6
6
 
@@ -39,9 +39,11 @@ setup(
39
39
  python_requires=">=3.10",
40
40
  install_requires=[
41
41
  "pynput",
42
- "kivy",
43
- "kivymd",
44
- "requests"
42
+ "kivy>=2.2,<2.4",
43
+ # KivyMD 2.x pulls materialshapes → pycairo (needs libcairo2-dev to build).
44
+ # This app still uses the 1.2 widget API.
45
+ "kivymd>=1.2,<2",
46
+ "requests",
45
47
  ],
46
48
  extras_require={
47
49
  "windows": ["pywin32"],
File without changes