Arbitrary precision arithmetic.
Project description
rithm
In what follows python
is an alias for python3.6
or pypy3.6
or any later version (python3.7
, pypy3.7
and so on).
Installation
Install the latest pip
& setuptools
packages versions
python -m pip install --upgrade pip setuptools
User
Download and install the latest stable version from PyPI
repository
python -m pip install --upgrade rithm
Developer
Download the latest version from GitHub
repository
git clone https://github.com/lycantropos/rithm.git
cd rithm
Install dependencies
python -m pip install -r requirements.txt
Install
python setup.py install
Development
Bumping version
Preparation
Install bump2version.
Pre-release
Choose which version number category to bump following semver specification.
Test bumping version
bump2version --dry-run --verbose $CATEGORY
where $CATEGORY
is the target version number category name, possible
values are patch
/minor
/major
.
Bump version
bump2version --verbose $CATEGORY
This will set version to major.minor.patch-alpha
.
Release
Test bumping version
bump2version --dry-run --verbose release
Bump version
bump2version --verbose release
This will set version to major.minor.patch
.
Running tests
Install dependencies
python -m pip install -r requirements-tests.txt
Plain
pytest
Inside Docker
container:
- with
CPython
docker-compose --file docker-compose.cpython.yml up
- with
PyPy
docker-compose --file docker-compose.pypy.yml up
Bash
script:
-
with
CPython
./run-tests.sh
or
./run-tests.sh cpython
-
with
PyPy
./run-tests.sh pypy
PowerShell
script:
- with
CPython
.\run-tests.ps1
or.\run-tests.ps1 cpython
- with
PyPy
.\run-tests.ps1 pypy
Project details
Release history Release notifications | RSS feed
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
Hashes for rithm-4.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4b443374b5ecaf9890349e1a6e800ff459749683dcb567c6bf92af9ebf5d36 |
|
MD5 | 25c0c6c7f1608935a4340c24332c26ea |
|
BLAKE2b-256 | b7c908b7178799c2d5bf5371dcf931b5fe58c7f0c2abd9cbf25be3df48e97147 |
Hashes for rithm-4.0.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b883e2fe5cc7b5e19ac53000af0f0ca296448d04f08f53f876f58b1aaf5cba19 |
|
MD5 | e70222dd292307e184212cd13526cb59 |
|
BLAKE2b-256 | ba336f2edc6d63287dad58a99eefc01b4e148838494f2f0301e8cc27e29fd23e |
Hashes for rithm-4.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 679906155c6e980a95ce3e783c78a8dc6862f58701dbe186440eae62573248cf |
|
MD5 | 031d74f5285d94c918ef289bd1a834cc |
|
BLAKE2b-256 | 89b197f95093d7a189ed7ea55e8a97a72b7860d340c00ec28a10ca122db6e63a |
Hashes for rithm-4.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80746a78fb1332bf6f85b26c7df9a419969fdf7286a62036dce9226f42fd653a |
|
MD5 | cc792a7f206428245c8495eeb241db73 |
|
BLAKE2b-256 | d48b7683811b5924d0846d1c5a02e8c1d3cfcc4fffa06659ea1a5072acc03cc7 |
Hashes for rithm-4.0.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec6a80adff4042bc095ae83a9d1a4beb46d4bf832e55e3f731d1937da8a96729 |
|
MD5 | 830f2910cf7de36335f4e3fd64fb21be |
|
BLAKE2b-256 | 8f7cfd568aa6156ba2283aebafdf2afeb3d8b54d1d2e31ce8acb515759131dd7 |
Hashes for rithm-4.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe974514bb96230c92ae619c0378e2c8d9fda565170dbd6b1eeaf7884cd50e2a |
|
MD5 | cd6128d0b6b1202c2bbb0394d0ff4173 |
|
BLAKE2b-256 | 4d2fa475f9b62faf874e258a6d487e5d47c43fe81dd189800af196310e1c7508 |
Hashes for rithm-4.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0adb34c2465d6c938ba9d9e95f501047376d53a3ddff47c428a58fdcfe999248 |
|
MD5 | 5e0931ae12cdcee8d0598ad66a447e66 |
|
BLAKE2b-256 | fb214fe4afd1af7c76a82564b887657ec7418f384597c1b7e3192ba79a4608fb |
Hashes for rithm-4.0.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26ce10d1bd9fb42847d1ff843897ac18801e023450a43957c85d4fc90c7dedc4 |
|
MD5 | 2da8a0448e96cff714adc0f3367578ee |
|
BLAKE2b-256 | 69993b2cdf012dd5f9924ce168e8f4dd6bb3bbbbfe72fe1574b1f921fc1266f7 |
Hashes for rithm-4.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 232640c4491b7da25868312425b720ec3b8d201044513da64bb9264770493f1b |
|
MD5 | b235a433878a33d1173d124438ccfc38 |
|
BLAKE2b-256 | 82699801cc2cbe9d55fabdd1a93c4bd23a80a1f0f32be16f0a8d081d0677b3e2 |
Hashes for rithm-4.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d30e8085d5678674f32086ca9634aae247a88f05e89abc95f221f7cad08c44ee |
|
MD5 | 8dbc93b1bc15df23c203baa15dcbc099 |
|
BLAKE2b-256 | a6c98007aee47eb97c4c9cd565241b76c96a52d792bfee904995e235dad3d4ae |
Hashes for rithm-4.0.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80218b184f06e6dec356859ee977a5d750e71022c3323c1cbc9e0a302f61bcef |
|
MD5 | 1edc9f1a3e0b058cf74b9eb16e68c2a4 |
|
BLAKE2b-256 | a271addf4efe9daaed426c033a31a267905667473bf85f6746610b4ed1c6101b |
Hashes for rithm-4.0.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15521d7373c79bebab25538a367b77056f657005f3745acdadea2a67442623ca |
|
MD5 | 0cf016a8b316d165545efe4c5f948747 |
|
BLAKE2b-256 | 7b985e912af10e8821480edbeb789b6cc29d06160d49a8bba1ffd0d5808f277b |