Skip to main content

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)

Metadata

Release files for apphub 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apphub 2.1.0
File Size Uploaded
apphub-2.1.0.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apphub 2.1.0
File Interpreter ABI Platform
apphub-2.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 12.8 kB

Release files / apphub-2.1.0.tar.gz

Download URL apphub-2.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b23a854451b30b30a268752c12901ae9f4994b86a46ced00c36501caa2b7102f
BLAKE2b-256 checksum
How to use checksums
e9c39da5f0cae76b127aae47fcc1b0e5d766020fc1e25c33bb8812c85e0590b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.5

Release files / apphub-2.1.0-py2.py3-none-any.whl

Download URL apphub-2.1.0-py2.py3-none-any.whl
Size 7.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
26a71baae286cf46e46e68ca156d2ffa91ff122df3d8c649ec53c5f445ac7e48
BLAKE2b-256 checksum
How to use checksums
94861a213e1851de1c2baef7cbc98a69ef15cb7720419abb0b0f756e137b900d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.5

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page