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:
- Directly set credentials in class constructor
from saucelab_api_client.saucelab_api_client import SauceLab
saucelab = SauceLab('your_host', 'your_username', 'your_token')
- 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()
- 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.4.1
- 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 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
saucelab-api-client-0.4.2.tar.gz
(23.2 kB
view hashes)
Built Distribution
Close
Hashes for saucelab-api-client-0.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 384db4268be451a215ba61c6dc3064e19e52eb434b42d8ab1c6c95b5e33e13f2 |
|
MD5 | 9fd8ad578892a6f6b54391a48b466325 |
|
BLAKE2b-256 | d371325395be63318f674b2612878af957b7cd22fc84431ca045d80f9ab14f57 |
Close
Hashes for saucelab_api_client-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 091f991cf9a9a0dce150075bc50855570fd5de7a459e680eeee3311e7dac202e |
|
MD5 | 66e99b91e779d5d39209fe3a2b76aa5e |
|
BLAKE2b-256 | 2d57cf2bb54fe0010248a1987ac996a6b3c8b35ed3eb4a61cd865985f4e2aca3 |