Example algo package with Cython-compiled submodules
Project description
建立虛擬環境
uv venv
輸出requirements.txt
uv pip compile pyproject.toml -o requirements.txt
安裝建置相依
uv pip install -r requirements.txt
建立 wheel
uv run python -m build --wheel python setup.py build_ext --inplace python -m build --wheel
清理所有產物
python setup.py clean
檢查 wheel 內容
unzip -l dist/algo-0.1.0-*.whl
✅ algo/init.py
✅ algo/func01/func01.cpython-*.so
✅ algo/func02/func02.cpython-*.so
✅ algo-0.1.0.dist-info/*
安裝並測試
uv pip install dist/algo-0.1.0-*.whl
uv run python - <<'PY' import algo print("5! =", algo.factorial(5)) print("Fib(10) =", algo.fib(10)) PY
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 k_algo-0.1.16.tar.gz.
File metadata
- Download URL: k_algo-0.1.16.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feb840e118b26d2d05fac44f87d5101907edf7a70bb233ab3c1cd229fb4bcc65
|
|
| MD5 |
da302a0a9746e25838d6423cf67a314f
|
|
| BLAKE2b-256 |
27fe69bdf565cd23b722d42952a43a47b8288e0cc15965f71cf2c6e324368b67
|
File details
Details for the file k_algo-0.1.16-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: k_algo-0.1.16-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 78.0 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002149ff598859631098eb542ab155af5aa01650e004295b3a1d54ededcd3cff
|
|
| MD5 |
cff738b47df8307fa122dac6d926856e
|
|
| BLAKE2b-256 |
837d9699b2b62942f08ff31aa7e79a15180b0e70683ca6bdb1368e32c30f3bac
|
File details
Details for the file k_algo-0.1.16-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: k_algo-0.1.16-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 92.0 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5721c05a2eaf2d2152c7905d9da44ebe69ccbbf2d43ff39924ff71873cb04c48
|
|
| MD5 |
65e9c2d09d392185cfb9b18116428651
|
|
| BLAKE2b-256 |
fab26aebd433efbe34d8b06e776871a2017dfde67dee9971c2cf6b380c599e73
|
File details
Details for the file k_algo-0.1.16-cp311-cp311-musllinux_1_2_aarch64.whl.
File metadata
- Download URL: k_algo-0.1.16-cp311-cp311-musllinux_1_2_aarch64.whl
- Upload date:
- Size: 92.8 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
305aab4866b008504960af13e7917bc7116456ab35faa2c4ca640fc39e314acd
|
|
| MD5 |
622073632169c3e3520df9b412ed1c6d
|
|
| BLAKE2b-256 |
ebe95384ecdfa108b89ab9b88ef1c6721a8231db762b3f055ea2550e4e97945e
|
File details
Details for the file k_algo-0.1.16-cp311-cp311-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: k_algo-0.1.16-cp311-cp311-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 90.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cbe0728dc9def85ffc3c41e124f1eb3ff876cd40912eed0f0eb9f449db0158a
|
|
| MD5 |
307b5796687b8f0ede63b24b607b8b6a
|
|
| BLAKE2b-256 |
c926014dbbb2e478bdf99f10a4defb67e9e5e7df2ab7729f93b861c6e6794eb3
|
File details
Details for the file k_algo-0.1.16-cp311-cp311-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: k_algo-0.1.16-cp311-cp311-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 93.4 kB
- Tags: CPython 3.11, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
188baba884ac6c0246c704ed411a0300c48a12aa756bd575536a428438ff8c51
|
|
| MD5 |
003e4b2bb1747d95e94c12e9a0b24437
|
|
| BLAKE2b-256 |
b56aec06799d021e0d05f0926a6cd37aaa6012a126b2950937b338c11fe5b65f
|