the-bumblebee 1.0.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.
Files changed (32) hide show
  1. the_bumblebee-1.0.0/LICENSE.md +21 -0
  2. the_bumblebee-1.0.0/MANIFEST.in +3 -0
  3. the_bumblebee-1.0.0/PKG-INFO +156 -0
  4. the_bumblebee-1.0.0/README.md +127 -0
  5. the_bumblebee-1.0.0/bumblebee/__init__.py +2 -0
  6. the_bumblebee-1.0.0/bumblebee/__pycache__/__init__.cpython-312.pyc +0 -0
  7. the_bumblebee-1.0.0/bumblebee/__pycache__/__init__.cpython-313.pyc +0 -0
  8. the_bumblebee-1.0.0/bumblebee/__pycache__/keyboard.cpython-312.pyc +0 -0
  9. the_bumblebee-1.0.0/bumblebee/__pycache__/keyboard.cpython-313.pyc +0 -0
  10. the_bumblebee-1.0.0/bumblebee/__pycache__/mouse.cpython-312.pyc +0 -0
  11. the_bumblebee-1.0.0/bumblebee/__pycache__/mouse.cpython-313.pyc +0 -0
  12. the_bumblebee-1.0.0/bumblebee/ai/__init__.py +2 -0
  13. the_bumblebee-1.0.0/bumblebee/ai/__pycache__/__init__.cpython-312.pyc +0 -0
  14. the_bumblebee-1.0.0/bumblebee/ai/__pycache__/__init__.cpython-313.pyc +0 -0
  15. the_bumblebee-1.0.0/bumblebee/ai/__pycache__/predict.cpython-312.pyc +0 -0
  16. the_bumblebee-1.0.0/bumblebee/ai/__pycache__/predict.cpython-313.pyc +0 -0
  17. the_bumblebee-1.0.0/bumblebee/ai/__pycache__/rnn.cpython-312.pyc +0 -0
  18. the_bumblebee-1.0.0/bumblebee/ai/__pycache__/rnn.cpython-313.pyc +0 -0
  19. the_bumblebee-1.0.0/bumblebee/ai/models/README.md +3 -0
  20. the_bumblebee-1.0.0/bumblebee/ai/models/bumblebee-c-v1.pth +0 -0
  21. the_bumblebee-1.0.0/bumblebee/ai/predict.py +394 -0
  22. the_bumblebee-1.0.0/bumblebee/ai/rnn.py +71 -0
  23. the_bumblebee-1.0.0/bumblebee/keyboard.py +471 -0
  24. the_bumblebee-1.0.0/bumblebee/mouse.py +219 -0
  25. the_bumblebee-1.0.0/pyproject.toml +3 -0
  26. the_bumblebee-1.0.0/setup.cfg +4 -0
  27. the_bumblebee-1.0.0/setup.py +38 -0
  28. the_bumblebee-1.0.0/the_bumblebee.egg-info/PKG-INFO +156 -0
  29. the_bumblebee-1.0.0/the_bumblebee.egg-info/SOURCES.txt +30 -0
  30. the_bumblebee-1.0.0/the_bumblebee.egg-info/dependency_links.txt +1 -0
  31. the_bumblebee-1.0.0/the_bumblebee.egg-info/requires.txt +5 -0
  32. the_bumblebee-1.0.0/the_bumblebee.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 socioy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is furnished
