Make it better!
Project description
项目介绍
这是一个 Python 和 Rust 混合编程的项目,主要目的是比较 Rust 和 Python 的性能差异。
说明
目前已经支持 64 位操作系统,包括 Windows,Linux,macOS 和 ARM64 架构的 Linux 系统。
安装
通过 pip install rshare --upgrade
来安装 rshare
体验 Rust 的极速体验!
使用
import rshare as rk
# Rust 接口
fetch_title_str = rk.fetch_title(url="https://www.baidu.com")
print(fetch_title_str)
# Python 接口
fetch_name_str = rk.fetch_name(url="https://www.baidu.com")
print(fetch_name_str)
构建
maturin build
maturin develop --release
版本说明
- Python 3.11
- Rust 1.74.1
注意事项
需要重新编译部分内容
更新
- 推送到 main
- 修改
Cargo.toml
中的版本号 - 打标签:
git tag v0.1.7
- 通过推送标签进行升级:
git push origin v0.1.7
镜像推送
docker build -t jindaxiang/newopen .
docker tag local-image:tagname jindaxiang/new-repo:tagname
docker push jindaxiang/new-repo:tagname
查看
贡献代码
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
rshare-0.1.8.tar.gz
(18.3 kB
view hashes)
Built Distributions
Close
Hashes for rshare-0.1.8-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b3e4f5eee9a91f43ea42cf8ec756cb6f5094b86c6626a6aaa0de9b5484d2f7d |
|
MD5 | 6767a2132ffcb4887b7d0a5a8689dbab |
|
BLAKE2b-256 | b151ae3b5bf0bbf117245a15fe10b62ed3c19067ae5c59c17f4fdeeec96319d5 |
Close
Hashes for rshare-0.1.8-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b77ba51b993d944067302fb79e31a9359287325a304fca5af287beb4da214bfc |
|
MD5 | 53705fc9d441d221a46ad3d47df4f498 |
|
BLAKE2b-256 | 1ddf7e5086bdc62fcde55272ae7330fa9ea49886a92bcb06ee3d0b5b4c874468 |
Close
Hashes for rshare-0.1.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30171e91f6d8d3a95f48ae763309df85a68fe89cefb350b34c324a8cf0f1edbe |
|
MD5 | 94ea2e6160a6b56cd945ce5f03becea3 |
|
BLAKE2b-256 | 6325ed14bbad17ff3f0c4b9ef181a462f1c8f697e49670f58a33fd5e88440009 |
Close
Hashes for rshare-0.1.8-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efbc203a4e4e98638b738c0c4988fe29002df41b65a0b5294b84d75554b61e50 |
|
MD5 | 2c41b5a72cfd250063cd865b12124718 |
|
BLAKE2b-256 | 5479470fa7d0426a506d6cca65a1572b8e130fc0713344e5144a7ac1f3488fe9 |
Close
Hashes for rshare-0.1.8-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1367b04f4f1d75618fc41a9ed58bb2f5f14f3cd36584ad3c220a03a2540e1a3e |
|
MD5 | 5bee8e930d6f3a884df189185c4bec03 |
|
BLAKE2b-256 | db6f96fa5faacc8bdb8fd725e8c72ca2521a03044f8ae5768df135b68c1ee997 |