Skip to main content

WS Python SDK

Project description

Logo License CI Python 3.6 PyPI

WhiteSource Python SDK

SDK written in Python to simplify access to WhiteSource resources

Supported Operating Systems

  • Linux (Bash): CentOS, Debian, Ubuntu, RedHat
  • Windows (PowerShell): 10, 2012, 2016

How to build package

  1. Download the code: git clone https://github.com/whitesource-ps/ws-sdk.git
  2. Build wheel package python setup.py bdist_wheel

How to use

  1. Obtain connection details from WS Application (Home > Admin > Integration)
    1. Install package from Pypi: pip install ws-sdk OR
    2. Download wheel from GitHub and install : pip install ws-sdk*.whl

Execution

from ws_sdk.web import WS
ws = WS(api_url="WS_URL", user_key="USER_KEY", token="ORG_TOKEN")
all_alerts = ws.get_alerts()

scope = ws.get_scope_by_token(token="TOKEN_ID")

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ws_sdk-0.1.0.post1-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

Details for the file ws_sdk-0.1.0.post1-py3-none-any.whl.

File metadata

  • Download URL: ws_sdk-0.1.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for ws_sdk-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0cf8e0d469f812393db9c4ccc947f54369541d8c0d9323273860ee282c2929c
MD5 616ef84d5209228c16d757f35b8e9ac2
BLAKE2b-256 e64a479b8ab89c7df42f1b787246c0895f076bcef8b3bdec930229a48365ffbf

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