Skip to content

Commit 88038ee

Browse files
committed
Change name to python_ghost_cursor
1 parent 2f8ccf0 commit 88038ee

18 files changed

+16
-16
lines changed

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include pyppeteer_ghost_cursor/js/*.js
1+
include python_ghost_cursor/js/*.js

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Python port of <a href="https://github.com/Xetera/ghost-cursor">Xetera/ghost-cur
55
like the definitely-not-robot you are.
66

77
## Installation
8-
`pip install pyppeteer_ghost_cursor`
8+
`pip install python_ghost_cursor`
99

1010
## Usage
1111

1212
Generating movement data between 2 coordinates.
1313

1414
```python
15-
from pyppeteer_ghost_cursor import path
15+
from python_ghost_cursor import path
1616

1717
start = {
1818
"x": 220,
@@ -41,7 +41,7 @@ Usage with Pyppeteer:
4141
```python
4242
import asyncio
4343
import pyppeteer
44-
from pyppeteer_ghost_cursor.pyppeteer import create_cursor
44+
from python_ghost_cursor.pyppeteer import create_cursor
4545

4646
async def main(url):
4747
selector = "#sign-up button"
@@ -61,7 +61,7 @@ Usage with Playwright (async):
6161
```python
6262
import asyncio
6363
from playwright.async_api import async_playwright
64-
from pyppeteer_ghost_cursor.playwright.async_api import create_cursor
64+
from python_ghost_cursor.playwright.async_api import create_cursor
6565

6666
async def main():
6767
async with async_playwright() as p:
@@ -81,7 +81,7 @@ Usage with Playwright (sync):
8181

8282
```python
8383
from playwright.sync_api import sync_playwright
84-
from pyppeteer_ghost_cursor.playwright.sync_api import create_cursor
84+
from python_ghost_cursor.playwright.sync_api import create_cursor
8585

8686
def main():
8787
sync with sync_playwright() as p:
File renamed without changes.

pyppeteer_ghost_cursor/playwright/async_api/_spoof.py renamed to python_ghost_cursor/playwright/async_api/_spoof.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
from typing import Union, Coroutine, Optional, Dict, List
55
from playwright.async_api import Page, ElementHandle, CDPSession
66

7-
from pyppeteer_ghost_cursor.shared._math import (
7+
from python_ghost_cursor.shared._math import (
88
Vector,
99
origin,
1010
overshoot,
1111
)
12-
from pyppeteer_ghost_cursor.shared._spoof import (
12+
from python_ghost_cursor.shared._spoof import (
1313
path,
1414
should_overshoot,
1515
get_random_box_point,

pyppeteer_ghost_cursor/playwright/sync_api/_spoof.py renamed to python_ghost_cursor/playwright/sync_api/_spoof.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from typing import Union, Optional, Dict, List
66
from playwright.sync_api import Page, ElementHandle
77

8-
from pyppeteer_ghost_cursor.shared._math import (
8+
from python_ghost_cursor.shared._math import (
99
Vector,
1010
origin,
1111
overshoot,
1212
)
13-
from pyppeteer_ghost_cursor.shared._spoof import (
13+
from python_ghost_cursor.shared._spoof import (
1414
path,
1515
should_overshoot,
1616
get_random_box_point,

pyppeteer_ghost_cursor/pyppeteer/_spoof.py renamed to python_ghost_cursor/pyppeteer/_spoof.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
# https://github.com/pyppeteer/pyppeteer/blob/dev/pyppeteer/element_handle.py
1414
from pyppeteer.element_handle import ElementHandle
1515

16-
from pyppeteer_ghost_cursor.shared._math import (
16+
from python_ghost_cursor.shared._math import (
1717
Vector,
1818
origin,
1919
overshoot,
2020
)
21-
from pyppeteer_ghost_cursor.shared._spoof import (
21+
from python_ghost_cursor.shared._spoof import (
2222
path,
2323
should_overshoot,
2424
get_random_box_point,

pyppeteer_ghost_cursor/shared/_spoof.py renamed to python_ghost_cursor/shared/_spoof.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import random
33
import numpy as np
44
from typing import Union, Optional, Dict, List
5-
from pyppeteer_ghost_cursor.shared._math import (
5+
from python_ghost_cursor.shared._math import (
66
Vector,
77
magnitude,
88
direction,

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
# The text of the README file
88
README = (HERE / "README.md").read_text()
99
setuptools.setup(
10-
name="pyppeteer_ghost_cursor",
10+
name="python_ghost_cursor",
1111
version="0.2.1",
1212
description="Pyppeteer implementation of Xetera/ghost-cursor",
1313
long_description=README,
1414
long_description_content_type="text/markdown",
15-
url="https://github.com/mcolella14/pyppeteer_ghost_cursor",
15+
url="https://github.com/mcolella14/python_ghost_cursor",
1616
author="mcolella14",
1717
author_email="[email protected]",
1818
license="MIT",
1919
packages=setuptools.find_packages(),
20-
package_data={"pyppeteer_ghost_cursor": ["js/*.js"]},
20+
package_data={"python_ghost_cursor": ["js/*.js"]},
2121
install_requires=["bezier"],
2222
)

0 commit comments

Comments
 (0)