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.7 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.0.0.tar.gz
(5.7 kB
view details)
Built Distribution
File details
Details for the file apphub-2.0.0.tar.gz
.
File metadata
- Download URL: apphub-2.0.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22ad2723c151a7628bc88160e3d307e40d672153d01b26cc1e1da617302108e6 |
|
MD5 | 0dc1dbdbcf0477ca188d8684bf91152e |
|
BLAKE2b-256 | 71710a2a5681d129e8e5ba3d5fba019d9b64e2f384188004923a800514e574c1 |
File details
Details for the file apphub-2.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: apphub-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 429b942f4686aae2d363c50bf1caec609442ce1a0c7d4a02c910126d5c4f27df |
|
MD5 | 75d9b2901f64682b381f02a1d4d6e3d0 |
|
BLAKE2b-256 | 38eb4760de23e3736e1d8e897a6a06760aa68a92a09ca68dd5a9a99c965203db |