A lightweight Python library for managing packages and versions across different Python environments
Actively maintained. Last release 4 days ago, commits in 22 of the last 26 weeks. A safe choice.
pip install feuA lightweight Python library for managing packages and versions across different Python environments
Actively maintained. Last release 4 days ago, commits in 22 of the last 26 weeks. A safe choice.
pip install feufeu (French word for "fire" 🔥) is a lightweight Python library designed to help manage Python
packages and their versions across different Python environments.
2.4.0), a wildcard (2.4.*) or empty (the latest)pyproject.tomlfeu) to install a package, find the closest valid
version, check if a version is valid and list the versions to test (pip install 'feu[cli]')packaging required for core functionality)The examples are doctests: they are run by the test suite, so they cannot drift from the code.
>>> from feu import is_package_available
>>> from feu.compat import Target, find_closest_version
>>> is_package_available("packaging")
True
>>> # The closest valid version for a target (Python 3.9 on Linux x86_64)
>>> target = Target(python_version="3.9", os="linux", arch="x86_64")
>>> find_closest_version("numpy", "2.3.0", target)
'2.0.2'
>>> # A version is a request: an exact version, a wildcard or "" for the latest
>>> find_closest_version("numpy", "1.*", target)
'1.26.4'
>>> # A target without a platform means "any platform"
>>> find_closest_version("numpy", "2.3.0", Target(python_version="3.9"))
'2.0.2'
The same checks are available from the command line (pip install 'feu[cli]'). The standard
output holds only the answer and the exit status carries the result (0 ok, 1 negative answer,
2 usage error):
feu find-closest-version --pkg-name=numpy --pkg-version=2.0.2 --python-version=3.10
feu check-valid-version --pkg-name=numpy --pkg-version=2.0.2 --python-version=3.10
feu install --pkg-name=numpy --pkg-version=2.0.2
python -m feu ... is equivalent.
Managing Python package versions across different Python versions can be challenging. Different
Python versions support different package versions, and manually tracking compatibility can be
error-prone. feu solves this by:
feu, the design choices
and their trade-offsWe highly recommend installing a
virtual environment.
feu can be installed from pip using the following command:
pip install feu
To make the package as slim as possible, only the minimal packages required to use feu are
installed. To include all the dependencies, you can use the following command:
pip install feu[all]
Please check the get started page to see how to
install only some specific dependencies (feu[cli], feu[git], feu[requests], feu[rich]) or
other alternatives to install the library. The following
is the corresponding feu versions and supported dependencies.
feu | packaging | python | click* | gitpython* | requests* | rich* |
|---|---|---|---|---|---|---|
main | >=22.0,<27.0 | >=3.11 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | >=14.0.0,<16.0 |
0.8.4 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | >=14.0.0,<16.0 |
0.8.3 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | >=14.0.0,<16.0 |
0.8.2 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | >=14.0.0,<16.0 |
0.8.1 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | >=14.0.0,<16.0 |
0.8.0 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | >=14.0.0,<16.0 |
0.7.3 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.7.2 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.7.1 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.7.0 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.6.2 | >=21.0,<27.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.6.1 | >=21.0,<26.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.6.0 | >=21.0,<26.0 | >=3.10 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.5.0 | >=21.0,<26.0 | >=3.10,<3.15 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 |
* indicates an optional dependency
feu | packaging | python | click* | gitpython* | fire* | requests* |
|---|---|---|---|---|---|---|
0.4.2 | >=21.0,<26.0 | >=3.10,<3.15 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.4.1 | >=21.0,<26.0 | >=3.10,<3.15 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.4.0 | >=21.0,<26.0 | >=3.9,<3.14 | >=8.1,<9.0 | >=3.1.41,<4.0 | >=2.30,<3.0 | |
0.3.5 | >=21.0,<26.0 | >=3.9,<3.14 | >=8.1,<9.0 | >=3.1.41,<4.0 | ||
0.3.4 | >=21.0,<26.0 | >=3.9,<3.14 | >=8.1,<9.0 | >=3.1.41,<4.0 | ||
0.3.3 | >=21.0,<26.0 | >=3.9,<3.14 | >=8.1,<9.0 | >=3.1.41,<4.0 | ||
0.3.2 | >=21.0,<25.0 | >=3.9,<3.14 | >=8.1,<9.0 | |||
0.3.1 | >=21.0,<25.0 | >=3.9,<3.14 | >=8.1,<9.0 | |||
0.3.0 | >=21.0,<25.0 | >=3.9,<3.14 | >=8.1,<9.0 | |||
0.2.4 | >=21.0,<25.0 | >=3.9,<3.13 | >=8.1,<9.0 | |||
0.2.3 | >=21.0,<25.0 | >=3.9,<3.13 | >=8.1,<9.0 | |||
0.2.2 | >=21.0,<25.0 | >=3.9,<3.13 | >=8.1,<9.0 | |||
0.2.1 | >=21.0,<25.0 | >=3.9,<3.13 | >=8.1,<9.0 | |||
0.2.0 | >=21.0,<25.0 | >=3.9,<3.13 | >=8.1,<9.0 | |||
0.1.1 | >=21.0,<25.0 | >=3.9,<3.13 | >=0.6.0,<1.0 | |||
0.1.0 | >=21.0,<25.0 | >=3.9,<3.13 | >=0.6.0,<1.0 | |||
0.0.7 | >=21.0,<25.0 | >=3.9,<3.13 | ||||
0.0.6 | >=21.0,<25.0 | >=3.9,<3.13 | ||||
0.0.5 | >=21.0,<25.0 | >=3.9,<3.13 | ||||
0.0.4 | >=21.0,<25.0 | >=3.9,<3.13 | ||||
0.0.3 | >=21.0,<25.0 | >=3.9,<3.13 | ||||
0.0.2 | >=22.0,<24.0 | >=3.9,<3.13 | ||||
0.0.1 | >=22.0,<23.3 | >=3.9,<3.13 |
Please check the instructions in CONTRIBUTING.md.
Everyone is welcome to contribute to the community. If you have any questions or suggestions, you can submit Github Issues. We will reply to you as soon as possible. Thank you very much.
:warning: While feu is in development stage, no API is guaranteed to be stable from one release to
the next. In fact, it is very likely that the API will change multiple times before a stable 1.0.0
release. In practice, this means that upgrading feu to a new version will possibly break any code
that was using the old version of feu.
feu is licensed under BSD 3-Clause "New" or "Revised" license available in LICENSE
file.
Use together with feu: extensions, drivers, servers and companion tools.