Lib to use saucelabs Application Storage API - https://wiki.saucelabs.com/display/DOCS/Application+Storage
Project description
Sauce Application Storage
This repository has the purpose of abstracting the use of the Application Store of Sauce Labs for real devices tests - https://wiki.saucelabs.com/display/DOCS/Application+Storage
Usage
Instantiate
from sauce_storage_api import SauceStorageApi
sauce_api = SauceStorageApi(
username='<username>',
access_key='<access_key>'
)
if you need different endpoint of https://api.us-west-1.saucelabs.com/v1
from sauce_storage_api import SauceStorageApi
sauce_api = SauceStorageApi(
username='<username>',
access_key='<access_key>',
sauce_api_endpoint='<your_sauceserver_endpoint>'
)
Upload your app
For upload your app to application storage
sauce_api.upload(
'<app_path>'
)
If you want to save your app with a different name of your computer
sauce_api.upload(
'<app_path>',
'<remote_name>'
)
Download uploaded app
If you need to download your app
sauce_api.download(
'<file_id>',
)
Edit uploaded app informations
If your need to upload some info of your app
response = api.edit(
'<file_id>',
{'item': {'description':'string'}}
)
Response will you get will be something like this
{
"item":{
"id": "str",
"owner":{
"id": "str",
"org_id": "str"
},
"name": "str",
"upload_timestamp": "timestamp",
"etag": "str",
"kind": "str",
"group_id": "int",
"description": "str",
"metadata":{
"identifier": "str",
"name": "str",
"version": "str",
"is_test_runner": "bool",
"icon": "str",
"version_code": "int",
"min_sdk": "int",
"target_sdk": "int"
},
"access":{
"team_ids":[
"str"
],
"org_ids":[
"str"
]
}
},
"changed": true
}
Warning !
The SauceLabs documentation doesn't explicit the fields you can change, so try your luck
Delete App
If want delete specific file
response = api.delete_app(file_id='<file_id>')
If want delete specific group of files
response = api.delete_app(group_id='<group_id>')
Files
If want to list all your files and properties
api.files(
q='<query>',
kind='<kind>',
file_id='<file_id>',
team_id='<team_id>',
page='<page>',
per_page='<per_page>'
)
Groups (App)
If want to list all your app's grouped and properties
api.files(
q='<query>',
kind='<kind>',
file_id='<file_id>',
team_id='<team_id>',
page='<page>',
per_page='<per_page>'
)
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
File details
Details for the file sauce_storage_api-1.0.0.tar.gz
.
File metadata
- Download URL: sauce_storage_api-1.0.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a712cb3c709eec6421edb3878615b566139f6e2e52f1fb5d6179a4cb5459597 |
|
MD5 | e4687e4da5eae9fe82c9a6300df4510b |
|
BLAKE2b-256 | ee48c420397d2563e74646af44bac31afd183a0e68da8a40ac68bc5690f31b92 |
File details
Details for the file sauce_storage_api-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sauce_storage_api-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef8230361a905491190832aa5d851c331f374686d0687499995dfd28d461764c |
|
MD5 | 713e8e276d00f81a0c020284e9145285 |
|
BLAKE2b-256 | 634ac4a1964ed09274f13d39ddec0e834a3619f84da7ea94ab8cabcae6cb55ac |