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.17.tar.gz (12.2 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.17-cp311-cp311-win_amd64.whl (78.0 kB view details)

Uploaded CPython 3.11Windows x86-64

k_algo-0.1.17-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.17-cp311-cp311-musllinux_1_2_aarch64.whl (92.8 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

k_algo-0.1.17-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.17-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.17.tar.gz.

File metadata

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

Hashes for k_algo-0.1.17.tar.gz
Algorithm Hash digest
SHA256 1885d998e8725cfbda4faff1c69f06f619f42606fa381233c22ec972ed8f0e9e
MD5 00f66e1ebff3578ebb8957fcf79dda3f
BLAKE2b-256 c0bc343139efe45ee0ccc16c23ac7444517f5bf06f934180a3a290c7ac24ebc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k_algo-0.1.17-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.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 795e913ab9525d7dcf73da926d09d2d3694d8a6704b49ad2c05e7561f163b733
MD5 48738412dc7e5aeb06ec73c8d02a9444
BLAKE2b-256 795018afc2d02aeb919b1b8e7cfb7b383893bd9c3e4f97eaf6788d5e04c6ec3f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for k_algo-0.1.17-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9c9180dc8644d7b0fe50e05f693b10b3a6058873d7e6bcf5878819e779407400
MD5 0e81bfcf2732eac9aca30b74c11832e9
BLAKE2b-256 c7b1b3958270faafb27f3dc92a4a2bd6e34a88ac477c63a7607b5babfc7c83ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for k_algo-0.1.17-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 486c63fb5c75f61a9149ed37c2200627b134b34a7ed20e7891a81aeea17910b6
MD5 70179dadc7bce7328374b0165e82e120
BLAKE2b-256 84a71d342abfae170631237555dab2bc73fc86dda6387785e92879993d7e25a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for k_algo-0.1.17-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 69d787add080e215a389c1b15272bf1db75affbb1f9d16c2ff6e9e90fbac2947
MD5 0706686177a8cf3772996e654f145690
BLAKE2b-256 2af0e1ced5ab54940121318feb45b9dc462dda7ffb2fb10e5a61c9965ee95ca1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for k_algo-0.1.17-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 59fbb0dcf47061d791f28e27b7403317d4e8eed8cc9aaede7fe05a4576e37baf
MD5 3f9e8a59900a62ef6cdd5566200cf6ad
BLAKE2b-256 3afd883bbfec7e67d11ba2b04a9f620df2a9bd61027f2d8b28bc227739846244

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