Skip to content

Conversation

@AdirAmsalem
Copy link
Contributor

@AdirAmsalem AdirAmsalem commented Nov 30, 2025

Adds support for automatic API key detection from the DECART_API_KEY environment variable.

  • Users can now call DecartClient() without arguments if the env var is set
  • Explicit apiKey option takes precedence over the env var
  • Improved error message guides users to either option

Usage:

# Option 1: Explicit API key
client = DecartClient(api_key="your-api-key")

# Option 2: Using DECART_API_KEY environment variable
client = DecartClient();

@AdirAmsalem AdirAmsalem marked this pull request as ready for review November 30, 2025 13:09
@AdirAmsalem AdirAmsalem merged commit 12e2948 into main Nov 30, 2025
9 checks passed
@AdirAmsalem AdirAmsalem deleted the api-key-from-env branch November 30, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants