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-2.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a81aa69b0f9092f8a604df7ba312601665bfc022e29b0a61b55f148a1ed6e29 |
|
MD5 | 966eabb8baf6056d6fcea4d04511d4d1 |
|
BLAKE2b-256 | fa559e63ebb64474dedcd2322f67d92f295bd9b8f4601725505b749fd6d92137 |
Hashes for rithm-2.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 | e7dade921d2c2217d10bd2d58d20189fb450b36c063eaf79d9ce2b05feb1c98b |
|
MD5 | 503a50c443a6a39122457508bc9015c4 |
|
BLAKE2b-256 | 6208c42c72eee08b2ee48aa637ed4cd975126c32626e9607044000b3cd3615b1 |
Hashes for rithm-2.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9042dac4d8fb9af6db5ad10f97e8c01448226fea7cb145155cf85e9663b9c5b |
|
MD5 | 29533389ba85da7288b84ee26fe687f0 |
|
BLAKE2b-256 | 395d970b38887dab23081dcd75cd982bc531c5ac17203fef91ce0509e2e054c5 |
Hashes for rithm-2.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1d78afc3921367a77c461d15387db84228d2795e247b02a6b6da3bbd2063fa6 |
|
MD5 | 30121bb237b6b988f8d2521553af1890 |
|
BLAKE2b-256 | 0c46cf72663e39f36073ddd4281d4065bf2be2c52734e2621b7ebcdcc0df77b6 |
Hashes for rithm-2.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 | c288691927ad95428259b3ccc76f1403c8b95e4f0ebf05d5a8bd41a5cd9108c5 |
|
MD5 | 69d3196e876390653ca889c92ba77bce |
|
BLAKE2b-256 | dfbe85480292a5fd499f1ac4a09fdfc333bbc9420d967a24f455a3bb92a68606 |
Hashes for rithm-2.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cd7e0f6104dc4d1c01820bb2acd401497e621b6b200327eae088ef23dc26ded |
|
MD5 | 24914cdeccb5afe6627f05278d0c405d |
|
BLAKE2b-256 | 4147fb01a78f5c1f1cd16e40522357de214bac82e3104952b611f935224886a5 |
Hashes for rithm-2.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16137527aef19fc6d5874891ca9f7725e5ee7f67d8184b2c9676b08aa8ef3d91 |
|
MD5 | 59388afe2a0589dd9481fbf90973bb1d |
|
BLAKE2b-256 | 25a4b5a6bed031d34f81e40e5ebdcd2b4d79d4bacb1a3371b9e49f5d15c3c4d0 |
Hashes for rithm-2.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 | 5ccb4d1d628112109b3288affcbad28866ffeec2e87d1f3cf1a46dc8ea18b5a7 |
|
MD5 | 335297d8ce08a2cf42cf162b8d9540dc |
|
BLAKE2b-256 | afbc61fc60cf9cea608d45e51a791b5729d085d63deae01cd8700522d3d46588 |
Hashes for rithm-2.0.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 998cfeaf380ec60ce0390c34ec397b91e4eb9dd38dc929dbeb4ec363e556289a |
|
MD5 | db322a810339e3197eb21bcb62631b2a |
|
BLAKE2b-256 | 4edf9a54e531d247eeac296abdeb56eb4b1b09e7cca3c85cf9e784013318d931 |
Hashes for rithm-2.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc3b598ede9ce40427f8bc0214666ec85c08c670fc35d1e281371363b981721b |
|
MD5 | 6028520b14355874ead52cd317d1b9fd |
|
BLAKE2b-256 | dbf5d1c522d070a35343e168e2c52a298798cb52f386dcf09946c2bd727a1b21 |
Hashes for rithm-2.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 | 7b009cea500cc03bba8ae5f29f1f04cafe9847f9c36fbb5f429b15623863b28b |
|
MD5 | 17894c6b7aa0fd8e198c36dcad0c8e70 |
|
BLAKE2b-256 | 40699531b70247ca10620317c4d047d55901bf7fa307410e7d615b1a26bd9109 |
Hashes for rithm-2.0.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fc9e41426a58c532d97a81fadf438b82c9cafbb444a154467115f097c4a8ae6 |
|
MD5 | fbe875027a5c6cd634779352427c90d6 |
|
BLAKE2b-256 | e2ea9b30ab4e2b7c8468029a4bc8b6005c2cf463353ac4d674ffc08996233d18 |