Swimlane Apphub API 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 or greater.
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_elastic_kibana')
# Get One version of a swimlane bundle
get_one_version = ah.swimbundles.get('sw_elastic_kibana', '2.0.0')
ah.swimbundles.search(text="elastic")
# Download bundle by version
downloaded_bundle = ah.swimbundles.download('sw_elastic_kibana', '2.0.0')
clean_response(get_all_bundles)
srch_by_field = ah.swimbundles.search(fields={'vendor': "Elastic"})
srch_by_text = ah.swimbundles.search(text="Elastic")
# Save Latest Download Bundle to disk
save_to_disk('/tmp/elastic_security.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-2.1.0.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for apphub-2.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26a71baae286cf46e46e68ca156d2ffa91ff122df3d8c649ec53c5f445ac7e48 |
|
MD5 | 6af82bc10d66e02b823ec362d33abfa1 |
|
BLAKE2b-256 | 94861a213e1851de1c2baef7cbc98a69ef15cb7720419abb0b0f756e137b900d |