Skip to main content

saucelab-api-client

saucelab-api-client - is a client for provide integration with SauceLab

General information about SauceLab Api

Requirements

  • requests

Installation

pip install saucelab-api-client

Configuration Starting from version 0.3 you can configure saucelab client credentials with 3 way:

Way 1. Directly set credentials in class constructor

from saucelab_api_client.saucelab_api_client import SauceLab
saucelab = SauceLab('your_host', 'your_username', 'your_token')

Way 2. Set credentials in pytest.ini or in saucelab.ini This files must be in root folder project path Add group [saucelab] Add variables:

  • saucelab_username
  • saucelab_token
  • saucelab_host

Example pytest.ini or saucelab.ini

[saucelab]
saucelab_username = your_username
saucelab_token = your_token
saucelab_host = your_host

When you add credentials to ini file:

from saucelab_api_client.saucelab_api_client import SauceLab
saucelab = SauceLab()

Way 3. You can set environment variables:

  • SAUCELAB_USERNAME
  • SAUCELAB_TOKEN
  • SAUCELAB_HOST

When you add credentials to environment variables:

from saucelab_api_client.saucelab_api_client import SauceLab
saucelab = SauceLab()

Features in version: 0.5

  • Supported api:
    • accounts
    • platform
    • real devices
    • real devices jobs
    • jobs
    • storage
    • sauce connect
  • Powerful device filter - saucelab.devices.filter_devices()
  • Added list support for parameters in devices filter
  • Added driver generation
  • Added base64 credentials encoding

TODO

  • Add support:
    • performance

Usage examples

teams = saucelab.accounts.account_team.teams()
devices = saucelab.devices.filter_devices(min_os_version='14.4.1', max_os_version='14.9')
apps = saucelab.storage.files()

Metadata

Release files for saucelab-api-client 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saucelab-api-client 0.6.2
File Size Uploaded Provenance Actions
saucelab-api-client-0.6.2.tar.gz 24.3 kB Without provenance Details for saucelab-api-client-0.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for saucelab-api-client 0.6.2
File Interpreter ABI Platform Actions
saucelab_api_client-0.6.2-py3-none-any.whl Python 3 none any Details for saucelab_api_client-0.6.2-py3-none-any.whl

Total release size: 57.3 kB

Release files / saucelab-api-client-0.6.2.tar.gz

Download URL saucelab-api-client-0.6.2.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ec8b97019736f63e43694db8786066e82af47190bdf9cafb2ae1afb3ad5aa0a2
BLAKE2b-256 checksum
How to use checksums
dc7373ee663cdcf06a0d05f3d48288ab6e990ad7c394b20a99ae0bcaac39c71a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

Release files / saucelab_api_client-0.6.2-py3-none-any.whl

Download URL saucelab_api_client-0.6.2-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
756793b4caf4d47b3151cebd7044f2241c50162ef2f89e16eabfc112f5f9469f
BLAKE2b-256 checksum
How to use checksums
af5e10aec7709441168dee5f78b2b9b00783fe10d74ba7a00898b81a1dbc8bbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

Security for saucelab-api-client 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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