maturin VS Poetry

Compare maturin vs Poetry and see what are their differences.

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
maturin Poetry
37 377
3,232 29,483
5.8% 2.6%
9.4 9.7
6 days ago 1 day ago
Rust Python
Apache License 2.0 MIT License
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.

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

Poetry

Posts with mentions or reviews of Poetry. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-14.
  • Understanding Dependencies in Programming
    4 projects | dev.to | 14 Apr 2024
    You can manage dependencies in Python with the package manager pip, which comes pre-installed with Python. Pip allows you to install and uninstall Python packages, and it uses a requirements.txt file to keep track of which packages your project depends on. However, pip does not have robust dependency resolution features or isolate dependencies for different projects; this is where tools like pipenv and poetry come in. These tools create a virtual environment for each project, separating the project's dependencies from the system-wide Python environment and other projects.
  • Implementing semantic image search with Amazon Titan and Supabase Vector
    4 projects | dev.to | 5 Apr 2024
    Poetry provides packaging and dependency management for Python. If you haven't already, install poetry via pip:
  • From Kotlin Scripting to Python
    1 project | dev.to | 7 Mar 2024
    Poetry
  • How to Enhance Content with Semantify
    4 projects | dev.to | 2 Mar 2024
    The Semantify repository provides an example Astro.js project. Ensure you have poetry installed, then build the project from the root of the repository:
  • Uv: Python Packaging in Rust
    9 projects | news.ycombinator.com | 15 Feb 2024
    Has anyone else been paying attention to how hilariously hard it is to package PyTorch in poetry?

    https://github.com/python-poetry/poetry/issues/6409

  • Boring Python: dependency management (2022)
    3 projects | news.ycombinator.com | 4 Feb 2024
    Based on this comment 5 days ago[0], it's working? I'm not sure didn't dig in too far but based on that comment it seems fair to say that it's not fully Poetry's fault because torch removed hashes (which poetry needs to be effective) for a while only recently adding it back in.

    Not sure where I would stand if I fully investigated it tho.

    [0] https://github.com/python-poetry/poetry/issues/6409#issuecom...

  • Fun with Avatars: Crafting the core engine | Part. 1
    4 projects | dev.to | 20 Jan 2024
    We will be running this project in Python 3.10 on Mac/Linux, and we will use Poetry to manage our dependencies. Later, we will bundle our app into a container using docker for deployment.
  • Python Packaging, One Year Later: A Look Back at 2023 in Python Packaging
    2 projects | news.ycombinator.com | 16 Jan 2024
    Here are the two main packaging issues I run into, specifically when using Poetry:

    1) Lack of support for building extension modules (as mentioned by the article). There is a workaround using an undocumented feature [0], which I've tried, but ultimately decided it was not the right approach. I still use Poetry, but build the extension as a separate step in CI, rather than kludging it into Poetry.

    2) Lack of support for offline installs [1], e.g. being able to download the dependencies, copy them to another machine, and perform the install from the downloaded dependencies (similar to using "pip --no-index --find-links=."). Again, you can work around this (by using "poetry export --with-credentials" and "pip download" for fetching the dependencies, then firing up pypiserver [2] to run a local PyPI server on the offline machine), but ideally this would all be a first class feature of Poetry, similar to how it is in pip.

    I don't have the capacity to create Pull Requests for addressing these issues with Poetry, and I'm very grateful for the maintainers and those who do contribute. Instead, on the linked issues I share my notes on the matter, in the hope that it may at least help others and potentially get us closer to a solution.

    Regardless, I'm sticking with Poetry for now. Though to be fair, the only other Python packaging tools I've used extensively are Pipenv and pip/setuptools. It's time consuming to thoroughly try out these other packaging tools, and is generally lower priority than developing features/fixing bugs, so it's helpful to read about the author's experience with these other tools, such as PDM and Hatch.

    [0] https://github.com/python-poetry/poetry/issues/2740

    [1] https://github.com/python-poetry/poetry/issues/2184

    [2] https://pypi.org/project/pypiserver/

  • Introducing Flama for Robust Machine Learning APIs
    11 projects | dev.to | 18 Dec 2023
    We believe that poetry is currently the best tool for this purpose, besides of being the most popular one at the moment. This is why we will use poetry to manage the dependencies of our project throughout this series of posts. Poetry allows you to declare the libraries your project depends on, and it will manage (install/update) them for you. Poetry also allows you to package your project into a distributable format and publish it to a repository, such as PyPI. We strongly recommend you to learn more about this tool by reading the official documentation.
  • How do you resolve dependency conflicts?
    1 project | /r/learnpython | 10 Dec 2023
    I started using poetry. The problem is poetry will not install if there is dependency conflict and there is no way to ignore: github

What are some alternatives?

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

setuptools-rust - Setuptools plugin for Rust support

Pipenv - Python Development Workflow for Humans.

termux-packaging - Termux packaging tools.

PDM - A modern Python package and dependency manager supporting the latest PEP standards

PyOxidizer - A modern Python application packaging and distribution tool

hatch - Modern, extensible Python project management

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

pyenv - Simple Python version management

pybind11 - Seamless operability between C++11 and Python

pip-tools - A set of tools to keep your pinned Python dependencies fresh.

RustPython - A Python Interpreter written in Rust

virtualenv - Virtual Python Environment builder