Coder Social home page Coder Social logo

speedoptim's Introduction

speedoptim

speedoptim is a hybrid Python/Rust package designed to offer high-performance computation capabilities by leveraging Rust's speed and safety within a Python package. This package can be developed and built using maturin.

Requirements

  • Python 3.8+
  • Rust 1.41+
  • Cargo (Rust's package manager)
  • maturin (pip install maturin)

Development Setup

To develop speedoptim, you first need to ensure that Rust and Cargo are installed on your system. If not, install them using rustup, which is Rust's recommended toolchain manager.

Next, install maturin within your Python environment using pip:

pip install maturin

Building the Package

To build the package, navigate to the root directory of speedoptim and run:

maturin build

This command will compile the Rust code and package it into a wheel that can be installed with pip. By default, maturin build targets the active Python environment.

For a development build, which compiles faster but doesn't optimize the Rust code, you can use:

maturin develop

This will build and install the package directly into your current Python environment, allowing you to import and use speedoptim in Python immediately.

If you want to build the package for a different Python version or for multiple versions, you can specify the Python executables:

maturin build --interpreter python3.6 --interpreter python3.7

Running Tests

To ensure the quality of speedoptim, you can run tests using maturin:

maturin test

This will run the Rust test suite for speedoptim.

speedoptim's People

Contributors

bradyplanden avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.