Installation¶
meteaudata can be installed using various Python package managers. Choose the method that best fits your workflow.
Requirements¶
- Python 3.9 or higher
- pandas >= 1.4
- pydantic >= 2.0, < 3.0
Installation Methods¶
Using pip¶
Using Poetry¶
If you're using Poetry for dependency management:
Using uv¶
If you're using uv as your package manager:
Development Installation¶
If you want to contribute to meteaudata or need the latest development version:
1. Fork and Clone the Repository¶
2. Install with Development Dependencies¶
Using uv (recommended):
Using pip:
3. Set Up Pre-commit Hooks¶
Verify Installation¶
To verify that meteaudata is installed correctly, try importing it:
Or run a quick test:
from meteaudata import Signal, DataProvenance
import pandas as pd
import numpy as np
# Create a simple signal
data = pd.Series(np.random.randn(10), name="test_data")
provenance = DataProvenance(
source_repository="Installation test",
project="meteaudata",
location="Test location",
equipment="Test equipment",
parameter="Test parameter",
purpose="Verify installation",
metadata_id="test"
)
signal = Signal(
input_data=data,
name="test_signal",
provenance=provenance,
units="test_units"
)
print(f"Signal created successfully: {signal.name}")
Optional Dependencies¶
Some features require additional packages:
- Visualization:
plotlyandipywidgets(included by default) - Jupyter Support:
ipython(included by default) - Network Graphs:
networkx(included by default)
Troubleshooting¶
Common Issues¶
Import Error: If you get import errors, ensure you have the correct Python version (3.9+) and all dependencies are installed.
Version Conflicts: If you encounter dependency conflicts, try creating a fresh virtual environment:
python -m venv meteaudata-env
source meteaudata-env/bin/activate # On Windows: meteaudata-env\Scripts\activate
pip install meteaudata
Development Issues: For development installations, make sure you have the latest version of your package manager:
Next Steps¶
Once installed, check out the Quick Start guide to begin using meteaudata, or learn about the Basic Concepts behind the library.