-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(integration-service): added env file to load the API_KEYS for va…
…rious integrations (#855) <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add environment variable handling for API keys in integration services using `environs`. > > - **Environment Variables**: > - Add `env.py` to load API keys and other sensitive data using `environs`. > - Update `docker-compose.yml` to include new environment variables for integrations. > - **Integration Updates**: > - Modify `brave.py`, `browserbase.py`, `cloudinary.py`, `email.py`, `llama_parse.py`, `spider.py`, and `weather.py` to use environment variables for API keys. > - Replace hardcoded 'DEMO_API_KEY' and similar placeholders with actual environment variables. > - **Dependencies**: > - Add `environs` to `pyproject.toml` for environment variable management. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup> for 65d5c0a. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information
1 parent
c957c33
commit 6ebe65e
Showing
11 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from environs import Env | ||
|
||
# Initialize the Env object for environment variable parsing. | ||
env = Env() | ||
env.read_env() # Read .env file, if it exists | ||
|
||
# Load environment variables | ||
rapid_api_key = env.str("RAPID_API_KEY") | ||
rapid_api_host = env.str("RAPID_API_HOST") | ||
aryshare_key = env.str("ARYSHARE_KEY") | ||
aryshare_profile_id = env.str("ARYSHARE_PROFILE_ID") | ||
browserbase_api_key = env.str("BROWSERBASE_API_KEY") | ||
browserbase_project_id = env.str("BROWSERBASE_PROJECT_ID") | ||
openweather_api_key = env.str("OPENWEATHER_API_KEY") | ||
spider_api_key = env.str("SPIDER_API_KEY") | ||
brave_api_key = env.str("BRAVE_API_KEY") | ||
llama_api_key = env.str("LLAMA_API_KEY") | ||
cloudinary_api_key = env.str("CLOUDINARY_API_KEY") | ||
cloudinary_api_secret = env.str("CLOUDINARY_API_SECRET") | ||
cloudinary_cloud_name = env.str("CLOUDINARY_CLOUD_NAME") | ||
mailgun_password = env.str("MAILGUN_PASSWORD") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters