Installationο
This guide will help you install the forex_data package and all its dependencies.
Prerequisitesο
Before installing forex_data, make sure you have:
Python 3.13 installed on your system
uv package manager (recommended)
Note
uv is the recommended way to manage this package. If you donβt have uv installed, visit the uv documentation for installation instructions.
Installing uvο
To install uv, run:
curl -LsSf https://astral.sh/uv/install.sh | sh
Or on Windows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Quick Installationο
Using pip or uv (Recommended)ο
The easiest way to install forex_data is from PyPI:
uv pip install forex-data-aggregator
Or using pip:
pip install forex-data-aggregator
This will install the latest stable version with all dependencies.
Note
After installation, you can import the package as import forex_data
Installing from Sourceο
For Development or Latest Featuresο
If you want to contribute to development or use the latest features:
1. Clone the Repositoryο
First, clone the forex_data repository:
git clone https://github.com/nikfio/forex_data.git -b master forex-data
cd forex-data
2. Install uvο
Ensure you have uv installed:
curl -LsSf https://astral.sh/uv/install.sh | sh
3. Install Dependenciesο
Use uv to synchronize the environment and install all dependencies:
uv sync
This will:
Create a virtual environment at
.venvInstall all required dependencies from
uv.lockInstall the package in editable development mode
4. Verify Installationο
Run the test suite to ensure everything is working correctly:
uv run pytest
If all tests pass, your installation is successful! β
Installation Optionsο
Development Installationο
For development work including documentation tools, install with development dependencies:
uv sync --group dev
This includes additional tools for:
Testing (pytest)
Linting (flake8, mypy)
Documentation (sphinx, sphinx-rtd-theme, sphinx-autodoc-typehints)
Code formatting (autopep8)
Default Installationο
For a standard environment with core project dependencies:
uv sync --no-dev
Requirementsο
The package has the following main dependencies:
Data Processing: polars, pyarrow, or pandas
HTTP Requests: requests
Logging: loguru
Configuration: PyYAML
Plotting: plotly or matplotlib
See pyproject.toml for the complete list of dependencies.
Next Stepsο
Now that you have installed forex_data, you can:
Read the Quick Start guide to start using the package
Learn about Configuration options
Explore Examples for common use cases
If you encounter any issues during installation, please check our GitHub Issues page.