flit VS tomli-w

Compare flit vs tomli-w and see what are their differences.

flit

Simplified packaging of Python modules (by pypa)

tomli-w

A lil' TOML writer (counterpart to https://github.com/hukkin/tomli) (by hukkin)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
flit tomli-w
6 1
2,093 77
0.9% -
6.4 1.6
about 1 month ago 10 days ago
Python Python
BSD 3-clause "New" or "Revised" License 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.

flit

Posts with mentions or reviews of flit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-09.
  • Show HN: Code Indexer Loop
    3 projects | news.ycombinator.com | 9 Sep 2023
    Queries on https://github.com/pypa/flit/tree/main/flit_core/flit_core (omitted tests/)

    (Pdb) print(indexer.query("def normalize_dist_name(name: str, version: str) -> str:"))

  • Underappreciated Challenges with Python Packaging
    10 projects | news.ycombinator.com | 3 Jan 2023
    If it's pure Python, the only packaging file you need is `pyproject.toml`. You can fill that file with packaging metadata per PEP 518 and PEP 621, including using modern build tooling like flit[1] for the build backend and build[2] for the frontend.

    With that, you entire package build (for all distribution types) should be reducible to `python -m build`. Here's an example of a full project doing everything with just `pyproject.toml`[3] (FD: my project).

    [1]: https://github.com/pypa/flit

    [2]: https://github.com/pypa/build

    [3]: https://github.com/pypa/pip-audit

  • Easy Packing and Publishing to PyPi with Flit, pytest, and Circleci
    2 projects | /r/Python | 22 Sep 2022
    I published a very simple project flit_pytest_circleci_template that uses: * [flit](https://github.com/pypa/flit) to build a package. * pytest to test it * circleci to run the above and publish the package to pypi whenever a source file is committed. This is the hard part IMO as I do not know circleci well (and didn't know it at all when I started this project).
  • Python un-updatable, suggestions?
    1 project | /r/Gentoo | 22 Feb 2022
  • Comparison of Python TOML parser libraries
    19 projects | dev.to | 14 Dec 2021
    flit
  • How to make a Python package in 2021
    16 projects | news.ycombinator.com | 7 Apr 2021
    I hadn't heard of flit, it does seem like it's not brand new on the scene, however it is primarily a single contributor:

    https://github.com/takluyver/flit/graphs/contributors

    With a title like this, I'd be expecting to see an article describing the latest tools and recommendations from the PyPA.

tomli-w

Posts with mentions or reviews of tomli-w. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-14.
  • Comparison of Python TOML parser libraries
    19 projects | dev.to | 14 Dec 2021
    tomli, then, seems to be where the Python community in general is coalescing for a "standard" TOML parser. tomli is read-only. For write functionality there is the companion library tomli-w.

What are some alternatives?

When comparing flit and tomli-w you can also consider the following projects:

Poetry - Python packaging and dependency management made easy

toml - Python lib for TOML

pip - The Python package installer

tomlkit - Style-preserving TOML library for Python

Pipenv - Python Development Workflow for Humans.

pytomlpp - A python wrapper for tomlplusplus

python-lib - Opinionated cookiecutter template for creating a new Python library

coveragepy - The code coverage tool for Python

tomli - A lil' TOML parser

rtoml - A fast TOML library for python implemented in rust.

laravel-websockets-example - Quick example of a docker stack for laravel-websockets

virtualenv - Virtual Python Environment builder