SauceLab Api Python Client
Project description
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()
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
Built Distribution
Hashes for saucelab-api-client-0.5.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d2e5d6cdbc24da796aa25ae038b175c6e68a4230bc3ed2ddf2fc159b26d61b4 |
|
MD5 | 4f56b21291ebd6d6316a771c03301a0c |
|
BLAKE2b-256 | 09752e18449cf0389f6e775d02bc63c1f78a9e159de6d48450535b6cb637001d |
Hashes for saucelab_api_client-0.5.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99c5894de5b2f1110256c98e43b72f3c7e0a745a744a3598259a12790451e0b8 |
|
MD5 | 13aa2bee6daaa66328a47aded97f1dbc |
|
BLAKE2b-256 | c83dddc93dc5a635a517cf13a4748799b332a72536fd6c6d8f86cb901f7e8c8e |