Skip to main content

A10SA Script

Project description

PyPI Status Python Version License

Read the documentation at https://a10sa-script.readthedocs.io/ Tests Codecov

pre-commit Black

Library for manipulating Vorze A10 sex toy scripts.

Features

  • Read/Write/Convert supported script formats.

  • Export scripts as Buttplug Protocol v4 command sequences.

    • Buttplug Protocol v3 and earlier are no longer supported. For v3 and earlier support, use a10sa-script>=1.0,<2.0

Experimental features

Experimental features are not fully tested, use at your own risk.

  • Control Vorze devices directly via BluetoothLE (tested with CycloneSA, untested for UFOSA, PistonSA).

  • Control linear/funscript devices via Buttplug Protocol (requires Intiface Central 3.0 or later, tested with Handy).

Bluetooth functionality requires installation with ``[ble]`` dependencies.

Supported Formats

  • Vorze CSV

  • Afesta/LPEG VCSX (.bin)

  • Funscript JSON

Requirements

  • Python 3.11+

Installation

You can install A10SA Script via pip from PyPI:

$ pip install a10sa-script

Optional dependencies can also be installed to enable experimental feature support:

$ pip install a10sa-script[ble]

Usage

Convert VCSX Vorze_CycloneSA.bin to script_cyclone.csv:

>>> from a10sa_script.script import VCSXCycloneScript, VorzeRotateScript
>>> with open("Vorze_CycloneSA.bin", "rb") as f:
...     vcsx = VCSXCycloneScript.load(f)
>>> with open("script_cyclone.csv", "wb") as f:
...     VorzeRotateScript(vcsx.commands).dump(f)

Convert CSV script_piston.csv to script.funscript:

>>> from a10sa_script.script import VorzeLinearScript, FunscriptScript
>>> with open("script_piston.csv", "rb") as f:
...     csv = VorzeLinearScript.load(f)
>>> with open("script.funscript", "wb") as f:
...     FunscriptScript.from_vorze(csv).dump(f)

Convert funscript script.funscript to script_piston.csv:

>>> from a10sa_script.script import VorzeLinearScript, FunscriptScript
>>> with open("script.funscript", "rb") as f:
...     funscript = FunscriptScript.load(f)
>>> with open("script_piston.csv", "wb") as f:
...     funscript.to_vorze().dump(f)

Please see the Command-line Reference Usage for details.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, A10SA Script is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz’s Hypermodern Python Cookiecutter template.

Project details


Download files

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

Source Distribution

a10sa_script-2.0.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

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

a10sa_script-2.0.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: a10sa_script-2.0.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.2 CPython/3.12.3 Linux/6.14.0-1017-azure

File hashes

Hashes for a10sa_script-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2154a4e4c285d20d3ce377376197daff135c89ab052a7dcc0bb5737181247f10
MD5 fa56606a6169260ccfa57c9b0f15aad1
BLAKE2b-256 8ad237a833b9c6fabbfebf75c278cd683c6e0389247766c5620ff7884bae3969

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a10sa_script-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.26.2 CPython/3.12.3 Linux/6.14.0-1017-azure

File hashes

Hashes for a10sa_script-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4843392de27863a9e3e6f0b601195f18dcd00310da770393d54b534f15330a5
MD5 d6846b146b5e6ee79ee37f25fc4db7d2
BLAKE2b-256 54fae75229e79e72a37ccfd6f3b6dda6e7e354b7368e9d45c004c0626444fe7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page