You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gaggle can be configured using environment variables:
142
-
143
-
#### Cache Management
144
-
145
-
```bash
146
-
# Set cache size limit (default: 100GB = 102400 MB)
147
-
export GAGGLE_CACHE_SIZE_LIMIT_MB=51200 # 50GB
148
-
149
-
# Set unlimited cache
150
-
export GAGGLE_CACHE_SIZE_LIMIT_MB=unlimited
151
-
152
-
# Set cache directory (default: ~/.cache/gaggle_cache or platform-specific)
153
-
export GAGGLE_CACHE_DIR=/path/to/cache
154
-
155
-
# Enable hard limit mode (prevents downloads when limit reached, default: soft limit)
156
-
export GAGGLE_CACHE_HARD_LIMIT=true
157
-
```
158
-
159
-
#### Network Configuration
160
-
161
-
```bash
162
-
# HTTP timeout in seconds (default: 30)
163
-
export GAGGLE_HTTP_TIMEOUT=60
164
-
165
-
# HTTP retry attempts (default: 3)
166
-
export GAGGLE_HTTP_RETRY_ATTEMPTS=5
167
-
168
-
# HTTP retry delay in milliseconds (default: 1000)
169
-
export GAGGLE_HTTP_RETRY_DELAY_MS=500
170
-
171
-
# HTTP retry max delay in milliseconds (default: 30000)
172
-
export GAGGLE_HTTP_RETRY_MAX_DELAY_MS=60000
173
-
```
174
-
175
-
#### Authentication
176
-
177
-
```bash
178
-
# Kaggle API credentials (alternative to ~/.kaggle/kaggle.json)
179
-
export KAGGLE_USERNAME=your-username
180
-
export KAGGLE_KEY=your-api-key
181
-
```
182
-
183
-
> [!TIP]
184
-
> **Soft Limit (Default):** Downloads complete even if they exceed the cache limit, then oldest datasets are automatically evicted using LRU (Least Recently Used) policy until under limit.
185
-
>
186
-
> **Hard Limit:** Would prevent downloads when limit is reached (not yet fully implemented).
187
-
188
-
---
189
-
190
143
### Documentation
191
144
192
145
Check out the [docs](docs/README.md) directory for the API documentation, how to build Gaggle from source, and more.
@@ -197,6 +150,19 @@ Check out the [examples](docs/examples) directory for SQL scripts that show how
197
150
198
151
---
199
152
153
+
### Configuration
154
+
155
+
See [CONFIGURATION.md](docs/CONFIGURATION.md) for full details. Main environment variables:
0 commit comments