aliyun-log-fastpb
Fast protobuf serialization for Aliyun Log using PyO3 and quick-protobuf
Decision gist · record as of 2026-08-14
Yes, if you are sending logs to Aliyun Log Service and need faster protobuf serialization than pure-Python libraries provide. The Rust implementation, zero runtime dependencies, and broad platform coverage make it a straightforward drop-in for Aliyun-specific logging pipelines. Install friction is moderate due to compiled wheels, but prebuilt binaries cover most common environments. No known security issues and active maintenance status support adoption.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or later; binary wheels cover common platforms but uncommon architectures may require a Rust toolchain to compile.
- Medium install friction due to compiled wheels; prebuilt binaries available for common platforms (x86_64, ARM, PowerPC, s390x on Linux/macOS/Windows, plus musl variants), but requires Python 3.7+ and may need fallback compilation on uncommon architectures.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects.
last release 2026-04-28 (108 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 119,144 downloads/mo, #12,086 on PyPI
Alternatives
Verify before relying
pip install aliyun-log-fastpb
import aliyun_log_fastpb
log_group = {
"LogItems": [{"Time": 1234567890, "Contents": [{"Key": "level", "Value": "INFO"}]}],
"Topic": "app-logs",
"Source": "192.168.1.100"
}
pb_bytes = aliyun_log_fastpb.serialize_log_group(log_group)- Whether the package is actively maintained beyond the 108 days since latest release (repo metadata unavailable).
- Performance benchmarks comparing this implementation to pure-Python protobuf alternatives.
- Compatibility with Aliyun Log Service API versions and any breaking changes in protobuf schema.
What it is and what it does
Aliyun-log-fastpb is a Rust-based protobuf serializer for Aliyun Log (SLS) data structures, designed to accelerate the conversion of log dictionaries into binary protobuf format. It wraps quick-protobuf and PyO3 to provide native-speed serialization without the overhead of pure-Python implementations. The package accepts log data as Python dictionaries containing LogItems (with timestamps and key-value content pairs), LogTags, topic, and source fields, then converts them directly to protobuf bytes suitable for transmission to Aliyun Log Service.
The package supports three serialization modes: standard text-based content, binary data (for non-UTF-8 payloads), and nanosecond-precision timestamps via an optional TimeNs field. It targets Python 3.7 through 3.12 on CPython and PyPy, with precompiled wheels for x86_64, ARM, PowerPC, s390x, and i686 architectures across Linux, macOS, and Windows, plus musl-based systems. No runtime dependencies are required beyond Python itself.
Use it for
- Batch-serialize application logs to protobuf for high-throughput ingestion into Aliyun Log Service.
- Convert structured log events (with timestamps and key-value pairs) to binary format for network transmission.
- Handle binary log payloads (e.g., encoded traces, metrics) that cannot be represented as UTF-8 strings.
- Achieve nanosecond-precision event timing in log records for microsecond-scale event correlation.
- Integrate log serialization into performance-critical paths where Python overhead is unacceptable.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are sending logs to Aliyun Log Service and need faster protobuf serialization than pure-Python libraries provide.
The Rust implementation, zero runtime dependencies, and broad platform coverage make it a straightforward drop-in for Aliyun-specific logging pipelines. Install friction is moderate due to compiled wheels, but prebuilt binaries cover most common environments. No known security issues and active maintenance status support adoption.
Install
aliyun-log-fastpb on PyPI
Before you install
Medium install friction due to compiled wheels; prebuilt binaries available for common platforms (x86_64, ARM, PowerPC, s390x on Linux/macOS/Windows, plus musl variants), but requires Python 3.7+ and may need fallback compilation on uncommon architectures.
Requires Python 3.7 or later; binary wheels cover common platforms but uncommon architectures may require a Rust toolchain to compile.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects.
Quickstart
pip install aliyun-log-fastpb
import aliyun_log_fastpb
log_group = {
"LogItems": [{"Time": 1234567890, "Contents": [{"Key": "level", "Value": "INFO"}]}],
"Topic": "app-logs",
"Source": "192.168.1.100"
}
pb_bytes = aliyun_log_fastpb.serialize_log_group(log_group)
Verify before relying
- Whether the package is actively maintained beyond the 108 days since latest release (repo metadata unavailable).
- Performance benchmarks comparing this implementation to pure-Python protobuf alternatives.
- Compatibility with Aliyun Log Service API versions and any breaking changes in protobuf schema.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 108 days since the last release |
| First released | |
| Downloads | 119,144 / month, #12,086 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming 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 :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust |
Evidence: aliyun_log_fastpb-0.3.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-macosx_10_12_x86_64.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-musllinux_1_2_aarch64.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-musllinux_1_2_armv7l.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-musllinux_1_2_i686.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-musllinux_1_2_x86_64.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-win32.whl; aliyun_log_fastpb-0.3.0-cp37-abi3-win_amd64.whl
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 › “aliyun log protobuf serialization”
- aliyun-log-fastpbSerializes Aliyun Log data structures to protobuf bytes using…
- 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…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also betterproto-rust-codec · aliyun-log-python-sdk · foxglove-schemas-protobuf · aristaproto · alibabacloud-gateway-sls-util · opentelemetry-exporter-otlp-proto-common · opentelemetry-proto · protobuf-py-ext · protobuf-py · pure-protobuf