Registry / aws / alibabacloud-sas20181203

alibabacloud-sas20181203

JSON →
library9.3.2pypypi✓ verified 84d ago

Official Alibaba Cloud SDK for Threat Detection (SAS) API version 2018-12-03. Current version 9.2.0, requires Python >=3.7. Released often alongside Alibaba Cloud API updates.

pip install alibabacloud-sas20181203
INSTALL
IMPORT
SIG · ALIBABACLOUD-SAS20
A
alibabacloud-sas20181203
awspythonv9.3.2
Install
10.8s avg
Import
3619ms
Disk
84MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v9.3.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 3.900s · 81.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 10.8s · import 3.338s · 84MB
84MB installed
● package 84MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
from alibabacloud_sas20181203.client import Client
from alibabacloud_sas20181203 import Client
Client is in the client submodule, not package root.
DescribeSecurityEventOperationsRequest
from alibabacloud_sas20181203.models import DescribeSecurityEventOperationsRequest
alibabacloud_sas20181203.models.DescribeSecurityEventOperationsRequest (for some earlier Alibaba SDKs models were directly importable; this SDK uses a dotted path from the models module)

Initializes a SAS client and calls DescribeSecurityEventOperations.

import os from alibabacloud_sas20181203.client import Client as SasClient from alibabacloud_sas20181203 import models from alibabacloud_tea_openapi import models as open_api_models config = open_api_models.Config( access_key_id=os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_ID', ''), access_key_secret=os.environ.get('ALIBABA_CLOUD_ACCESS_KEY_SECRET', ''), region_id='cn-hangzhou' ) client = SasClient(config) req = models.DescribeSecurityEventOperationsRequest( source_ip='127.0.0.1', lang='zh', security_event_id='<event_id>' ) try: resp = client.describe_security_event_operations(req) print(resp.body.to_map()) except Exception as e: print(e)
Debug
Known issues
breakingVersion 9.x changed the client import path. Before ~v7, Client was importable as `from alibabacloud_sas20181203 import Client`. In v9 you must use `from alibabacloud_sas20181203.client import Client`.
fix
Update imports: `from alibabacloud_sas20181203.client import Client`.
affects: <7.0 or >=9.0
deprecatedThe SDK is based on the deprecated Tea DSL. Alibaba Cloud recommends migrating to the newer SDK style (V2 SDK) in the future. No immediate breaking changes, but new APIs may not be backported.
fix
Consider using the newer V2 SDK if the service supports it.
affects: all
gotchaModels are not directly importable from the package root; you must import from `alibabacloud_sas20181203.models`.
fix
Use `from alibabacloud_sas20181203 import models` then `models.SomeRequest`.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'alibabacloud_sas20181203.client'
Using an older SDK version (e.g., <7.0) where Client was directly under the package or installing an incompatible version.
fix
Upgrade to latest: `pip install --upgrade alibabacloud-sas20181203` and use `from alibabacloud_sas20181203.client import Client`.
AttributeError: module 'alibabacloud_sas20181203' has no attribute 'Client'
Trying to import Client from the package root, which is not present in current versions.
fix
Change to `from alibabacloud_sas20181203.client import Client`.
Upgrade
Version history
9.3.2latest on PyPI · released Jun 1, 2026
Audit
Dependencies
alibabacloud-teaoptionalCore runtime for Tea-based SDKs
Agent activity
38 hits · last 30 days
node
30
Resources
alibabacloud-sas20181203 — pip install alibabacloud-sas20181203 · libregistry