aliyun-log-python-sdk
Aliyun log service Python client SDK
Decision gist · record as of 2026-08-14
Yes, if you are already using Alibaba Cloud Log Service and need a Python client. The SDK is actively maintained, permissively licensed, has no known vulnerabilities, and provides comprehensive API coverage. The high install friction (8 dependencies) and legacy Python 2.7 support are minor drawbacks; modern Python versions (3.7+) are well-supported. Not relevant if you are not using Alibaba's logging platform.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Alibaba Cloud credentials (endpoint, access ID, access key) and an active Alibaba Cloud Log Service account.
- High install friction due to 8 runtime dependencies including protobuf and lz4.
- Active maintenance with a recent release (1 day old) and steady repository activity, though the package targets both legacy Python 2.7 and modern versions.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-08-13 (1 days) · last repo commit 2026-08-13 · 176 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 411,703 downloads/mo, #6,855 on PyPI
Alternatives
Verify before relying
pip install aliyun-log-python-sdk
from aliyun.log import LogClient
client = LogClient('endpoint', 'access_id', 'access_key')
logs = client.get_logs('project', 'logstore', 'query')- Whether elasticsearch dependency is required for all use cases or only for migration features.
- Performance characteristics and throughput limits for high-volume log ingestion.
- Compatibility status with Python 2.7 given its EOL status and modern Python 3.12 support.
What it is and what it does
This is the official Python SDK for Alibaba Cloud Log Service, a managed logging platform. It provides programmatic access to all Log Service REST APIs, including log ingestion, querying, project/logstore management, and consumer group operations. The SDK wraps low-level HTTP calls into higher-level Python classes and utilities, reducing boilerplate and handling common patterns like automatic pagination and retry logic.
The package includes specialized features for production use: a Python logging handler for direct integration with standard Python logging, high-level consumer group support for distributed log consumption, and ETL capabilities for cross-logstore data transformation and migration. It also supports Elasticsearch data migration. With 8 runtime dependencies (six, requests, python-dateutil, elasticsearch, jmespath, dateparser, protobuf, lz4), installation has moderate friction, but the SDK is actively maintained and supports Python versions from 2.7 through 3.12.
Use it for
- Ingest application logs into Alibaba Cloud Log Service from Python applications for centralized log storage and analysis.
- Query and retrieve logs programmatically from Log Service for custom reporting, alerting, or post-processing workflows.
- Migrate log data from Elasticsearch or other sources into Alibaba Cloud Log Service using the SDK's migration utilities.
- Build ETL pipelines that transform and copy log data across multiple logstores within Log Service.
- Integrate Python's standard logging module with Alibaba Cloud Log Service via the provided logging handler.
- Manage Log Service projects and logstores (create, delete, update settings) from Python automation scripts.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using Alibaba Cloud Log Service and need a Python client.
The SDK is actively maintained, permissively licensed, has no known vulnerabilities, and provides comprehensive API coverage. The high install friction (8 dependencies) and legacy Python 2.7 support are minor drawbacks; modern Python versions (3.7+) are well-supported. Not relevant if you are not using Alibaba's logging platform.
Install
aliyun-log-python-sdk on PyPI
Before you install
High install friction due to 8 runtime dependencies including protobuf and lz4. Active maintenance with a recent release (1 day old) and steady repository activity, though the package targets both legacy Python 2.7 and modern versions.
Requires Alibaba Cloud credentials (endpoint, access ID, access key) and an active Alibaba Cloud Log Service account.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install aliyun-log-python-sdk
from aliyun.log import LogClient
client = LogClient('endpoint', 'access_id', 'access_key')
logs = client.get_logs('project', 'logstore', 'query')
Verify before relying
- Whether elasticsearch dependency is required for all use cases or only for migration features.
- Performance characteristics and throughput limits for high-volume log ingestion.
- Compatibility status with Python 2.7 given its EOL status and modern Python 3.12 support.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | 8 packagessixrequestspython-dateutilelasticsearchjmespathdateparserprotobuflz4 |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 411,703 / month, #6,855 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: PyPy |
Evidence: aliyun_log_python_sdk-0.9.50.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “alibaba cloud log service sdk”
- aliyun-log-python-sdkPython SDK for Alibaba Cloud Log Service that wraps the REST API to…
- alibabacloud-sls20201230Python SDK for Alibaba Cloud Log Service that provides programmatic…
- alibabacloud-gateway-slsProvides a gateway client for Alibaba Cloud's Simple Log Service…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also alibabacloud-sls20201230 · alibabacloud-gateway-sls-util · alibabacloud-gateway-sls · aliyun-log-fastpb · alibabacloud-actiontrail20200706 · tablestore · alibabacloud-openapi-util · alibabacloud-ecs20140526 · aliyun-python-sdk-core · dashscope