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>'
)
#### Get App Id ``` sauce_api.get_file_id() ```
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 ```json { "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>'
)
Metadata
Release files for sauce-storage-api 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sauce_storage_api-1.0.3.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sauce_storage_api-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / sauce_storage_api-1.0.3.tar.gz
| Download URL | sauce_storage_api-1.0.3.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30e77bd889d3191eaefcf4bf5ad10bf2a57fa332303bb272f9e53162ce6febee
|
|
BLAKE2b-256 checksum How to use checksums |
3ed76cc8a7c99ae53cab9a33f50ff82ce21ae7a76c7402e09645122788fa00bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / sauce_storage_api-1.0.3-py3-none-any.whl
| Download URL | sauce_storage_api-1.0.3-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ddb5e23405a57d93c895fb684c243986f5ca83005b7d3f7087852aa583edd8c
|
|
BLAKE2b-256 checksum How to use checksums |
99994304387256b05aa8893967e3dfe90f738b36639ff3975a229ce0f46aa4c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|