Skip to content

Commit 19c4c83

Browse files
Merge pull request #102 from Bigdata-com/dependa-fix
Dependabot fix and Updated to use bigdata-api key instead of username and password
2 parents 7975584 + 00c0237 commit 19c4c83

44 files changed

Lines changed: 1106 additions & 9436 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
# Virtual environments (uv / local tooling)
1717
.venv/
1818

19+
# Python build artifacts
20+
*.egg-info/
21+
1922
# Google ADK / adk web local session store (anywhere in the repo)
2023
**/.adk/
2124

@@ -24,3 +27,6 @@ Agent_To_BigData/my_agent/data/
2427

2528
# Runs
2629
*/runs
30+
31+
**/uv.lock
32+
*/internal
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
# Liquid Cooling Market Watch Environment Variables
2-
# Copy this file to .env and fill in your actual credentials
1+
# Bigdata API Credentials
2+
BIGDATA_API_KEY=your_api_key_here
33

4-
# Bigdata API credentials
5-
BIGDATA_USERNAME=your_username
6-
BIGDATA_PASSWORD=your_password
7-
8-
# OpenAI API key (for advanced features)
9-
OPENAI_API_KEY=your_openai_api_key
4+
# OpenAI API Key
5+
OPENAI_API_KEY=your_openai_api_key_here

AI_Cost_Cutting_Market_Analysis/AI_Cost_Cutting_Market_Analysis.ipynb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,10 @@
151151
"script_dir = Path(__file__).parent if '__file__' in globals() else Path.cwd()\n",
152152
"load_dotenv(script_dir / '.env')\n",
153153
"\n",
154-
"BIGDATA_USERNAME = os.getenv('BIGDATA_USERNAME')\n",
155-
"BIGDATA_PASSWORD = os.getenv('BIGDATA_PASSWORD')\n",
154+
"BIGDATA_API_KEY = os.getenv('BIGDATA_API_KEY')\n",
156155
"OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')\n",
157156
"\n",
158-
"if not all([BIGDATA_USERNAME, BIGDATA_PASSWORD, OPENAI_API_KEY]):\n",
157+
"if not all([BIGDATA_API_KEY, OPENAI_API_KEY]):\n",
159158
" print(\"❌ Missing required environment variables\")\n",
160159
" raise ValueError(\"Missing required environment variables. Check your .env file.\")\n",
161160
"else:\n",
@@ -272,7 +271,7 @@
272271
"metadata": {},
273272
"outputs": [],
274273
"source": [
275-
"bigdata = Bigdata(BIGDATA_USERNAME, BIGDATA_PASSWORD)"
274+
"bigdata = Bigdata(api_key=BIGDATA_API_KEY)"
276275
]
277276
},
278277
{
@@ -10904,4 +10903,4 @@
1090410903
},
1090510904
"nbformat": 4,
1090610905
"nbformat_minor": 4
10907-
}
10906+
}
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
# Liquid Cooling Market Watch Environment Variables
2-
# Copy this file to .env and fill in your actual credentials
1+
# Bigdata API Credentials
2+
BIGDATA_API_KEY=your_api_key_here
33

4-
# Bigdata API credentials
5-
BIGDATA_USERNAME=your_username
6-
BIGDATA_PASSWORD=your_password
7-
8-
# OpenAI API key (for advanced features)
9-
OPENAI_API_KEY=your_openai_api_key
4+
# OpenAI API Key
5+
OPENAI_API_KEY=your_openai_api_key_here

AI_Revenue_Generation_Market_Analysis/AI_Revenue_Generation_Market_Analysis.ipynb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,10 @@
151151
"script_dir = Path(__file__).parent if '__file__' in globals() else Path.cwd()\n",
152152
"load_dotenv(script_dir / '.env')\n",
153153
"\n",
154-
"BIGDATA_USERNAME = os.getenv('BIGDATA_USERNAME')\n",
155-
"BIGDATA_PASSWORD = os.getenv('BIGDATA_PASSWORD')\n",
154+
"BIGDATA_API_KEY = os.getenv('BIGDATA_API_KEY')\n",
156155
"OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')\n",
157156
"\n",
158-
"if not all([BIGDATA_USERNAME, BIGDATA_PASSWORD, OPENAI_API_KEY]):\n",
157+
"if not all([BIGDATA_API_KEY, OPENAI_API_KEY]):\n",
159158
" print(\"❌ Missing required environment variables\")\n",
160159
" raise ValueError(\"Missing required environment variables. Check your .env file.\")\n",
161160
"else:\n",
@@ -272,7 +271,7 @@
272271
"metadata": {},
273272
"outputs": [],
274273
"source": [
275-
"bigdata = Bigdata(BIGDATA_USERNAME, BIGDATA_PASSWORD)"
274+
"bigdata = Bigdata(api_key=BIGDATA_API_KEY)"
276275
]
277276
},
278277
{
@@ -11089,4 +11088,4 @@
1108911088
},
1109011089
"nbformat": 4,
1109111090
"nbformat_minor": 4
11092-
}
11091+
}

Agent_To_BigData/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,16 @@ Set `LANGSMITH_API_KEY` and optionally configure the project name in your enviro
118118

119119
Follow these steps to run the notebooks locally. No sample code is required in this section—each notebook is self-contained.
120120

121-
### 1. Environment setup with uv
121+
### 1. Environment setup
122122

123-
From the project root, create a virtual environment and install dependencies using [uv](https://docs.astral.sh/uv/):
123+
From the project root, create a virtual environment and install dependencies:
124124

125125
```bash
126-
# Create venv and install dependencies (uses pyproject.toml and uv.lock)
126+
# with uv (recommended)
127127
uv sync
128+
129+
# with pip
130+
pip install -r requirements.txt
128131
```
129132

130133
For the **MCP notebook** (`agent_to_bigdata_mcp.ipynb`), `langchain-mcp-adapters` is in `pyproject.toml` and will be installed by the above. Ensure your Python version matches the project (e.g. `>=3.13` per `pyproject.toml`; uv will use `.python-version` if present).

0 commit comments

Comments
 (0)