Skip to content
/ blaze Public

blaze is a rust-Python module to make your Python codes blazingly-fast.

License

Notifications You must be signed in to change notification settings

fossabot/blaze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status FOSSA Status

blaze is a rust-Python module to make your Python codes blazingly-fast.

What can it do?

This module was written in order to extend Python codes to use the performance of low-level languages with zero complexity. blaze, in essence, allows Python developers to tap into the performance of rust language by interfacing between the two languages.

For specific code details, please see developer documentation.

Why blaze?

Compared to native Python methods, blaze outperforms by at least ~50%.

Test Python Blaze
.count()
.replace() (replace)
.replace() (regex)
.to_lower()
.to_upper()

Build

There is only cargo dependency to compile the rust code into a Python module.

~$ sudo apt install cargo

By default, blaze is built for Python 2.7 support. However, in order to build for Python 3+, please edit Cargo.toml and run make.

~$ make
~$ # make release

Tests

Running benchmarks and tests will require some pip packages.

~$ pip install pytest pytest-benchmark
~$ make test

Usage

It is very straightforward to use blaze. When build is completed, a binary called "blaze.so" will be generated at the project base. From there, in your Python code, just use the import keyword:

import blaze # imports "blaze.so"

Docker

To prevent tainting your local environment, it is recommended to build using docker. Use one of the make commands below and you'll see a link to https://file.io at the end of docker log.

~$ make docker-ubuntu # ubuntu
~$ make docker-centos # centos

License

blaze is under MIT License.

FOSSA Status

About

blaze is a rust-Python module to make your Python codes blazingly-fast.

Resources

License

Stars

Watchers

Forks

Packages

No packages published