Skip to main content

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

k_algo-0.1.15.tar.gz (11.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

k_algo-0.1.15-cp311-cp311-win_amd64.whl (78.0 kB view details)

Uploaded CPython 3.11Windows x86-64

k_algo-0.1.15-cp311-cp311-musllinux_1_2_x86_64.whl (92.0 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

k_algo-0.1.15-cp311-cp311-musllinux_1_2_aarch64.whl (92.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

k_algo-0.1.15-cp311-cp311-manylinux_2_28_x86_64.whl (90.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

k_algo-0.1.15-cp311-cp311-manylinux_2_28_aarch64.whl (93.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

File details

Details for the file k_algo-0.1.15.tar.gz.

File metadata

  • Download URL: k_algo-0.1.15.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for k_algo-0.1.15.tar.gz
Algorithm Hash digest
SHA256 3e15f2923280e0f032c1645caa6200f1c95e04911b93b54697102cea6a43cbd4
MD5 9d3e5ff305b43517ae53ab28d325fdfb
BLAKE2b-256 415adae3f27c5659e004b508d74e6d05bce0506a414d0ddd1a5260a426292e29

See more details on using hashes here.

File details

Details for the file k_algo-0.1.15-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: k_algo-0.1.15-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

Hashes for k_algo-0.1.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0e433ee736de980aaadacede8331022c7491c6416886d77b8a6d78097e11c06f
MD5 60a2c029b8964f0477b46f402935eee3
BLAKE2b-256 28b1c25e6be7c0e348a5d591ffc113a9565556e2821c576442253054cf4e1ca5

See more details on using hashes here.

File details

Details for the file k_algo-0.1.15-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for k_algo-0.1.15-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 40e9ef8a624ab6c0d85e10f8d86a87e406af9a68f1ed6513960da61a10cbb26e
MD5 9515d6f97deb1c5982542f7254997afb
BLAKE2b-256 7da4cbf87905298834de0953400960b700cdb041a452fdef1d5a290bba2baa2f

See more details on using hashes here.

File details

Details for the file k_algo-0.1.15-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for k_algo-0.1.15-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 5338f1672ea0c1a62ee7ebfcbd3123676f159f8e724c2b4eb9b8afc0f8796471
MD5 f3b158b248eeee37642de59715abdb16
BLAKE2b-256 c406582424b005a081fda9b01668061019337f228fde6216c38fadbccfb3c2e0

See more details on using hashes here.

File details

Details for the file k_algo-0.1.15-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for k_algo-0.1.15-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 96571d8ea71c75ac9c525b55d473dfc98760edbb8243f14a568b3290b8deb845
MD5 7835da5b0f46ddd6f25b00392a885eee
BLAKE2b-256 74091da1f0ea9f51452acb9989a09999d20a5e8a17d406df5c3c70033e7d1f47

See more details on using hashes here.

File details

Details for the file k_algo-0.1.15-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for k_algo-0.1.15-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9b77b4f0c14b0834d62389ab44f18061dddedee30e1cbc2c48ad2d13a56059b2
MD5 5977fd5ae98907f2d425016b09e53eae
BLAKE2b-256 5db77a961dbd6d9e113c88ddb1afc61848dd0dfda81495fdafa64fcdf998f55d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page