NAVis core functions reimplemented in Rust.
Project description
navis-fastcore
Re-implementation of navis
core functions in Rust.
Install
We provide precompiled binaries for all major Python versions, CPU architectures and operating systems.
From PyPI:
pip install navis-fastcore
If that fails, try building from source (see below).
Usage
navis-fastcore
itself does not depend on navis
. This is to allow
using fastcore
in libraries other than navis
. Please see the
docs for examples.
navis
will automatically use fastcore
if it is available.
The integration is still work in progress, so for now you
should install navis
from Github to make sure you have the
latest version.
Building from source
- Install rust
- Clone this repository
cd
intofastcore-rs/py
directory- Create a virtual environment:
python3 -m venv .venv
- Activate virtual environment:
source .venv/bin/activate
- Compile via either:
maturin develop --release
which will compile the extension into thefastcore/
directorymaturin build --release
to build wheel in/target/wheels
- To install the Python package either do:
pip install -e .
to install in editable modepip install targets/wheels/navis_fastcore....whl
Note that unless you compiled with the --release
flag,
timings will be much slower (up to 10x) than in a release build!
Test
First make sure pytest
is installed:
pip install pytest -U
Then run the test-suite like so:
pytest --verbose -s
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
Built Distributions
Hashes for navis_fastcore-0.0.7-cp39-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76094b7dc4afb8a0014309e5126b9bc0ec12c7682b6533cb5501bb92e155599d |
|
MD5 | 59bd34a2690ea2da58309fb7c2a7f7d6 |
|
BLAKE2b-256 | a9f510580c5543b52d9f1da7c29f60dee4440644a679457add3f49dacf971a3d |
Hashes for navis_fastcore-0.0.7-cp39-abi3-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d7108a48a298145c6860ee0f0ed415b707db27eaec97588823b11997e41e0d2 |
|
MD5 | 4927b22780d1d4fc6f7c6c2bce3b706b |
|
BLAKE2b-256 | 9742641ef550e4f35185ce3cd913c04b3e8ab6705ca572a4a39e41ad6d496455 |
Hashes for navis_fastcore-0.0.7-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1abf1ec4529012178eaad16bc3a7764c8880cda72ed64cc1bba2c58b8e30c91 |
|
MD5 | a519a72ddf589c6fe369b7c97afd4a8f |
|
BLAKE2b-256 | e9c2759d0570f3941db8d549174cd1d0d0ad5d4dea53d57bea88f94df9752099 |
Hashes for navis_fastcore-0.0.7-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19e75656f2e0c512f8ec0557cfbd8f4596b94d4bf0854170bcc8f50dd4205e28 |
|
MD5 | 8a9cd64237223e6c58a6cb2050698d83 |
|
BLAKE2b-256 | 235f2ca79303d1fc482a7599cbb3fe7cbcc12f8c9575f546308b9816b0c6acc6 |
Hashes for navis_fastcore-0.0.7-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 580c918c0878dfd4d786cf817d83670122c8f0a4e91edcec84aaa452d24ace2d |
|
MD5 | 69e85fa1e1b887efa19ecb6e7fb82ee2 |
|
BLAKE2b-256 | 23f190cc963315903981971c020c061e50da4a3d970be59bffc65b4c0ee45139 |
Hashes for navis_fastcore-0.0.7-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70f9369ced300927bece7dd345bece50fd86b27cef5bf5ad19eb0f9c7a8e3e0a |
|
MD5 | c17561debd2f0af6fc298ca2a935cb60 |
|
BLAKE2b-256 | 72c6605aae399cc38153248408de6fa402ac1312ad999231ec922b7dac60ab7e |
Hashes for navis_fastcore-0.0.7-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9022ae4863efd5b4005e534922bdf2c3b7591761f0fe8f17615b7895fc538f |
|
MD5 | 35e27a32a2dd79174a69ac4ae5ff8b12 |
|
BLAKE2b-256 | 7e7d0eb34db1d933a890e2e55497ecfe540cee11e2404c364988e5cb541edd80 |
Hashes for navis_fastcore-0.0.7-cp39-abi3-manylinux_2_12_i686.manylinux2010_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ade9a44251641cc132d098ecbc39b4bb8f90b1fa3f73ce6e404d007f29990577 |
|
MD5 | 16e82240e3b80d8e89c5217c867fadf0 |
|
BLAKE2b-256 | 96dfcb3c0f8464bf89a80825db9af73c4d2bd25482761f89fd3dda5598ac7714 |
Hashes for navis_fastcore-0.0.7-cp39-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 409e93752762cc9524450e2af2b28bec04d717e9c780cb7c21806cd4d6635a13 |
|
MD5 | a89b16d547222ea40812d97642a45831 |
|
BLAKE2b-256 | 542f2dd6d0da4de38b244b3ff08ce9f3bbd6f2767deb7be50b742f58cede9a19 |
Hashes for navis_fastcore-0.0.7-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8efbc3226472d0d1b9bcfe41b0e6c381ec1da52f8a1ffae7d714414f55d7ee7 |
|
MD5 | a43be673f6e51520b9d862b4652469fe |
|
BLAKE2b-256 | f77fb4c2de8ed06090cec2f0bd50e2864d90e97e6e6d5379282a0af6fe4bfbc1 |