{"id":5224,"library":"feu","title":"Feu - Python Package and Version Manager","description":"Feu (French word for \"fire\" 🔥) is a lightweight Python library designed to help manage Python packages and their versions across different Python environments. It offers key features such as checking package availability, performing version-aware installations, and smart version resolution. Currently at version 0.6.2, it is in active development with no guarantees of API stability before a 1.0.0 release.","status":"active","version":"0.6.2","language":"en","source_language":"en","source_url":"https://pypi.org/project/feu/","tags":["package management","versioning","environments","utility"],"install":[{"cmd":"pip install feu","lang":"bash","label":"Install with pip"}],"dependencies":[],"imports":[{"symbol":"is_package_available","correct":"from feu import is_package_available"},{"symbol":"get_package_version","correct":"from feu import get_package_version"},{"symbol":"find_closest_version","correct":"from feu.package import find_closest_version"}],"quickstart":{"code":"from feu import is_package_available, get_package_version\nfrom feu.package import find_closest_version\n\n# Check if a package is available\nif is_package_available(\"numpy\"):\n    version = get_package_version(\"numpy\")\n    print(f\"NumPy is installed with version: {version}\")\nelse:\n    print(\"NumPy is not installed.\")\n\n# Example of finding a compatible version (logic might vary for actual use)\n# This demonstrates the import, a real use case would involve a registry or specific version constraints.\ntry:\n    # Note: 'find_closest_version' would typically rely on a pre-defined registry or extensive lookup logic\n    # For this quickstart, it's shown as an imported function, assuming it has internal logic.\n    closest_np_version = find_closest_version(\"numpy\", \"1.20\")\n    print(f\"Closest NumPy version to 1.20 found: {closest_np_version}\")\nexcept Exception as e:\n    print(f\"Could not find closest version for numpy 1.20: {e}\")","lang":"python","description":"This example demonstrates how to check for package availability and retrieve its version using `feu`. It also shows how to import `find_closest_version` for more advanced version resolution, although the specific implementation details for finding the 'closest' version are internal to the library or require a configured registry."},"warnings":[{"fix":"Review release notes for each new version and adapt your code as necessary. Consider pinning minor versions or specific versions to mitigate unexpected breakage.","message":"The API of 'feu' is not guaranteed to be stable and is likely to change significantly before a stable 1.0.0 release. Upgrading to newer pre-1.0.0 versions may introduce breaking changes to existing code.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Thoroughly test your application when integrating or upgrading 'feu'. Monitor the project's development for updates on stability and new features. Contribute feedback if you encounter unexpected behavior.","message":"As a library in early development (pre-1.0.0), 'feu' may have rapidly evolving functionality, incomplete features, or undocumented behaviors. Relying on current features without careful testing might lead to issues in future updates.","severity":"gotcha","affected_versions":"<1.0.0"}],"env_vars":null,"last_verified":"2026-04-13T00:00:00.000Z","next_check":"2026-07-12T00:00:00.000Z"}