Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for customizing environment variables using python-dotenv #1

Open
dwhan89 opened this issue Jan 24, 2025 · 1 comment
Open

Comments

@dwhan89
Copy link

dwhan89 commented Jan 24, 2025

Description:
Currently, there is no streamlined way to manage environment variables (such as OpenAI API key) within the project. To improve configuration management and user experience, it is probably worthwhile integrating python-dotenv (or something like that) for handling environment variables


Proposal

  1. Add python-dotenv as a dependency in the project.
  2. Create an editable .env.template file in the root directory.
  3. Add an instruction on how to customize the .env.template file in the README.
  4. Update the codebase to load environment variables from the .env file either automatically or manually.
  5. Edit the .gitignore file to prevent users from committing the .env file to the remote repository.

Goals

  • Simplifies configuration management.
  • Improves workflows by enabling end-users to manage environment-specific variables easily.
@dwhan89
Copy link
Author

dwhan89 commented Jan 24, 2025

Note: This is not a critical feature. I can create a pull request once it has been implemented.

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

No branches or pull requests

1 participant