PyOxidizer VS maturin

Compare PyOxidizer vs maturin and see what are their differences.

PyOxidizer

A modern Python application packaging and distribution tool (by indygreg)

maturin

Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages (by PyO3)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
PyOxidizer maturin
28 37
5,195 3,261
- 6.7%
0.0 9.4
about 2 months ago 4 days ago
Rust Rust
Mozilla Public License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

PyOxidizer

Posts with mentions or reviews of PyOxidizer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-13.
  • Show HN: Pywebview 5
    5 projects | news.ycombinator.com | 13 Mar 2024
    Bundling Python isn't too bad if you find the right tools for it.

    I really like https://github.com/indygreg/python-build-standalone and https://github.com/indygreg/PyOxidizer

    A bundled, built standalone Python can be 16 to 32MB (including the full standard library, which you can strip down to just the bits you use to save size). Not tiny, but probably not worth switching programming languages over.

  • Why do you enjoy systems programming languages?
    2 projects | /r/rust | 25 May 2023
    But really, I would suggest thinking about what you want to build before "how" or "with which tool" - one of the signs of a person becoming a good engineer is having an array of tools at their disposal and being able to choose a correct tool for the correct task. Rust also excels in integrating with other languages - with JS via WebAssembly (a bit of self-promotion, for example), with Elixir via Rustler, with Python via PyO3 and PyOxidizer, etc. So you absolutely can start writing a frontend app with JS, or a distributed system with Elixir, or a data processing/ML app with Python and use Rust to speed up critical parts of those. Or, in reverse, you can start with Rust & add new capabilities to whatever you're building, that being a frontend, a resilient chat interface, or an ML model.
  • List of Python compilers
    2 projects | /r/Python | 9 May 2023
    Thank you, although this is not exactly on topic. I'd not heard of PyOxidizer, but it appears to have the same goal as PyInstaller, py2exe, and cx_Freeze -- as the PyOxidizer readme says, it produces
  • Buck2, a large scale build tool written in Rust by Meta, is now available
    11 projects | /r/rust | 6 Apr 2023
    Here is some example Github Action from PyOxidizer as a Kickstarter: https://github.com/indygreg/PyOxidizer/blob/main/.github/workflows/build-exe.yml
  • Mitogen speedup (the actual value)
    2 projects | /r/ansible | 5 Mar 2023
    A starting point to try out binary modules by the way would be https://github.com/indygreg/PyOxidizer - could already have benefits by rolling in all dependencies of modules (so no more pip/apt/dnf/... installs on target hosts). Setting this up should be relatively straightforward and could probably be automated enough to even manage to build binary modules for all modules in the community ansible distribution eventually.
  • Python Magic Methods You Haven’t Heard About
    1 project | /r/Python | 14 Dec 2022
  • What are different ways to make a Python exe besides py-to-exe?
    2 projects | /r/Python | 14 Sep 2022
    PyOxidizer might be another option.
  • Used "Py To EXE" and It Showed KeyLogger as One of Viruses
    2 projects | /r/Python | 13 Sep 2022
  • indygreg / PyOxidizer :
    1 project | /r/Python | 27 Aug 2022
  • A Completely Open-Source Implementation of Apple Code Signing and Notarization
    9 projects | news.ycombinator.com | 8 Aug 2022
    XAR signing is effectively just an RFC 5652 CMS signature plus some minimal data structure manipulation. Code at https://github.com/indygreg/PyOxidizer/blob/faa7dfcea5d66bf5....

    Mach-O and bundles, by contrast, require a myriad of additional data structures requiring thousands of lines of code to support. To my knowledge, nobody else has implemented signing of these far-more-complicated primitives. (Existing Mach-O signing solutions just do ad-hoc signing and/or don't handle Mach-O in the context of a bundle.)

maturin

Posts with mentions or reviews of maturin. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-03.
  • In Rust for Python: A Match from Heaven
    2 projects | dev.to | 3 Jan 2024
    This story unfolds as a captivating journey where the agile Flounder, representing the Python programming language, navigates the vast seas of coding under the wise guidance of Sebastian, symbolizing Rust. Central to their adventure are three powerful tridents: cargo, PyO3, and maturin.
  • Feedback from calling Rust from Python
    2 projects | dev.to | 2 Nov 2023
    -- Maturin on GitHub
  • Some Reasons to Avoid Cython
    5 projects | news.ycombinator.com | 22 Sep 2023
    My new favorite way to write very fast libraries for Python is to just use Rust and Maturin:

    https://github.com/PyO3/maturin

    It basically automates everything for you. If you use it with Github actions, it will compile wheels for you on each release for every platform and python version you want, and even upload them to PyPi (pip) for you. Everything feels very modern and well thought out. People really care about good tooling in the Rust world.

  • Which programming language to focus on for my PhD journey in bioinformatics?
    4 projects | /r/rust | 6 Jun 2023
    Python first, you will be able to experiment quickly with the notebooks. Then maybe write (or rewrite) some modules in Rust that you can expose as python modules, with py03 and maturin. Feel free to publish useful packages on both crates.io and pypi.org, so you can contribute to Python and Rust ecosystems.
  • python to rust migration
    5 projects | /r/rust | 23 Apr 2023
    Now if you really want to use Rust, you can rewrite only the part that are slowing down your consumer. It's easy by using Py03 and maturin. Maybe also rayon to parallelize.
  • Ask HN: Is it worth it for me to learn Go or Rust as a Data Engineer?
    1 project | news.ycombinator.com | 21 Apr 2023
    It's relatively easy to extend Python with project like Py03[0] and Maturin[1]. Polars[2] is the perfect example of that.

    It's not easy to push coworkers/companies to use an unfamiliar language. Rust isn't fast to learn. You need very good arguments and a good usecase to make it works.

    I doubt that learning Rust will help you more that learning more about the data engineers tools, so this isn't really "worth" your time.

    [0] -- https://pyo3.rs/v0.18.3/

    [1] -- https://github.com/PyO3/maturin

    [2] -- https://www.pola.rs/

  • Rust CLI app installable via PIP?
    1 project | /r/rust | 10 Apr 2023
  • Blog Post: Making Python 100x faster with less than 100 lines of Rust
    4 projects | /r/rust | 29 Mar 2023
    In this case, PyO3/maturin does all the setup and getting the module into Python. They also have docs going into a lot more depth on this.
  • Is Rust faster than Python out of the box
    2 projects | /r/rust | 12 Mar 2023
    Lastly if you're willing to introduce Rust, I'd consider a gradual approach using native libraries built in rust with PYO3. Check the maturin guide that helps you to streamline the build process of native libraries : https://github.com/PyO3/maturin . From there you could try to find hotspots in your python app and replace those with a native implementation.
  • sccache now supports GHA as backend
    4 projects | /r/rust | 7 Dec 2022

What are some alternatives?

When comparing PyOxidizer and maturin you can also consider the following projects:

PyInstaller - Freeze (package) Python programs into stand-alone executables

Poetry - Python packaging and dependency management made easy

Nuitka - Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.

setuptools-rust - Setuptools plugin for Rust support

pyarmor - A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.

termux-packaging - Termux packaging tools.

pynsist - Build Windows installers for Python applications

rust-numpy - PyO3-based Rust bindings of the NumPy C-API

py2exe - modified py2exe to support unicode paths

pybind11 - Seamless operability between C++11 and Python

dh-virtualenv - Python virtualenvs in Debian packages

RustPython - A Python Interpreter written in Rust