Sym Python SDK
Sym is the security workflow platform made for engineers, by engineers.
We solve the intent-to-execution gap between policies and workflows by providing fast-moving engineering teams with the just-right primitives to roll out best-practice controls.
This is the Python SDK for Sym. For guides and other help, check out our main docs site.
The SDK docs are broken into several core modules, which are described below. Click on one to see the classes and functions available in your Handlers.
The Sym SDK is used to customize workflow templates that are exposed by our Terraform provider. Here’s an example using the sym:approve Template!
from sym.sdk.annotations import reducer
from sym.sdk.integrations import pagerduty, okta, slack
@reducer
def get_approvers(evt):
# The import here uses credentials defined in an Integration in Terraform
if pagerduty.is_on_call(evt.user, schedule="id_of_eng_on_call"):
# This is a self-approval in a DM
return slack.user(evt.user)
if evt.payload.fields["urgency"] == "Emergency":
# This is a self-approval in a channel
return slack.channel("#break-glass", allow_self=True)
on_call_mgrs = okta.group("OnCallManagers").members()
# This would cause each on-call manager to be DMed
return slack.group([slack.user(x) for x in on_call_mgrs])
If you’re interested in using Sym, please reach out!
Metadata
Release files for sym-sdk 0.61.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sym_sdk-0.61.0.tar.gz | 46.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sym_sdk-0.61.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 117.2 kB
Release files / sym_sdk-0.61.0.tar.gz
| Download URL | sym_sdk-0.61.0.tar.gz |
|---|---|
| Size | 46.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19bd8499d7eac07d317bcf5c045951f32fa069111e8ea348310e12849ffb623d
|
|
BLAKE2b-256 checksum How to use checksums |
a219445b572c37859fef6d64e28074b7fa949923309b6b697aaab07ea55b1539
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.8.13 Linux/5.15.0-1050-aws
|
Release files / sym_sdk-0.61.0-py3-none-any.whl
| Download URL | sym_sdk-0.61.0-py3-none-any.whl |
|---|---|
| Size | 70.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1ce58b7f20b2d701569a5b27d5ae66cd96a295b98cb8fcb1da0e53bed0dec7aa
|
|
BLAKE2b-256 checksum How to use checksums |
38b6f5777fd563470b1d17903ac128812b5b065dfd0da1cd0bc3dbced5105ff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.8.13 Linux/5.15.0-1050-aws
|