myuri 3.0.4__py3-none-any.whl

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.
myuri/__init__.py ADDED
@@ -0,0 +1,73 @@
1
+ """myuri — API-agnostic human-like browser cursor, keyboard, and scroll.
2
+
3
+ Bring your own driver (Playwright by default, or any backend that can dispatch
4
+ input and run JS in the page). The simulation core (trajectories, scroll model,
5
+ Markov typing, seeded RNG) is pure and shared with the TypeScript package.
6
+ """
7
+ import importlib.metadata as _metadata
8
+ from .cursor import Cursor, create_cursor
9
+ from .drivers import (
10
+ CdpDriver,
11
+ Driver,
12
+ PlaywrightDriver,
13
+ define_driver,
14
+ driver_from_page,
15
+ from_cdp,
16
+ from_playwright,
17
+ )
18
+ from .geometry import get_better_starting_position, get_random_box_point, path
19
+ from .options import (
20
+ ClickOptions,
21
+ DragOptions,
22
+ MoveOptions,
23
+ MoveToOptions,
24
+ RandomMoveOptions,
25
+ ScrollOptions,
26
+ TypeOptions,
27
+ )
28
+ from .profile import profile_from_seed
29
+ from .rng import SeededRng, gaussian, generate_random_seed, make_rng
30
+ from .settings import MyuriSettings, default_settings, resolve_settings
31
+ from .types import BoundingBox, TimedVector, Vector, ViewportSize
32
+ from .typing_engine.typer import HumanTyper, TyperInput
33
+
34
+ try:
35
+ __version__ = _metadata.version("myuri")
36
+ except _metadata.PackageNotFoundError: # running from a source checkout
37
+ __version__ = "0.0.0"
38
+
39
+ __all__ = [
40
+ "Cursor",
41
+ "create_cursor",
42
+ "Driver",
43
+ "PlaywrightDriver",
44
+ "CdpDriver",
45
+ "define_driver",
46
+ "driver_from_page",
47
+ "from_playwright",
48
+ "from_cdp",
49
+ "HumanTyper",
50
+ "TyperInput",
51
+ "Vector",
52
+ "BoundingBox",
53
+ "TimedVector",
54
+ "ViewportSize",
55
+ "make_rng",
56
+ "SeededRng",
57
+ "gaussian",
58
+ "generate_random_seed",
59
+ "MyuriSettings",
60
+ "default_settings",
61
+ "resolve_settings",
62
+ "profile_from_seed",
63
+ "path",
64
+ "get_random_box_point",
65
+ "get_better_starting_position",
66
+ "MoveOptions",
67
+ "ClickOptions",
68
+ "DragOptions",
69
+ "MoveToOptions",
70
+ "ScrollOptions",
71
+ "TypeOptions",
72
+ "RandomMoveOptions",
73
+ ]