开发与发布
启动 venv 环境
python3 -m venv venv
source ./venv/bin/activate
pip install maturin
开发
编译
# 开发
maturin develop
测试
# 测试
python
>>> import ba_rocket
>>> ba_rocket.download_files([("https://tosv.byted.org/obj/labcv.ftp/tests/output1.mp4", "./test.jpg")], 1024 * 1024, 10)
Successfully downloaded https://tosv.byted.org/obj/labcv.ftp/tests/output1.mp4 in 5.63s
发布
构建 for mac
# 编译
maturin build --release
构建 for linux
构建 Docker 镜像
cd dockerfiles
docker build -t manylinux_maturin .
docker run --rm -v $(pwd):/io manylinux_maturin build --release
publish
# 发布
pip install --index-url https://test.pypi.org/simple/
maturin publish
Metadata
Release files for byted-barocket 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| byted_barocket-0.1.3.tar.gz | 16.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| byted_barocket-0.1.3-cp310-cp310-manylinux_2_31_x86_64.whl | CPython 3.10 | CPython 3.10 | Linux glibc 2.31+ x86-64 | Details |
Total release size: 3.1 MB
Release files / byted_barocket-0.1.3.tar.gz
| Download URL | byted_barocket-0.1.3.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b0b35f19eb7f959a0cf98661e357188329e60e60aa1ffe1aa6291f6a41aa946
|
|
BLAKE2b-256 checksum How to use checksums |
6639b9fe0c82666618f191276e50c88755c51657167375b083f15f73c2644628
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.6.0
|
Release files / byted_barocket-0.1.3-cp310-cp310-manylinux_2_31_x86_64.whl
| Download URL | byted_barocket-0.1.3-cp310-cp310-manylinux_2_31_x86_64.whl |
|---|---|
| Size | 3.1 MB |
| Tags | CPython 3.10 Linux glibc 2.31+ x86-64 |
|
SHA-256 checksum How to use checksums |
968ee09c8a077807ee1791874b58ca92a52711b75244031728bc07f677e0c2be
|
|
BLAKE2b-256 checksum How to use checksums |
56782285653463de07b2c8a9dff4cc94216b8456d6e5b81e782695cfac2e7b95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.6.0
|
Security for byted-barocket 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.