|
| 1 | +# FuseFlow |
| 2 | + |
| 3 | +A Python package for building FUSE hydrological models. |
| 4 | + |
| 5 | +## Installation |
| 6 | + |
| 7 | +### From PyPI (when published) |
| 8 | +```bash |
| 9 | +pip install fuseflow |
| 10 | +``` |
| 11 | + |
| 12 | +### From Source |
| 13 | +```bash |
| 14 | +git clone https://github.com/kasra-keshavarz/fuseflow.git |
| 15 | +cd fuseflow |
| 16 | +pip install -e . |
| 17 | +``` |
| 18 | + |
| 19 | +### Development Installation |
| 20 | +```bash |
| 21 | +git clone https://github.com/kasra-keshavarz/fuseflow.git |
| 22 | +cd fuseflow |
| 23 | +pip install -e ".[dev]" |
| 24 | +``` |
| 25 | + |
| 26 | +## Quick Start |
| 27 | + |
| 28 | +```python |
| 29 | +from fuseflow import FuseFlow |
| 30 | + |
| 31 | +# Create an instance |
| 32 | +ff = FuseFlow() |
| 33 | + |
| 34 | +# Use the package |
| 35 | +result = ff.process() |
| 36 | +print(result) |
| 37 | +``` |
| 38 | + |
| 39 | +## Features |
| 40 | + |
| 41 | +- Feature 1: Description |
| 42 | +- Feature 2: Description |
| 43 | +- Feature 3: Description |
| 44 | + |
| 45 | +## Documentation |
| 46 | + |
| 47 | +Full documentation is available at [link-to-docs]. |
| 48 | + |
| 49 | +## Development |
| 50 | + |
| 51 | +### Setting up the development environment |
| 52 | + |
| 53 | +1. Clone the repository: |
| 54 | + ```bash |
| 55 | + git clone https://github.com/kasra-keshavarz/fuseflow.git |
| 56 | + cd fuseflow |
| 57 | + ``` |
| 58 | + |
| 59 | +2. Install in development mode with dev dependencies: |
| 60 | + ```bash |
| 61 | + pip install -e ".[dev]" |
| 62 | + ``` |
| 63 | + |
| 64 | +3. Install pre-commit hooks: |
| 65 | + ```bash |
| 66 | + pre-commit install |
| 67 | + ``` |
| 68 | + |
| 69 | +### Running Tests |
| 70 | + |
| 71 | +```bash |
| 72 | +# Run all tests |
| 73 | +pytest |
| 74 | + |
| 75 | +# Run tests with coverage |
| 76 | +pytest --cov=fuseflow --cov-report=html |
| 77 | + |
| 78 | +# Run specific test file |
| 79 | +pytest tests/test_core.py |
| 80 | +``` |
| 81 | + |
| 82 | +### Code Quality |
| 83 | + |
| 84 | +```bash |
| 85 | +# Format code |
| 86 | +black src tests |
| 87 | + |
| 88 | +# Lint code |
| 89 | +flake8 src tests |
| 90 | + |
| 91 | +# Type checking |
| 92 | +mypy src |
| 93 | +``` |
| 94 | + |
| 95 | +### Building the Package |
| 96 | + |
| 97 | +```bash |
| 98 | +# Build source and wheel distributions |
| 99 | +python -m build |
| 100 | +``` |
| 101 | + |
| 102 | +## Contributing |
| 103 | + |
| 104 | +1. Fork the repository |
| 105 | +2. Create a feature branch (`git checkout -b feature/amazing-feature`) |
| 106 | +3. Make your changes |
| 107 | +4. Add tests for your changes |
| 108 | +5. Ensure all tests pass and code is properly formatted |
| 109 | +6. Commit your changes (`git commit -m 'Add amazing feature'`) |
| 110 | +7. Push to the branch (`git push origin feature/amazing-feature`) |
| 111 | +8. Open a Pull Request |
| 112 | + |
| 113 | +## License |
| 114 | + |
| 115 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
| 116 | + |
| 117 | +## Changelog |
| 118 | + |
| 119 | +See [CHANGELOG.md](CHANGELOG.md) for a list of changes. |
0 commit comments