Fast protobuf serialization for Aliyun Log using PyO3 and quick-protobuf
Project description
aliyun-log-fastpb
中文文档 | English
Fast protobuf serialization for Aliyun Log using PyO3 and quick-protobuf.
Installation
pip install aliyun-log-fastpb
Quick Start
import aliyun_log_fastpb
# Prepare log data
log_group = {
"LogItems": [
{
"Time": 1234567890,
"Contents": [
{"Key": "level", "Value": "INFO"},
{"Key": "message", "Value": "Application started"}
]
}
],
"LogTags": [
{"Key": "hostname", "Value": "server-001"}
],
"Topic": "app-logs",
"Source": "192.168.1.100"
}
# Serialize to protobuf bytes
pb_bytes = aliyun_log_fastpb.serialize_log_group(log_group)
For binary data support, use serialize_log_group_raw:
log_group_raw = {
"LogItems": [
{
"Time": 1234567890,
"Contents": [
{"Key": "data", "Value": b"\x00\x01\x02\xff"}
]
}
],
"LogTags": [],
"Topic": "binary-logs",
"Source": ""
}
pb_bytes = aliyun_log_fastpb.serialize_log_group_raw(log_group_raw)
For nanosecond precision timestamps, use TimeNs field:
log_group = {
"LogItems": [
{
"Time": 1234567890,
"TimeNs": 123456789, # Nanosecond precision
"Contents": [
{"Key": "event", "Value": "transaction_completed"}
]
}
],
"LogTags": [],
"Topic": "transactions",
"Source": ""
}
pb_bytes = aliyun_log_fastpb.serialize_log_group(log_group)
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aliyun_log_fastpb-0.2.0.tar.gz.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91c714e76fb941c9a0db6b1aa1f4c56cb1626254ff5444c1179860f5e5b63d93
|
|
| MD5 |
8df98f23a4462c630058b5232afadff4
|
|
| BLAKE2b-256 |
b2cebe2bc51121ab88ba9fd9d1f743a5bc2402036a0c4fe88d658d70bf03618e
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-win_amd64.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 117.9 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbdcf7b85f0f3437c2a8e8a1db0ef5584d21468b7c7a358269a4c651c84f4a54
|
|
| MD5 |
962aba92bc35016a00c1f6427530e95d
|
|
| BLAKE2b-256 |
d572013c773af65875ed74876197d016f6fb58dd4c14348462546de96ff8ff8c
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-win32.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-win32.whl
- Upload date:
- Size: 112.2 kB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
967f9656c805602fd9be07d8c2756ad89204c852c99689c3c71aa035416ef42a
|
|
| MD5 |
9ab821cb9a853f205455153926d89675
|
|
| BLAKE2b-256 |
2b83fdb216167c825878456e69937433db14519c0513a9c450c6e0c200abb170
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 392.6 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae2f84ed0777e00045791044a56413f370afbd5b061505f5ded540c04b19c58e
|
|
| MD5 |
b980d461fc098f2a5058dccf54cdd801
|
|
| BLAKE2b-256 |
32115c715a1af59249485ea703ee4d34653e5403c8d9f50ae6fc80286fd7e9d8
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-musllinux_1_2_i686.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-musllinux_1_2_i686.whl
- Upload date:
- Size: 423.0 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5fbf0d41d8c0c964a3dc8dd0ee2e732f876b803e0ed3432550ef3b84dde84f1
|
|
| MD5 |
295e9d9b1d08b244106e7efaf52335f5
|
|
| BLAKE2b-256 |
0fa50daafb81d37e69981651722406eacf2e302d57fe787002b3e3d816cf411d
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-musllinux_1_2_armv7l.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-musllinux_1_2_armv7l.whl
- Upload date:
- Size: 484.3 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61f09df30232f1f5628d13310cf0e175171399ea1c75a8470e9f9d97b045bfb5
|
|
| MD5 |
ef084f1ceea83d973b163ab41e1219a2
|
|
| BLAKE2b-256 |
5f2417e26a16a9e147331dc161e5e3f2f327502e693eb15f229232c479ea990a
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 391.3 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a451809e2a062accbb8dae8750e507e58806e4a8da48d69215cdeef428e9d63
|
|
| MD5 |
9fbc63715ad1b92e90f6bea57d9f4715
|
|
| BLAKE2b-256 |
62f350200a879a4259efe6c562252ac6413036009efdfd83c6369a67d9f67fdb
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 221.9 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7c07a6d81a3eab6666949240da305236ed2350c305154d7e39fcc121fc52291
|
|
| MD5 |
f7deb4d78de3a5967d398ffc98886336
|
|
| BLAKE2b-256 |
562c02696108e224741a708d1812bfd11ab36c7c5743175e227b574e2cb7aef2
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 241.6 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd92c0b84ba300c1d1c227204c5f2fff243cea80bc3f9399293385e87c82ee3e
|
|
| MD5 |
76f9547e33d1cbbe9c33411f6fdc73e1
|
|
| BLAKE2b-256 |
e3f68e8ff4a696ee0232c8bb5de90136cf70be5897f3f6dbdeae449134393d02
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 339.9 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a86a6e11dd227d595fa23f69d30588446af19d045d1003bd1b66b5c9a55485
|
|
| MD5 |
01b1de37eebd2c1d3cca6ce3c07ffb02
|
|
| BLAKE2b-256 |
17b87266923774c406b78aff6bd5e5f3d1f86b0d1ff469e591bc3b5c113e8699
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
- Upload date:
- Size: 344.6 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fbc83cbaa51d332e5e68871c1200014f1f3de54a8cba4fb55a634ee145cd4e4
|
|
| MD5 |
2ab5a6ef031489e83c27dae33e3614e2
|
|
| BLAKE2b-256 |
dd249196b789addf90760b9eda18f080bad6d0b5c0855b680d35931cab1c5bea
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 215.7 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12b8bfddf0bc5450f16f1954c6387a73da124fae10d1205a17a0117e66bb56db
|
|
| MD5 |
9e79bd28660ae52377b72a390d294916
|
|
| BLAKE2b-256 |
58309b7585e4cb5bb7fb5e7ea257e98771b5846f55e1d79d401c92f7eee6232d
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 208.7 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
181fc61ac9934f58b0880fa5617a4a4dc709dba09f8be95b5a71e828f2e48053
|
|
| MD5 |
cdaddac900835746c715ad3c269f8227
|
|
| BLAKE2b-256 |
0162d5e1beb5d5b964387e665fad710ce917b849e23e00cac643d931d26f8274
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 238.4 kB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cff4fbdd0edff94adcee1dcabf16daacb5d336a12fc897887aa6e4f0ad25152
|
|
| MD5 |
365709e48ff9335bcdcc52ca119cb881
|
|
| BLAKE2b-256 |
f2de19b70b6fca8892e2d82ca8d7231378cf16f3158b6d8486484a8ca3bd5dc9
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 199.6 kB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2984aafc61ccbbf1db2589ce90b6d5a26e72dba137fb1fdf7f61ce3faa967c0
|
|
| MD5 |
ec3a539443aa21f18cc43ec266aa8f39
|
|
| BLAKE2b-256 |
9fe50a2aefe7e8ed364ae136896fd8f1a77b93b8b30a4eab7a642675a619f296
|
File details
Details for the file aliyun_log_fastpb-0.2.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: aliyun_log_fastpb-0.2.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 388.9 kB
- Tags: CPython 3.7+, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51633d92d2b349aed4843c0b503454fb4f7d73eeaaa54f82aa5a36c10c064ef5
|
|
| MD5 |
938b81cee034a4ec963b6cc2392036ab
|
|
| BLAKE2b-256 |
1c688456bfeb892e08f9abf676218995a3efed24ed41612bca8538c84e2de556
|