Swimlane Bundle Development Package
Project description
PyAppHub
Python package for Swimlane AppHub API
Install
run pip install apphub
from a terminal. This package is available for python 3.6 and above.
Examples
Below are a few basic python examples to get started.
Note: If sw_
is not found at the beginning of a name, the client will
add it for you.
from apphub import AppHub, save_to_disk, clean_response
ah = AppHub('username', 'password')
#Get all swimlane bundles
get_all_bundles = ah.swimbundles.get()
# Get All versions of a swimlane bundle
get_all_versions = ah.swimbundles.get('sw_carbon_black_defense')
# Get One version of a swimlane bundle
get_one_version = ah.swimbundles.get('sw_carbon_black_defense', '1.1.1')
# Clean up get response to return simple data {'<bundle_name>': [<list_of_versions>]}
clean_response(get_all_bundles)
# Search for bundles
srch_by_field = ah.swimbundles.search(fields={'vendor': "Carbon Black"})
srch_by_text = ah.swimbundles.search(text="Carbon Black")
#Download bundle by version
downloaded_bundle = ah.swimbundles.download('sw_carbon_black_defense', '1.1.1')
#Save Latest Download Bundle to disk
save_to_disk('/filepath/carbon_black_defense.zip', downloaded_bundle)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apphub-1.1.1.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file apphub-1.1.1.tar.gz
.
File metadata
- Download URL: apphub-1.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2fb92369641ccde8370a89bd09ef916cf694edc0d53a8bf5022180c5e0741bc |
|
MD5 | 15ccb16cf55067d5a20806e598297e33 |
|
BLAKE2b-256 | b0aa9280f654f9ee48a482640fb7bf2ca5e3fff0131fa0a0472dee01b3c1be83 |
File details
Details for the file apphub-1.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: apphub-1.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d855de0dedf494c67db50a56bd94d3a33adacabc6635d7cea8389b1204e0eeec |
|
MD5 | 3b1c3f4bbb865fb6dcaaec1abf1dbae5 |
|
BLAKE2b-256 | aaa670cb78e80a1a9055ebb91547d35ee7dd6d49ec27d01e81e0a3bdcdd62ba2 |