Installation¶
fsspeckit can be installed using pip, the Python package installer.
Prerequisites¶
- Python 3.11 or higher is required.
Install with pip¶
To install fsspeckit using pip, run the following command:
Optional Dependencies¶
fsspeckit uses lazy imports for optional dependencies, allowing you to install only what you need:
Cloud Provider Support¶
Data Processing Libraries¶
The following libraries are optional and loaded only when needed:
Note: You can use fsspeckit core functionality without any of these dependencies. They are only required when you use specific features:
- PyArrow: Required for
fsspeckit.datasets.pyarrowoperations - Polars: Required for Polars-specific utilities in
fsspeckit.common.polars - DuckDB: Required for
fsspeckit.datasets.DuckDBParquetHandler - SQLglot: Required for SQL filter translation in
fsspeckit.sql.filters
If you attempt to use a feature requiring an optional dependency that isn't installed, you'll receive a clear error message indicating which package to install.
Upgrading¶
To upgrade fsspeckit to the latest version, use:
Environment Management with uv and pixi¶
For robust dependency management and faster installations, we recommend using uv or pixi.
Using uv¶
uv is a fast Python package installer and resolver. To install fsspeckit with uv:
Using pixi¶
pixi is a modern package manager for Python and other languages. To add fsspeckit to your pixi project:
Troubleshooting¶
If you encounter any issues during installation, consider the following:
- Python Version: Ensure you are using Python 3.11 or higher. You can check your Python version with
python --version. - Virtual Environments: It is highly recommended to use a virtual environment (e.g.,
venv,conda,uv,pixi) to avoid conflicts with system-wide packages. - Permissions: If you encounter permission errors, you might need to run the installation command with
sudo(e.g.,sudo pip install fsspeckit), but this is generally not recommended in a virtual environment. - Network Issues: Check your internet connection if the installation fails to download packages.
For further assistance, please refer to the official fsspeckit GitHub repository or open an issue.