dashu-rs
What is dashu?
dashu is an arbitrary-precision number library
written in pure Rust, aiming to be a Rust-native alternative to GNU GMP + MPFR. It
provides unlimited-precision integers, rationals, floats, and complex numbers with
correct rounding, split across a set of Rust crates (dashu-int, dashu-float,
dashu-ratio, dashu-cmplx, …).
What is dashu-rs?
dashu-rs is a standalone Python package that brings dashu's number types to
Python. It is a native extension built with PyO3, distributed as
a prebuilt wheel on PyPI, and installs
anywhere with pip — no Rust toolchain, no compiler, and no knowledge of the
dashu Rust crates required:
pip install dashu-rs
from dashu import UBig, IBig, RBig, FBig, DBig, CBig
The exposed types — arbitrary-precision integers (UBig/IBig), rationals
(RBig), binary/decimal floats (FBig/DBig), and complex numbers (CBig) —
are Send + Sync (free-threaded-Python compatible), accept native Python
numbers in their constructors, and interoperate with int/float/Fraction in
arithmetic.
Usage
See USAGE.md for the full guide — installation, constructors,
operations, formatting, transcendentals, and the module-level math API.
It is also rendered in the dashu user guide at https://zyxin.xyz/dashu/python.html.
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 dashu_rs-0.6.0.tar.gz.
File metadata
- Download URL: dashu_rs-0.6.0.tar.gz
- Upload date:
- Size: 691.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddb6bcb8d880f6bc9164cfb856cab6db284ef9dfba1f29e748423ebaa53005b5
|
|
| MD5 |
b0796dabbea09f412d17d8b1bb83ac1e
|
|
| BLAKE2b-256 |
5ce4537c18aab173b195ffa775cba2860fff1a31c084b2858a08dbb82e2034eb
|
File details
Details for the file dashu_rs-0.6.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3614c88c24436f7562b48390a03c252f609d233814096ee20f1b0faf5811438a
|
|
| MD5 |
00d7a1492d3d04b6ee465bf13d3bde0e
|
|
| BLAKE2b-256 |
1932ecdbc53601e8280c7720fadee4ea78a826fac94beb91d6d2e6271a7c3c2b
|
File details
Details for the file dashu_rs-0.6.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.14, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8b72b9533c62404e1434b794c354d457b0e65ec990a566791ea1a654ade267f
|
|
| MD5 |
7fc369f28b34e05b8677a38193aff83b
|
|
| BLAKE2b-256 |
24e37b12abbe6df565e05df9ac485aa4d5cb1832265bf11726f17283ada9edc2
|
File details
Details for the file dashu_rs-0.6.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.14, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2f4c4627b0abdc00aefea0c3e2611990acce4e73583cd46cede5bd941a78d67
|
|
| MD5 |
8e94ce29a6ceef2b4fd0e4437587136c
|
|
| BLAKE2b-256 |
e3cad485bf12d0a79717c726bc1d39946d95487d630ba23cd8edbb072a92945f
|
File details
Details for the file dashu_rs-0.6.0-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.14, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10d6884bcc80e854c7743f95372bdac5c32f583d137a96206b9be7f04096643c
|
|
| MD5 |
164d169bbc731cbca744ce30d893f844
|
|
| BLAKE2b-256 |
fbb4edf25f6731030f59574ea6e8206aeae90cb586db880972bb6c3455c0700c
|
File details
Details for the file dashu_rs-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1afe7969410ee7321a6c8640e7c7bbb591e3a109ffcbb122e7a1b34d1b35bd67
|
|
| MD5 |
c11084595ef45879f790e9238945cf0a
|
|
| BLAKE2b-256 |
8fdbd9c4744dc6d80c5ded4fb8e3e771f72d7264bdfc6d9205e3e8a8dbb951ac
|
File details
Details for the file dashu_rs-0.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
160316928b332a2bc180b25c765d1db2c200b5ced8d4ecde72fb4e58697aadbd
|
|
| MD5 |
5ae9578bbae2f626ef8f1fee345f4a82
|
|
| BLAKE2b-256 |
279753d24e370c6d9c5c6edc0319d90b04121484c5e7a9c4c31dcde767451be3
|
File details
Details for the file dashu_rs-0.6.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.12, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e88c962c2715a2029ac0e04c1a1360d60f0b4a664232eb5f20461901b02f2583
|
|
| MD5 |
720e7ce239ebdfe4346cee5342536873
|
|
| BLAKE2b-256 |
eeab74405eb70fbefaa5b61f6f6fd1334aa959a378a35c9164a461a7891ca2ec
|
File details
Details for the file dashu_rs-0.6.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.12, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c39f45dbfa3ba957c63b738ab58bc7a9296445bf449772989cb782e1e5f0e500
|
|
| MD5 |
9cbf32ad8baf39078e4273f05fafee47
|
|
| BLAKE2b-256 |
e9eb55ab9b8f5a7ac42df667b9c75f76142b2e8c16c6af8dc3bf19d7d2ffb83f
|
File details
Details for the file dashu_rs-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7c3010dc47818985d0fc20fe59ef8a158ff21781b32eb229c99f8da8918e49e
|
|
| MD5 |
6716e8caa17ea58bccd3313bbc9a7ea8
|
|
| BLAKE2b-256 |
d4a4b9aefc2815d8dd79b70608ab8e9301a38498abf473fa698f2bf6ab970447
|
File details
Details for the file dashu_rs-0.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c24d0b698abfb2af5d976f88cf516fcc52b7073f7c405651ff1344612db163f
|
|
| MD5 |
18e70c2d59c68ffb99a0f871c050dcbf
|
|
| BLAKE2b-256 |
04e8735a1ac0d30343f47c632605a029d9af1010ac2645f11edb574a53f26210
|
File details
Details for the file dashu_rs-0.6.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, manylinux: glibc 2.5+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b42e7c4736da85106388d7dcdbc6dfab4f2f660955f73ac262ccd1d740be1fec
|
|
| MD5 |
5c52ff48898b3932a54ec4c2188650ac
|
|
| BLAKE2b-256 |
f0aeb9d8b620458f80f04ecc0b3e5c69fd684bbefce0d810e3205b4bfcc067c5
|
File details
Details for the file dashu_rs-0.6.0-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl.
File metadata
- Download URL: dashu_rs-0.6.0-cp39-cp39-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
- Upload date:
- Size: 2.2 MB
- Tags: CPython 3.9, macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18110fb66ad23498fe1ced3d6e7e1a7ea6254076ac554df69c2bcb664e1204bd
|
|
| MD5 |
7034d607b3bcd97927db1903fc970cdc
|
|
| BLAKE2b-256 |
3ce21a83ec2c728ba4ed5cb51fae682784f0b68e92cccd7cd3de2bbc8ce92f49
|