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
查看
贡献代码
关注 .vscode
用于 debug 代码,新增 .vscode 文件夹
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.9.tar.gz
(18.7 kB
view hashes)
Built Distributions
Close
Hashes for rshare-0.1.9-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41d25845e0eb40587a1c8ae0fe359203ac9dcb480741d0f11c54054f757b7397 |
|
MD5 | a1d0d9353ae014589dc7b4ea3346144a |
|
BLAKE2b-256 | c4ae0975be2afc28241571b6b0a7ef2ba06b93b69e1a6178dfbdb18583979003 |
Close
Hashes for rshare-0.1.9-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90ef98d8415a7b392acb3ba0fee412dc4c67c062327c42a8d5ca6a30494b1009 |
|
MD5 | 6e25583f705a6fd4a44c04e6fa0a5c11 |
|
BLAKE2b-256 | da70eb57b8144bfed4aed6e3870a1074bf1a2b3089c2874b59f09b022a89abd3 |
Close
Hashes for rshare-0.1.9-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51719a42b81dcd67fd6d9929c38be4ad4dfded59938f6d7d765b74bc31819a20 |
|
MD5 | 257f2fd6ce10b18121a1bb48703cfc4f |
|
BLAKE2b-256 | b7de89edda664acc1a7dd8146c1669a2123d808ec88bd46dbae5efaff4769fea |
Close
Hashes for rshare-0.1.9-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6d9d942362eff06ee5574b15795ee6a54aac646da9c2bc3a143876d2af00ce3 |
|
MD5 | 25e0c18221361665e22c18493304e79b |
|
BLAKE2b-256 | 99fb17609b0978a912ec5d5d5e62863287da87a490a2e396e400382b86e27806 |
Close
Hashes for rshare-0.1.9-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa04f9525e84eaffc981b801388d862554f47c2719cddbab95388b335b350cbc |
|
MD5 | 9e086643dc43d77717c4dde7d94f787e |
|
BLAKE2b-256 | cf82e9c5a995f6b52c27300fc0beca9d511ea072a53fe46e26f8dc5e0e480e9d |