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

Uploaded Source

Built Distribution

apphub-1.4.0-py2.py3-none-any.whl (6.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: apphub-1.4.0.tar.gz
  • Upload date:
  • Size: 5.6 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.0.tar.gz
Algorithm Hash digest
SHA256 c7af75015010aedd141bad584c9b622984c2432bba2a89e9a18b598d221fb10c
MD5 f3623c4591171f8bb3422c35a8704ec0
BLAKE2b-256 ce23379e455e7425d05b2f22f00b4ed75da086ac5319058008836acf6639cf11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apphub-1.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 79309f9570dc5bdf6cbf90d1ec9d16833ec02c1cdfa91343259b67639ad25cc7
MD5 9e6a035540e02f4d68196b7e1f0a9e68
BLAKE2b-256 db0e1db4bece531e9117d3724241ef6fceb0e57e30954ded9035e3c11229aa16

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