flit VS virtualenv

Compare flit vs virtualenv and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
flit virtualenv
6 10
2,093 4,711
0.9% 1.4%
6.4 8.4
about 1 month ago 6 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.

virtualenv

Posts with mentions or reviews of virtualenv. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-09.
  • Setup and use Virtualenv in Python Applications
    1 project | dev.to | 11 Apr 2024
    For more information visit: virtualenv documentation.
  • How to Create Virtual Environments in Python
    4 projects | dev.to | 9 Feb 2024
    Python's venv module is officially recommended for creating virtual environments since Python 3.5 comes packaged with your Python installation. While there still are additional older tools available, such as conda and virtualenv, if you are new to virtual environments, it is best to use venv now.
  • Integrating Python's Virtualenv with Fish shell Without Overcomplicated Frameworks
    7 projects | dev.to | 10 Jun 2023
    Despite these attractive attributes, many developers I've come across don't prefer Fish shell, primarily due to integration gaps with tools like Python's virtualenv. So, in this article, I'm offering a simple solution for automatic virtualenv activation for Fish shell, steering clear of resource-intensive frameworks like oh-my-fish that often slow down the shell.
  • How Python virtual environments work
    6 projects | news.ycombinator.com | 13 Mar 2023
    `virtualenv` still exists and is still actively developed. It's true that Python 3 ships with `venv` but I think `virtualenv` offers some additional features.

    https://github.com/pypa/virtualenv

  • macOS Dev Setup
    23 projects | dev.to | 6 Nov 2022
    virtualenv is a tool that creates an isolated Python environment for each of your projects.
  • How to build your own LinkedIn Profile Scraper in 2022
    4 projects | dev.to | 20 Jul 2022
    Python is the chosen language for this tutorial and as you can guess some precautions should be done to make sure that the environment is setup correctly and the main OS I'll use is Ubuntu(a Linux distro) virtual environment is a tool that helps you to isolate your code from the rest of the system. It is a good idea to create a virtual environment for your project.
  • What is the official "preferred" way to install pip and virtualenv systemwide?
    1 project | /r/codehunter | 12 Apr 2022
    $ curl -O https://github.com/pypa/virtualenv/raw/master/virtualenv.py$ python virtualenv.py my_new_env$ . my_new_env/bin/activate(my_new_env)$ pip install ... Or something entirely different?
  • Fish 3.4.0
    16 projects | news.ycombinator.com | 19 Mar 2022
    I've been using Fish for years and spend my entire day working with Python. Python's virtualenv has an `activate.fish` command, I've never had any problems with it. Additionally, we have a ton of internal tooling built in a fabfile, so I've written a couple of snippets of fish that automatically activate that .venv (Poetry managed) whenever I cd into a directory that has one, and also expands a bunch of env vars into the shell session. I've also got this feature request in on the virtualenv repo in the hope that one day we can have activate.fish emit an event - https://github.com/pypa/virtualenv/issues/1456
  • What happened when your CI is stopping you from releasing?
    2 projects | dev.to | 13 Apr 2021
    We of cause, like all good developers do, put the error message online and look for clues, we quickly found a GitHub issue and boi, we are not the only souls that got crushed by a "timely" release of virtualenv just a few hours before us. Since the lastest version of virtualenv got installed every time we create the CI build job on Travis, it fails even we have done nothing. Of cause we didn't point fingers at other maintainers, they are just as hardworking as us and it's human to make mistakes. We are faced with 2 options, roll back to the previous release or wait for the patch of virtualenv to get released. As the devs of virtualenv did a lighting fast patch, we have chosen option 2.
  • How to make a Python package in 2021
    16 projects | news.ycombinator.com | 7 Apr 2021

What are some alternatives?

When comparing flit and virtualenv you can also consider the following projects:

Poetry - Python packaging and dependency management made easy

pip - The Python package installer

Pipenv - Python Development Workflow for Humans.

pyenv - Simple Python version management

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

rez - An integrated package configuration, build and deployment system for software

tomli - A lil' TOML parser

Pew - A tool to manage multiple virtual environments written in pure python

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

Autoenv - Directory-based environments.