10
+ to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ include README.md
2
+ include LICENSE
3
+ recursive-include bumblebee *
@@ -0,0 +1,156 @@
1
+ Metadata-Version: 2.2
2
+ Name: the-bumblebee
3
+ Version: 1.0.0
4
+ Summary: An AI-powered Python package for natural, human-like mouse and keyboard control.
5
+ Home-page: https://github.com/socioy/bumblebee
6
+ Author: socioy
7
+ Author-email: bumblebee@socioy.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.12
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Requires-Python: >=3.11
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE.md
15
+ Requires-Dist: numpy>=2.2.4
16
+ Requires-Dist: torch>=2.6.0
17
+ Requires-Dist: scipy>=1.15.2
18
+ Requires-Dist: pynput>=1.8.1
19
+ Requires-Dist: PyAutoGUI>=0.9.54
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: requires-dist
27
+ Dynamic: requires-python
28
+ Dynamic: summary
29
+
30
+ # ๐Ÿ Bumblebee โ€“ Human-Like Mouse & Keyboard Controller
31
+
32
+ <div align="center">
33
+ <img src="https://github.com/socioy/bumblebee/blob/master/data/logo.png" alt="Bumblebee Logo" width="400" style="border-radius: 10px;">
34
+ </div>
35
+
36
+ Bumblebee is an AI-powered Python package that provides **realistic, human-like control** of the mouse and keyboard. Unlike traditional automation tools, Bumblebee leverages deep learning to predict **natural movement patterns**, resulting in automated interactions that feel organic and smooth.
37
+
38
+ ---
39
+
40
+ ## โœจ Features
41
+
42
+ - **AI-Powered Cursor Movement:**
43
+ Employs an RNN augmented with an LSTM layer to create smooth, human-like mouse trajectories. These paths are further refined by introducing natural noise and variable speeds, resulting in movements that mimic real human behavior seamlessly.
44
+ - **Smart Keystroke Simulation:**
45
+ Emulates typing with natural delays, punctuation handling, and variability in keystroke timing.
46
+ - **Extensive Training Data:**
47
+ Trained on a dataset of over 25,000 real cursor movements for enhanced realism.
48
+ - **Reinforcement Learning (Coming Soon):**
49
+ Future updates will integrate RL to further refine cursor behavior.
50
+ - **PyAutoGUI Integration:**
51
+ Utilizes [PyAutoGUI](https://pyautogui.readthedocs.io/) and [pynput](https://pynput.readthedocs.io/) for simulating robust mouse and keyboard interactions.
52
+ - **Built with PyTorch:**
53
+ All AI models are developed using PyTorch.
54
+
55
+ ---
56
+
57
+ ## ๐Ÿš€ How It Works
58
+
59
+ ### ๐Ÿ–ฑ๏ธ Cursor Movement
60
+
61
+ Bumblebee predicts the cursor path using an RNN-LSTM model trained on extensive real-world cursor data. This approach avoids the robotic jumps seen in conventional automation tools, ensuring smooth and natural motion.
62
+
63
+ Currently, Bumblebee's mouse moves on almost the same path if the same initial and destination positions are provided, with some noise.
64
+
65
+ > **Coming Soon:** An enhanced model incorporating Reinforcement Learning (RL) that will generate different form of paths even if same initial and destination is provided.
66
+
67
+ ### โŒจ๏ธ Keyboard Control
68
+
69
+ The keyboard simulation is driven by:
70
+ - **Mathematical Models:**
71
+ Considering distances between keys and natural typing rhythms.
72
+ - **Timing Variations:**
73
+ Simulated delays for each keystroke to mimic human typing quirks.
74
+ - **Punctuation & Special Characters Handling:**
75
+ Adjusted behaviors to reflect realistic typing patterns.
76
+
77
+ ### ๐Ÿ—๏ธ Under the Hood
78
+
79
+ - **Simulation:**
80
+ Uses [PyAutoGUI](https://pyautogui.readthedocs.io/) for executing mouse events and [pynput] (https://pynput.readthedocs.io/) for executing keyboard events.
81
+ - **Deep Learning:**
82
+ Powered by PyTorch models trained on self-collected datasets of human interactions for predicting intermediate points between starting position and destination.
83
+
84
+ ---
85
+
86
+ ## โš™๏ธ How to Use
87
+
88
+ 1. Install Bumblebee
89
+
90
+ ```bash
91
+ pip install bumblebee
92
+ ```
93
+ 2. Import the core modules and use them as following:
94
+
95
+ #### Mouse Control Examples
96
+
97
+ ```python
98
+ from bumblebee import Mouse
99
+
100
+ # Initialize controllers
101
+ mouse = Mouse()
102
+
103
+
104
+ # Set mouse speed (pixels per second)
105
+ mouse.set_speed(1000)
106
+
107
+ # Move mouse to specific coordinates
108
+ mouse.move(100, 200)
109
+
110
+ # Drag mouse from the current position to a new location
111
+ mouse.drag_to(233, 244)
112
+
113
+ # Simulate a mouse click (button options: "left", "middle", "right", "primary", "secondary")
114
+ mouse.click(button="left")
115
+
116
+ # Move to a position then click
117
+ mouse.move_to_and_click(destX=150, destY=250, button="left")
118
+ ```
119
+
120
+ #### Keyboard Control Example
121
+
122
+ Initialize the Keyboard controller and adjust its typing behavior:
123
+
124
+ ```python
125
+ from bumblebee import Keyboard
126
+
127
+ # Initialize the Keyboard controller with default parameters:
128
+ # - typing_speed: 100 (default percentage of ideal speed)
129
+ # - consistency: 95 (default consistency percentage, affecting delay variability)
130
+ # - typo_rate: 5 (default typo frequency percentage)
131
+ keyboard = Keyboard()
132
+
133
+ # Adjust typing speed.
134
+ # The typing speed is provided as a percentage relative to the original Bumblebee typing speed.
135
+ # Acceptable types: int or float.
136
+ keyboard.set_speed(new_speed=400) # Increase the typing speed to 400%
137
+
138
+ # Adjust typo rate.
139
+ # The new typo rate must be a value between 0 and 100 (int or float).
140
+ keyboard.set_typo_rate(3) # Set typo rate to 3%
141
+
142
+ # Adjust consistency.
143
+ # A higher consistency (0-100) increases typing speed with less delay variability.
144
+ keyboard.set_consistency(99) # Set consistency to 99%
145
+
146
+ # Type a sample text.
147
+ text = "Bumblebee is great."
148
+ keyboard.type(text) # 'text' must be a string.
149
+ ```
150
+
151
+ ---
152
+
153
+ ### Interested in contributing?
154
+ Please take a moment to review our [CONTRIBUTING.md](https://github.com/socioy/bumblebee/blob/master/CONTRIBUTING.md) file for detailed guidelines on how to join our community and help shape Bumblebeeโ€™s future.
155
+
156
+ ๐Ÿ **Making automation feel more human, one movement at a time.**
@@ -0,0 +1,127 @@
1
+ # ๐Ÿ Bumblebee โ€“ Human-Like Mouse & Keyboard Controller
2
+
3
+ <div align="center">
4
+ <img src="https://github.com/socioy/bumblebee/blob/master/data/logo.png" alt="Bumblebee Logo" width="400" style="border-radius: 10px;">
5
+ </div>
6
+
7
+ Bumblebee is an AI-powered Python package that provides **realistic, human-like control** of the mouse and keyboard. Unlike traditional automation tools, Bumblebee leverages deep learning to predict **natural movement patterns**, resulting in automated interactions that feel organic and smooth.
8
+
9
+ ---
10
+
11
+ ## โœจ Features
12
+
13
+ - **AI-Powered Cursor Movement:**
14
+ Employs an RNN augmented with an LSTM layer to create smooth, human-like mouse trajectories. These paths are further refined by introducing natural noise and variable speeds, resulting in movements that mimic real human behavior seamlessly.
15
+ - **Smart Keystroke Simulation:**
16
+ Emulates typing with natural delays, punctuation handling, and variability in keystroke timing.
17
+ - **Extensive Training Data:**
18
+ Trained on a dataset of over 25,000 real cursor movements for enhanced realism.
19
+ - **Reinforcement Learning (Coming Soon):**
20
+ Future updates will integrate RL to further refine cursor behavior.
21
+ - **PyAutoGUI Integration:**
22
+ Utilizes [PyAutoGUI](https://pyautogui.readthedocs.io/) and [pynput](https://pynput.readthedocs.io/) for simulating robust mouse and keyboard interactions.
23
+ - **Built with PyTorch:**
24
+ All AI models are developed using PyTorch.
25
+
26
+ ---
27
+
28
+ ## ๐Ÿš€ How It Works
29
+
30
+ ### ๐Ÿ–ฑ๏ธ Cursor Movement
31
+
32
+ Bumblebee predicts the cursor path using an RNN-LSTM model trained on extensive real-world cursor data. This approach avoids the robotic jumps seen in conventional automation tools, ensuring smooth and natural motion.
33
+
34
+ Currently, Bumblebee's mouse moves on almost the same path if the same initial and destination positions are provided, with some noise.
35
+
36
+ > **Coming Soon:** An enhanced model incorporating Reinforcement Learning (RL) that will generate different form of paths even if same initial and destination is provided.
37
+
38
+ ### โŒจ๏ธ Keyboard Control
39
+
40
+ The keyboard simulation is driven by:
41
+ - **Mathematical Models:**
42
+ Considering distances between keys and natural typing rhythms.
43
+ - **Timing Variations:**
44
+ Simulated delays for each keystroke to mimic human typing quirks.
45
+ - **Punctuation & Special Characters Handling:**
46
+ Adjusted behaviors to reflect realistic typing patterns.
47
+
48
+ ### ๐Ÿ—๏ธ Under the Hood
49
+
50
+ - **Simulation:**
51
+ Uses [PyAutoGUI](https://pyautogui.readthedocs.io/) for executing mouse events and [pynput] (https://pynput.readthedocs.io/) for executing keyboard events.
52
+ - **Deep Learning:**
53
+ Powered by PyTorch models trained on self-collected datasets of human interactions for predicting intermediate points between starting position and destination.
54
+
55
+ ---
56
+
57
+ ## โš™๏ธ How to Use
58
+
59
+ 1. Install Bumblebee
60
+
61
+ ```bash
62
+ pip install bumblebee
63
+ ```
64
+ 2. Import the core modules and use them as following:
65
+
66
+ #### Mouse Control Examples
67
+
68
+ ```python
69
+ from bumblebee import Mouse
70
+
71
+ # Initialize controllers
72
+ mouse = Mouse()
73
+
74
+
75
+ # Set mouse speed (pixels per second)
76
+ mouse.set_speed(1000)
77
+
78
+ # Move mouse to specific coordinates
79
+ mouse.move(100, 200)
80
+
81
+ # Drag mouse from the current position to a new location
82
+ mouse.drag_to(233, 244)
83
+
84
+ # Simulate a mouse click (button options: "left", "middle", "right", "primary", "secondary")
85
+ mouse.click(button="left")
86
+
87
+ # Move to a position then click
88
+ mouse.move_to_and_click(destX=150, destY=250, button="left")
89
+ ```
90
+
91
+ #### Keyboard Control Example
92
+
93
+ Initialize the Keyboard controller and adjust its typing behavior:
94
+
95
+ ```python
96
+ from bumblebee import Keyboard
97
+
98
+ # Initialize the Keyboard controller with default parameters:
99
+ # - typing_speed: 100 (default percentage of ideal speed)
100
+ # - consistency: 95 (default consistency percentage, affecting delay variability)
101
+ # - typo_rate: 5 (default typo frequency percentage)
102
+ keyboard = Keyboard()
103
+
104
+ # Adjust typing speed.
105
+ # The typing speed is provided as a percentage relative to the original Bumblebee typing speed.
106
+ # Acceptable types: int or float.
107
+ keyboard.set_speed(new_speed=400) # Increase the typing speed to 400%
108
+
109
+ # Adjust typo rate.
110
+ # The new typo rate must be a value between 0 and 100 (int or float).
111
+ keyboard.set_typo_rate(3) # Set typo rate to 3%
112
+
113
+ # Adjust consistency.
114
+ # A higher consistency (0-100) increases typing speed with less delay variability.
115
+ keyboard.set_consistency(99) # Set consistency to 99%
116
+
117
+ # Type a sample text.
118
+ text = "Bumblebee is great."
119
+ keyboard.type(text) # 'text' must be a string.
120
+ ```
121
+
122
+ ---
123
+
124
+ ### Interested in contributing?
125
+ Please take a moment to review our [CONTRIBUTING.md](https://github.com/socioy/bumblebee/blob/master/CONTRIBUTING.md) file for detailed guidelines on how to join our community and help shape Bumblebeeโ€™s future.
126
+
127
+ ๐Ÿ **Making automation feel more human, one movement at a time.**
@@ -0,0 +1,2 @@
1
+ from .keyboard import *
2
+ from .mouse import *
@@ -0,0 +1,2 @@
1
+ from .predict import Predictor
2
+ from .rnn import CursorRNN
@@ -0,0 +1,3 @@
1
+ ## Production-Ready Models
2
+
3
+ This directory contains pre-trained models, fully optimized and ready for production use.