Project description
fastcore-rs
Rust re-implementation of navis
core functions. Check out the documentation for details.
TO-DOs
Additional Notes
internally, we use i32
to represent node indices which means we can't
process neurons with more than 2,147,483,647 nodes (should be fine though)
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
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.
Build
Install rust
Clone this repository
cd
into fastcore-rs
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 the fastcore/
directory
maturin build --release
to build wheel in /target/wheels
To install the Python package either do:
pip install -e .
to install in editable mode
pip 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
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
File details
Details for the file navis_fastcore-0.0.3.tar.gz
.
File metadata
Download URL:
navis_fastcore-0.0.3.tar.gz
Upload date:
Jul 9, 2024
Size: 31.6 kB
Tags: Source
Uploaded using Trusted Publishing? No
Uploaded via: maturin/1.7.0
File hashes
Hashes for navis_fastcore-0.0.3.tar.gz
Algorithm
Hash digest
SHA256
59f2bf31f5551153db98867431fd003860e12f9f063a9924760933b17f068157
Copy
MD5
fd52f37cef61cb207586bc9e8fcd2093
Copy
BLAKE2b-256
e7abd681b711f10c0dc72afd91dc7d0c193705459fb9f06b6c4981d3a6e98af3
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-win_amd64.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-win_amd64.whl
Algorithm
Hash digest
SHA256
c6d5c696d7c6c87ed2e883606d161ce1c9b4fe90e37bbef9b737ba318d681fd5
Copy
MD5
1231720b47736e0b52cd126ca590a90f
Copy
BLAKE2b-256
71a43bb61efcc716131554e7f8397a954c6ce8ce6488c85ddbe5024bdaa695c1
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-win32.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-win32.whl
Algorithm
Hash digest
SHA256
1f9a2bd50b328ece8e5fc89c5c6e4f99f938fa2fcc89c70e410a631e645cc103
Copy
MD5
26b0d5df59f1694998a26cfa472b5216
Copy
BLAKE2b-256
4823ee1f5ed6e410f0cfdfa23a5274e03d8fd451970a9a708258868c4d4f48e6
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm
Hash digest
SHA256
dca03b2766a73846700fdb4c3a040d1a6c3eeff890e3fadfbc1dee3260896872
Copy
MD5
cd4193b1ab0559bb45f465b2f64e8265
Copy
BLAKE2b-256
ec5bc8f4c75efa128dd9c7329d7ad230ec2ad09474f052c7a7718065557e302a
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm
Hash digest
SHA256
108e32ff0f8558b9194fc2f93aadf926488c1e051efbebf75d879ef3c0bce35b
Copy
MD5
1965f4271eddd7a4931fb2cc8095b38f
Copy
BLAKE2b-256
d6bc9578b39df231559252e4e6ddd985e3d32ad725f1a225944f572a8e66532f
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm
Hash digest
SHA256
d18d5d72dab384d5fa9767178106e34e608ce238e3e446e1b6467780080a1cf2
Copy
MD5
cd2680c7f3825151e5266d95836593f3
Copy
BLAKE2b-256
f5a170d240c0a785f1440a4c0b9a6d61e795f9f22e861614e8956a2e625b0937
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm
Hash digest
SHA256
604875bde2658a0d7d4b65df7990e30a9418b8c6dc2ae470dfcd91800b6f2d1a
Copy
MD5
c9b77f3e24592533fe64e66906546cd9
Copy
BLAKE2b-256
c4fd722d4a56e5daff932143dc16c8f3bcb18fd5d74e019c0cb3e8cdb44577a3
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm
Hash digest
SHA256
749e89b02e251c09772867c6542b1fc87b5f062395f995270c3ea30c57ae1631
Copy
MD5
6f6b0d4a4e8e393a6602cbdcb0e8ca33
Copy
BLAKE2b-256
b6f5c09bbecb7dddb77d6ec3e87911894a851d955916be1c72de967c15bfe504
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm
Hash digest
SHA256
5fff847dbea2bddac00627860f1c6a7b130d69c50095cc8f7364cbc5d1a3da46
Copy
MD5
6bc56c51694bd2ae2e3f783f93d6456c
Copy
BLAKE2b-256
f6d362e1784f8ed852e9d111b91528690ce8d0e8bbf0ebd11987b6c02b395c71
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-macosx_11_0_arm64.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm
Hash digest
SHA256
5240a53dccb278c7dd5b39f854c035a34113c6663031aa6c199bacb062c044c7
Copy
MD5
4403a5c6b6650cf2bdb22d1ee97dd1d4
Copy
BLAKE2b-256
2ff736b9d88d6c2ed34a96d5a81a82e321702bd7fbda4e287f6dea0e8540dd1e
Copy
See more details on using hashes here.
File details
Details for the file navis_fastcore-0.0.3-cp39-abi3-macosx_10_12_x86_64.whl
.
File metadata
File hashes
Hashes for navis_fastcore-0.0.3-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm
Hash digest
SHA256
dd9a778b7f56887c1e1a21dc5584048d7d98a5ba519253b0715b352ef756e61d
Copy
MD5
c01ea6773b3c7bc691b1a45ce728df2c
Copy
BLAKE2b-256
5b12d629be037e91d9ac40ab7a73c84569d7f66af2a446d026b2cb3e3dcce8e3
Copy
See more details on using hashes here.