Py bindings for aliyun log service sdk
Project description
介绍
这是一个使用 Maturin + PyO3 构建的库,用于加速 Aliyun SLS Python SDK。底层使用 Rust 语言编写,通过兼容 Python API,使得 Python 代码可以调用底层 Rust。
本仓库基于 pyo3 abi3-py37,支持 Python >= 3.7 的所有 Python 解释器,兼容性具体可参考文档abi3。
Rust 代码会被编译成动态库,然后被 Maturin 打包成 wheel 文件。不同平台上可以构建适用于该平台的 wheel 构建产物,也可以交叉编译。
编译
pip install maturin
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
执行构建脚本
./build.sh
交叉编译
也支持交叉编译,建议用 zig 交叉编译
pip install ziglang
rustup target add x86_64-unknown-linux-gnu
maturin build --release --target x86_64-unknown-linux-gnu --zig
测试
source .venv/bin/activate
pip install .[dev]
./test/test.sh
benchmark
export BENCHMARK_TEST_WORKDIR="your/workdir/path/with/dataset"
cargo bench
API
支持的 API 可以参考aliyun_log_py_bindings目录下的 pyi 文件
发布版本
打 tag,然后手动运行 Release Workflow,选择对应 tag。
Project details
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_py_bindings-0.0.5.tar.gz.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39d9cab1595257ff5626fd081580dc9c31d20b35ac4f06c79ece904c6c787cc7
|
|
| MD5 |
4f4bc2af0f6a92067740dc458585eae8
|
|
| BLAKE2b-256 |
48d3335a425bf34081855d0a80a733777f4cfae464189b39b21e85d93849cf29
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 296.4 kB
- Tags: PyPy, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cbdeef1165c7504c36a82b1ee570aaea781eeed061e456b29de69b47d3dc5c2
|
|
| MD5 |
a58c40e1ff8cbd6259738e92f6ea4ef9
|
|
| BLAKE2b-256 |
ac7e442f2f8aed4acf1f3da4eb006e6831801dee36ddc8ff20009e61232044bc
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 302.8 kB
- Tags: PyPy, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d84c8faee9b5b33292f7cc2ed04d79aa76b5ab6f5b1da1da210c172044c16f7
|
|
| MD5 |
4c5b392056b4762ff75671124c8d0c0d
|
|
| BLAKE2b-256 |
b965633ca1201f842a7cbc55ce33b0899f09b1c1199e8eb64b4b63e317045292
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 294.8 kB
- Tags: PyPy, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee1123774fed84bfd2ddd87acfe5805689cbd4e38787059148353912f4046f1d
|
|
| MD5 |
68c68d98e1d3104f2777b5970d6098ed
|
|
| BLAKE2b-256 |
8a56898f40fda34436cabc29b7139a4dd2e746bd54bcb6d98f7faa0d78bd3bc0
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 317.7 kB
- Tags: PyPy, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fdcc37b939cb624fab541fd5b5dcac294bee37ecb08ddb4d95d5560074f688f
|
|
| MD5 |
b1c633805cbe9236eaf4e248f73f389a
|
|
| BLAKE2b-256 |
2b43f0d8488519db1cd2ba03cdd55c976588623ccd0e97207420e6774820398c
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-win_amd64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 159.1 kB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3735493bb8e25e292310ec00047fde4ddc1068e2abadfe09c4b82b28c5a6f571
|
|
| MD5 |
c02d9d8ee8363b5df40de80d9b7b49cc
|
|
| BLAKE2b-256 |
24b51d495ef731e50d829f96207078d2ae01b89b3e58fc774f170a9b96c1c57b
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-win32.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-win32.whl
- Upload date:
- Size: 155.3 kB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8da1be80594765617d870c832a902e19bbf6313cdf009879f20a60fc1376d49e
|
|
| MD5 |
17108973097d605db1de630340bf0653
|
|
| BLAKE2b-256 |
803bdaf238e8a1c3957c1ab52fb542c06bbdca4399e11f2d0ae4ec7efaecddfb
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 472.2 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aee1318a203bcccd464cb8dfa86ce31472a20b073bd26fe805d968297bd646f
|
|
| MD5 |
3b9615c4c574ba7715443e14a5314a6e
|
|
| BLAKE2b-256 |
3297a07a716b4913c95266e4b08a918a301a13fcf643f681b37b6c0a3d61e6e8
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-musllinux_1_2_i686.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-musllinux_1_2_i686.whl
- Upload date:
- Size: 498.1 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40325082c224e241a012eea1f35bf3453aace5272d51c1b80998025188d7b848
|
|
| MD5 |
ec6d5dd77036f6e924cedc07f8d42a8f
|
|
| BLAKE2b-256 |
6cf56f96b7181f159061f1c897d42c167dbcfa47df13d63e489cdb00b16a6de4
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-musllinux_1_2_armv7l.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-musllinux_1_2_armv7l.whl
- Upload date:
- Size: 569.7 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f88902cbba1d1dd4142c1c3ef2a90be3f45650aea42b54684ecf725d3d319a17
|
|
| MD5 |
719cb6680bd5dcb1126825884ce90722
|
|
| BLAKE2b-256 |
eb608f00f018b6370787f37a6d8838e4960dfc2781d1cd37b2bbf2bcf713829b
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 477.9 kB
- Tags: CPython 3.7+, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14a686b31659dd5138870981d9a589b0b1d5868a759079f6229f952dc9fe9687
|
|
| MD5 |
bceaf26704180215ce1791d843369e89
|
|
| BLAKE2b-256 |
8aac04bf2db31f4f7699eeefc3c10ca5860bd2cb28335c031fe290b2ca131499
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 299.2 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3ed5c8996c231a504d3ff76c4b5bdb60718fe4aa2a1abbd27bcbf4d7bb9bcc9
|
|
| MD5 |
67157e678f721bb418e5042187159001
|
|
| BLAKE2b-256 |
b7d1db175d11ecd64b88c915fe2dbadd6a0c44a734250b65e50e7df84d0965c3
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 306.8 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c78e514088c1277747e4a0100e9360cd1a56f9e9ddcd0dc4ae218e2f24578aa
|
|
| MD5 |
90267744490f4e26f4d76e628dd0facc
|
|
| BLAKE2b-256 |
b183cfaeb6b4e4e2c06dace0a6a0a06da327061c81884216aeb9c0c73482bc99
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 297.3 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88bda09ed0824f0957d3dc88590969d3727dea3784dfc2c8f2c29de7f40ef2ca
|
|
| MD5 |
e1176884ecaae927e108072cd5bd2544
|
|
| BLAKE2b-256 |
bdce578191b7fff7b752c1f563b3639a70b82f9b914e910a5e5533ea886287be
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 321.8 kB
- Tags: CPython 3.7+, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e61b593683bbdb2a39a57043065864c224b333d39f0bf46a0d41c352f6a05df
|
|
| MD5 |
c83748d8b23245070647687364035038
|
|
| BLAKE2b-256 |
48136a0426e8c7508277477dfcdc7c9f6fd2a44296191fba43b3a99ccbfcd632
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 264.0 kB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ed30a85599abe0d7c4e993a9ec1ec709f273f006a006085345e90ce6c22c2da
|
|
| MD5 |
2cc78a3ca335db3ebf18114e85d38d0a
|
|
| BLAKE2b-256 |
eb98454ab8abf00bfc57633b813ca64e7a5fe4c501578c8b990f3719b2681342
|
File details
Details for the file aliyun_log_py_bindings-0.0.5-cp37-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: aliyun_log_py_bindings-0.0.5-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 271.8 kB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f33557d1c671b31101785e9569698f3143b04f118799edaa57b088cbc1561ff9
|
|
| MD5 |
552965fd037032787c9b6123cbde3da5
|
|
| BLAKE2b-256 |
fe452a676a59590bfed8fa76dd3015611babbf152fee485f65113dc32538ce3b
|