Skip to main content

Revyl CLI - AI-powered mobile app testing

Project description

Revyl Python SDK

Thin Python wrapper for the Revyl CLI and device API commands.

Install

pip install revyl

Authenticate

Use either:

revyl auth login

or:

export REVYL_API_KEY="rev_..."

Quickstart

from revyl import DeviceClient

device = DeviceClient.start(platform="ios", timeout=600)

device.tap(target="Login button")
device.type_text(target="Email", text="user@example.com")
device.type_text(target="Password", text="secret123")
device.tap(target="Submit")
device.screenshot(out="after-login.png")

device.stop_session()

Context Manager (Auto Stop)

from revyl import DeviceClient

with DeviceClient.start(platform="android") as device:
    device.tap(target="Get Started")
    device.swipe(target="feed", direction="down")

Available Device Methods

  • start_session, stop_session, stop_all, list_sessions, use_session, info, doctor
  • tap, double_tap, long_press, type_text, swipe, drag
  • screenshot, install_app, launch_app

All action methods support either:

  • grounded targeting via target="...", or
  • raw coordinates via x=... and y=...

Low-level CLI Access

from revyl import RevylCLI

cli = RevylCLI()
version = cli.run("version")
sessions = cli.run("device", "list", json_output=True)

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

revyl-0.1.6.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

revyl-0.1.6-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file revyl-0.1.6.tar.gz.

File metadata

  • Download URL: revyl-0.1.6.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for revyl-0.1.6.tar.gz
Algorithm Hash digest
SHA256 4a6dc475f02620cb1953d451b2a2b100d38a0983e5d84cbc9d19acf3afb8e65f
MD5 f9b5f41f3fa4e9f96901783ab0d39f81
BLAKE2b-256 c30b5fdd40bce3d89162aea9eaf826657f8094bd042a93cbb9625af1a49beb38

See more details on using hashes here.

File details

Details for the file revyl-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: revyl-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for revyl-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 afac738ae433ea0f727a0b3a2ef8dfbecc8622df2f10a7f5d03f67dd17884211
MD5 38e612eb433e131dcf5721298ac17669
BLAKE2b-256 968e2cb5b6d672858a6b77edfd4f8182c11b42de598c26118f2359343f3c232e

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