Registry / azure / azure-mgmt-streamanalytics

azure-mgmt-streamanalytics

JSON →
library1.0.0pypypiunverified

Microsoft Azure Stream Analytics Management Client Library for Python. Version 1.0.0 is the first stable release. Allows management of Stream Analytics jobs, inputs, outputs, functions, and transformations via Azure Resource Manager. Released weekly with Azure SDK updates.

pip install azure-mgmt-streamanalytics
INSTALL
IMPORT
SIG · AZURE-MGMT-STREAMA
A
azure-mgmt-streamanalytics
azurepythonv1.0.0
Install
2.7s avg
Import
Disk
26MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.0 · 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 0.000s · 27.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 28MB
26MB installed
● package 26MB
Code
Verified usage

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

StreamAnalyticsManagementClient
from azure.mgmt.streamanalytics import StreamAnalyticsManagementClient
from azure.mgmt.streamanalytics import StreamAnalyticsManagementClient

Authenticates using DefaultAzureCredential and lists all Stream Analytics jobs in the subscription.

import os from azure.identity import DefaultAzureCredential from azure.mgmt.streamanalytics import StreamAnalyticsManagementClient subscription_id = os.environ.get('AZURE_SUBSCRIPTION_ID', '') credential = DefaultAzureCredential() client = StreamAnalyticsManagementClient(credential, subscription_id) # List all jobs in the subscription for job in client.streaming_jobs.list(): print(job.name, job.properties.job_state)
Debug
Known issues
gotchaThe client constructor expects `credential` as first argument and `subscription_id` as second. Passing them in wrong order raises a confusing TypeError.
fix
Always use: StreamAnalyticsManagementClient(credential, subscription_id)
affects: all
deprecatedMethods like `create_or_update` and `get` require `job_name` parameter. Using positional arguments for optional parameters is error-prone.
fix
Use keyword arguments for optional parameters: create_or_update(resource_group_name, job_name, job, if_match=None, if_none_match=None)
affects: all
gotchaThe `list` method on `streaming_jobs` returns an iterator, not a list. Calling len() will fail.
fix
Convert to list: jobs = list(client.streaming_jobs.list())
affects: all
Upgrade
Version history
1.0.0latest on PyPI · released Jan 6, 2022
Audit
Dependencies
azure-mgmt-corerequiredCore management client functionality
azure-identityoptionalAuthentication via DefaultAzureCredential and other credential types
Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
1
Resources
azure-mgmt-streamanalytics — pip install azure-mgmt-streamanalytics · libregistry