WS Python SDK
Project description
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 and install package from source
- Download the code:
git clone https://github.com/whitesource-ps/ws-sdk.git
- Build wheel package
python setup.py bdist_wheel
- Download wheel from GitHub and install :
pip install ws-sdk*.whl
How to install package
- Obtain connection details from WS Application (Home > Admin > Integration)
- Install package from Pypi:
pip install ws-sdk
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.3.1-py3-none-any.whl
(21.9 kB
view details)
File details
Details for the file ws_sdk-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: ws_sdk-0.3.1-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f0e8ed7b0e76bd6e0e6ab59f15a53a5850eb47be67dc809517a4e074d22f6b |
|
MD5 | ffa7aacd22afcbfcf56decf505b52a71 |
|
BLAKE2b-256 | b8c9b20e6d1bc5c286cac995bd5a3ef5f5b23dba4ce745e9d6abbf4b8b7932d9 |