Skip to main content

Swimlane Bundle Development Package

Project description

PyAppHub

Python package for Swimlane AppHub API

Install

run pip install apphub from a terminal. Py 2 and Py 3 distributions are available.

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

Uploaded Source

Built Distributions

apphub-1.1.0-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

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

Uploaded Python 2

File details

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

File metadata

  • Download URL: apphub-1.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/2.7.14

File hashes

Hashes for apphub-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ca6cd640ec0c586f34b2b63f83b404452c02c3b1d5b9a63a7415a636f4d3d1f2
MD5 7ffb77941ed39a4df94829460de791a9
BLAKE2b-256 2255518414b92a9e6ab69f6b4123a19b1dca17bbd540ed2122dd02fff55ac1e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: apphub-1.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/2.7.14

File hashes

Hashes for apphub-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 49ad29e01ae1fcc70f92f2ce98c862f50f4d67cede7ae35ae00c0fd071060ec2
MD5 3ff68de920212fa058988a48e4450489
BLAKE2b-256 25a134cce0807867cb1a873d85e3a2108ebe078ff88c8ac1190fe3d6de38bd63

See more details on using hashes here.

File details

Details for the file apphub-1.1.0-py2-none-any.whl.

File metadata

  • Download URL: apphub-1.1.0-py2-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.38.0 CPython/2.7.14

File hashes

Hashes for apphub-1.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 53e20081bc05702eda0db0087d5e16256bc575d468dcabac889709994bc0713b
MD5 2265a529c5ab9e2680f214eafa5c73b1
BLAKE2b-256 a2473cb06ed91c89d76a3f0b45e5dca9aa5792b8ce9ef1393b88f8241237b44f

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