feat: initial release of human_mouse v0.1.0
A small Python library for replaying real human mouse trajectories from the SapiMouse dataset onto a Playwright page. Designed for ML-based bot-detection research, behavioral biometrics prototyping, and replay-based test fixtures. Public API: load_all_segments, pick_segments, affine_warp, upsample, replay, replay_random, download_sapimouse. - src/ layout with hatchling build backend - 23 pytest tests (10 transform unit + 13 integration) - MIT license, PEP 561 py.typed marker - python -m human_mouse download for one-shot dataset fetch - examples/cloakbrowser_demo.py demonstrates end-to-end use with CloakBrowser Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
47
pyproject.toml
Normal file
47
pyproject.toml
Normal file
@@ -0,0 +1,47 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "human_mouse"
|
||||
version = "0.1.0"
|
||||
description = "Replay real human mouse trajectories from the SapiMouse dataset onto a Playwright page."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
license = "MIT"
|
||||
keywords = ["mouse", "trajectory", "sapimouse", "playwright", "bot", "automation"]
|
||||
classifiers = [
|
||||
"Development Status :: 3 - Alpha",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Topic :: Software Development :: Libraries :: Python Modules",
|
||||
]
|
||||
dependencies = [
|
||||
"numpy>=1.24",
|
||||
"playwright>=1.40",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
demo = ["cloakbrowser>=0.3.27"]
|
||||
dev = ["pytest>=7.0"]
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/your-org/human_mouse"
|
||||
"SapiMouse dataset" = "https://www.ms.sapientia.ro/~manyi/sapimouse/sapimouse.html"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/human_mouse"]
|
||||
|
||||
[tool.hatch.build.targets.sdist]
|
||||
include = [
|
||||
"src/human_mouse",
|
||||
"examples",
|
||||
"tests",
|
||||
"README.md",
|
||||
"pyproject.toml",
|
||||
]
|
||||
Reference in New Issue
Block a user