Skip to content

Conversation

Dharshana-Belraj
Copy link

Add .env file support for local development

Changes

  • Added python-dotenv dependency to requirements.txt
  • Created .env.example template with all configuration variables
  • Updated README.md with local development section
  • Added dotenv import and load_dotenv() call to main script

Benefits

  • Improves developer experience for local development and testing
  • Maintains full backward compatibility with existing environment variable setup
  • Follows Python best practices for environment variable management
  • Makes it easier for new contributors to get started

Testing

  • Tested with .env file - works correctly
  • Tested without .env file - maintains backward compatibility
  • All existing functionality preserved

- Add python-dotenv dependency for loading environment variables from .env files
- Create .env.example template with all required and optional variables
- Update README.md with local development section and .env usage instructions
- Maintains full backward compatibility with existing environment variable setup
- Improves developer experience for local development and testing
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.

1 participant