Skip to main content

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 2 and python 3.

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


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.4.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

apphub-1.4.3-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file apphub-1.4.3.tar.gz.

File metadata

  • Download URL: apphub-1.4.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.20.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/2.7.15

File hashes

Hashes for apphub-1.4.3.tar.gz
Algorithm Hash digest
SHA256 c97beaaa6a6cb4fa5de3baa127897ab88a3c404d3a03cc4452b2f9ff40e14231
MD5 ef9f5bfbcab0d82824878dc2a854dc30
BLAKE2b-256 b84a21dd00f24e0ed7f07d8c9dc00fb738e6472e9db14b41890c1d6aaf27f3fc

See more details on using hashes here.

File details

Details for the file apphub-1.4.3-py2.py3-none-any.whl.

File metadata

  • Download URL: apphub-1.4.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.6.1 requests/2.20.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/2.7.15

File hashes

Hashes for apphub-1.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0a7fad06934bad23e324e9510a1384b6a458a8014e9b9491bc2ea9deb26db010
MD5 b5db814f0ab082525605fc1f4c138516
BLAKE2b-256 6db837e5176c04102e6d09d7d3f215f4569b56edb402a9606760bcb15578229e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page