Skip to content

jpegleg/rust_python_library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust_python_library

use compiled rust as a python library

Example flask app that imports rust_python_module_example.so, which is just an example that returns a string.

from flask import Flask

import rust_python_module_example

app = Flask(__name__)

@app.route('/')
def main():
    return rust_python_module_example.get_result('Hello!')

In the docker_example directory, there is a template for building a docker image based on rust docker image, running the python app inside it.

About

template for compiled rust as a python library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published