Skip to main content

📐 Cursory

Cursory Version Pypi Downloads

Cursory - Mouse Trajectory Factory. Generate 100% human-realistic Mouse Trajectories with Timings.


Install it from PyPI

pip install cursory

Basic Usage

from cursory import generate_trajectory

trajectory: list[tuple[float, float]]
timings: list[int]
trajectory, timings = generate_trajectory(target_start=..., target_end=...)

Example Trajectories

Random Points Same Points Points / Velocity
Random Points Same Points Points / Velocity

Methodology

Cursory generates Mouse Trajectories following these steps:

  1. Find a close matching human Trajectory: Cursory has a database of thousands of Trajectories recorded from real humans. It finds the closest matching Trajectory to the target Points with some amount of randomization.
  2. Morph the Trajectory: The Trajectory is morphed to fit the target Points exactly, while keeping the overall shape as close to the original as possible.
  3. Add Noise: The Trajectory is jittered and knotted, to alter positions slightly to avoid fingerprinting by hash-fingerprinting.
  4. Regenerating with Timings: The Trajectory is regenerated using the Trajectory Frequency, with some noise added to the timings to avoid.
  5. Re-Add Noise: The Trajectory is jittered and knotted, to alter positions slightly to avoid fingerprinting by hash-fingerprinting.
  6. Morph the Trajectory: The Trajectory is morphed to fit the target Points exactly, while keeping the overall shape to the original as possible.

[!WARNING]
Theoretically, it is possible to detect/fingerprint Mouse Trajectories generated by Cursory. But this would require an amount of compute power which is unfeasible. A greater risk of detection would be bad Trajectories, which is mitigated by the advanced algorithms used by Cursory.


Copyright and License

© Vinyzu
GNU GPL

(Commercial Usage is allowed, but source, license and copyright has to made available. Cursory does not provide and Liability or Warranty)


Thanks to

Pointergeist (For helping me understand Mouse Trajectories better).
sameelarif (For his awesome work on Scribe)
Margit Antal, Norbert Fejer, Krisztian Buza (For their work on SapiMouse)
MIMIC-LOGICS (For their Mouse-Synthesizer)


Disclaimer

This repository is provided for educational purposes only.
No warranties are provided regarding accuracy, completeness, or suitability for any purpose. Use at your own risk—the authors and maintainers assume no liability for any damages, legal issues, or warranty breaches resulting from use, modification, or distribution of this code.
Any misuse or legal violations are the sole responsibility of the user.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cursory-2.0.0.tar.gz (668.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cursory-2.0.0-py3-none-any.whl (661.4 kB view details)

Uploaded Python 3

File details

Details for the file cursory-2.0.0.tar.gz.

File metadata

  • Download URL: cursory-2.0.0.tar.gz
  • Upload date:
  • Size: 668.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cursory-2.0.0.tar.gz
Algorithm Hash digest
SHA256 bcf064948a8297446b8737dad286bdceb92522c7643781f3988c3bc11d058fe0
MD5 f91e889b013d73225c8dc3d032bce481
BLAKE2b-256 1fcb4247026545d2a351de0e737df29fabb0831575eb2d7a739d84fa4a2f7ea9

See more details on using hashes here.

Provenance

The following attestation bundles were made for cursory-2.0.0.tar.gz:

Publisher: publish.yml on Vinyzu/cursory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cursory-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: cursory-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 661.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cursory-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 142013f6bdb5f905b76c24955a167901a12580e87589a8de599d1007f7908e38
MD5 ed29377081c46ef9ac6945203f393d1b
BLAKE2b-256 10205da4e2c304aca1f6bf82a6b9bcf8270c342ef51bde0a342467dc9b993da2

See more details on using hashes here.

Provenance

The following attestation bundles were made for cursory-2.0.0-py3-none-any.whl:

Publisher: publish.yml on Vinyzu/cursory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page