New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

navis-fastcore

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

navis-fastcore

NAVis core functions reimplemented in Rust.

  • 0.0.9
  • PyPI
  • Socket score

Maintainers
1

test docs

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

  1. Install rust
  2. Clone this repository
  3. cd into fastcore-rs/py directory
  4. Create a virtual environment: python3 -m venv .venv
  5. Activate virtual environment: source .venv/bin/activate
  6. Compile via either:
    • maturin develop --release which will compile the extension into the fastcore/ directory
    • maturin build --release to build wheel in /target/wheels
  7. 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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc