LovensePy is a full-featured Python client designed for seamless integration with the Lovense API. It supports multiple modes including LAN Game Mode, Cloud Server API, and WebSocket management for real-time toy events. Built for high performance and asynchronous automation, it facilitates easy control and interaction with Lovense devices.
LovensePy is a robust Python client designed for seamless integration with the Lovense API. This powerful library supports various modes of operation, including LAN Game Mode, Cloud Server API, and the Socket API for WebSocket connections, enabling real-time toy events and efficient asynchronous automation.
GetToys, Function, Stop, Pattern, and Preset.get_qr_code functionality for quick QR pairing.Getting started with LovensePy is straightforward. First, ensure you have the Lovense Remote or Lovense Connect app installed and that your Lovense toy is paired. The client functionality can be initiated with just a few lines of code:
from lovensepy import LANClient, Actions
client = LANClient("MyApp", "192.168.1.100", port=20011)
client.function_request({Actions.VIBRATE: 10}, time=3)
This example demonstrates how to make your Lovense toy vibrate at level 10 for 3 seconds. The time parameter specifies the duration in seconds, allowing for a simple yet rich interaction with the device.
LovensePy offers a variety of client options depending on the connectivity method:
The repository includes numerous examples for quick reference, such as:
All functionalities come with detailed documentation and usage patterns, making it easier to leverage the full potential of the Lovense ecosystem.
For documentation, tutorials, and further assistance, refer to the GitHub repository where examples and detailed descriptions can guide users through setup and usage.
LovensePy stands out for its high performance and flexibility, ensuring an engaging experience with Lovense toys through straightforward API interactions.
No comments yet.
Sign in to be the first to comment.