ai-screenshooter 1.0.0__tar.gz → 1.0.1__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.
@@ -1,10 +1,10 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: ai-screenshooter
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: A CLI tool to capture and send AI-powered screenshots
5
5
  Home-page: https://github.com/tech4vision/ai-screenshoter
6
- Author: Victor Oliveira
7
- Author-email: victor.soares@live.it
6
+ Author: Last Shot AI
7
+ Author-email: support@lastshot.ai
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
@@ -13,3 +13,10 @@ Requires-Dist: pynput
13
13
  Requires-Dist: requests
14
14
  Requires-Dist: Pillow
15
15
  Requires-Dist: pygetwindow
16
+ Dynamic: author
17
+ Dynamic: author-email
18
+ Dynamic: classifier
19
+ Dynamic: home-page
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
@@ -1,10 +1,10 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: ai-screenshooter
3
- Version: 1.0.0
3
+ Version: 1.0.1
4
4
  Summary: A CLI tool to capture and send AI-powered screenshots
5
5
  Home-page: https://github.com/tech4vision/ai-screenshoter
6
- Author: Victor Oliveira
7
- Author-email: victor.soares@live.it
6
+ Author: Last Shot AI
7
+ Author-email: support@lastshot.ai
8
8
  Classifier: Programming Language :: Python :: 3
9
9
  Classifier: License :: OSI Approved :: MIT License
10
10
  Classifier: Operating System :: OS Independent
@@ -13,3 +13,10 @@ Requires-Dist: pynput
13
13
  Requires-Dist: requests
14
14
  Requires-Dist: Pillow
15
15
  Requires-Dist: pygetwindow
16
+ Dynamic: author
17
+ Dynamic: author-email
18
+ Dynamic: classifier
19
+ Dynamic: home-page
20
+ Dynamic: requires-dist
21
+ Dynamic: requires-python
22
+ Dynamic: summary
@@ -113,22 +113,25 @@ def send_screenshots():
113
113
  print(f"❌ Upload failed: {response.text}")
114
114
 
115
115
  def on_press(key):
116
- current_keys.add(key)
117
116
  try:
118
- if key == keyboard.KeyCode.from_char('s') and {keyboard.Key.ctrl_l, keyboard.Key.shift} <= current_keys:
119
- print("📸 Capturing screenshot...")
120
- capture_screenshot()
121
- elif key == keyboard.KeyCode.from_char('t') and {keyboard.Key.ctrl_l, keyboard.Key.shift} <= current_keys:
122
- print("📤 Sending all screenshots...")
123
- send_screenshots()
124
- except AttributeError:
125
- pass
117
+ name = key.char.lower() if hasattr(key, 'char') and key.char else str(key).lower()
118
+ except Exception:
119
+ name = str(key).lower()
120
+ current_keys.add(name)
121
+
122
+ if any("ctrl" in k for k in current_keys) and any("shift" in k for k in current_keys) and 's' in current_keys:
123
+ print("📸 Capturing screenshot...")
124
+ capture_screenshot()
125
+ elif any("ctrl" in k for k in current_keys) and any("shift" in k for k in current_keys) and 't' in current_keys:
126
+ print("📤 Sending all screenshots...")
127
+ send_screenshots()
126
128
 
127
129
  def on_release(key):
128
130
  try:
129
- current_keys.remove(key)
130
- except KeyError:
131
- pass
131
+ name = key.char.lower() if hasattr(key, 'char') and key.char else str(key).lower()
132
+ except Exception:
133
+ name = str(key).lower()
134
+ current_keys.discard(name)
132
135
 
133
136
  def main():
134
137
  parser = argparse.ArgumentParser(description="AI Screenshot CLI")
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="ai-screenshooter",
5
- version="1.0.0",
5
+ version="1.0.1",
6
6
  packages=find_packages(),
7
7
  py_modules=["ai_screenshot"],
8
8
  install_requires=[
@@ -16,8 +16,8 @@ setup(
16
16
  "ai-screenshooter=ai_screenshot:main",
17
17
  ],
18
18
  },
19
- author="Victor Oliveira",
20
- author_email="victor.soares@live.it",
19
+ author="Last Shot AI",
20
+ author_email="support@lastshot.ai",
21
21
  description="A CLI tool to capture and send AI-powered screenshots",
22
22
  url="https://github.com/tech4vision/ai-screenshoter",
23
23
  classifiers=[