kb4.py: A Python wrapper for the KnowBe4 API
kb4.py is a simple Python wrapper for the KnowBe4 reporting API.
For more information on the API, please visit the KnowBe4 API documentation.
Installation
pip install kb4.py
Usage
from kb4 import KnowBe4
KB4_API_KEY='<Secret key obtained from KnowBe4 website.>'
kb4 = KnowBe4(KB4_API_KEY)
kb4.account()
kb4.users()
kb4.user(USER_ID)
kb4.groups()
kb4.group(GROUP_ID)
kb4.group_members(GROUP_ID)
kb4.phishing_campaigns()
kb4.phishing_campaign(CAMPAIGN_ID)
kb4.phishing_security_tests()
kb4.phishing_campaign_security_tests(CAMPAIGN_ID)
kb4.phishing_campaign_security_test(PST_ID)
kb4.phishing_campaign_security_test_recipients(PST_ID)
kb4.phishing_campaign_security_test_recipient(PST_ID, USER_ID)
kb4.store_purchases()
kb4.store_purchase(STORE_PURCHASE_ID)
kb4.policies()
kb4.policy(POLICY_ID)
kb4.training_campaigns()
kb4.training_campaign(CAMPAIGN_ID)
kb4.training_enrollments()
kb4.training_enrollment(ENROLLMENT_ID)
Contributing
All contributions are welcome and appreciated.
- Fork
- Feature branch
- Pull request
Meta
Josh Thomas - josh@joshuadavidthomas.com
Distributed under the MIT license. See LICENSE for more information.
Metadata
Release files for kb4.py 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kb4.py-0.1.2.tar.gz | 2.9 kB | Without provenance | Details for kb4.py-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kb4.py-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for kb4.py-0.1.2-py3-none-any.whl |
Total release size: 7.1 kB
Release files / kb4.py-0.1.2.tar.gz
| Download URL | kb4.py-0.1.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af8195074ea9c7ee11da1719350971826afb7bd1ce653386cc6ee92acdda5852
|
|
BLAKE2b-256 checksum How to use checksums |
7fadf89b4436a6a56ed97d29b98ad357ec2fd534af96f7f7e525547ee4cb6579
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / kb4.py-0.1.2-py3-none-any.whl
| Download URL | kb4.py-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6cc5f3392dcb1fda4a04ab597298000b2d3c089dc4a1de8a0a269cd53c73cc09
|
|
BLAKE2b-256 checksum How to use checksums |
d877942df73a6e570a973359e141c3eb5cd4258f0189266765be5d3f3cd19512
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Security for kb4.py 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.