Name | ariamehr-gemini-pandas-agent JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | Google‑native alternative to LangChain's create_pandas_dataframe_agent by Ariamehr A |
upload_time | 2025-04-20 23:26:58 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License
Copyright (c) 2024 Ariamehr A
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. |
keywords |
gemini
pandas
agent
langgraph
google-generativeai
ariamehr
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Ariamehr's Gemini Pandas Agent
A Google-native alternative to LangChain's create_pandas_dataframe_agent, powered by Gemini and LangGraph.
Created by Ariamehr A
## Installation
```bash
pip install ariamehr-gemini-pandas-agent
```
## Quick Start
```python
import pandas as pd
import google.generativeai as genai
from ariamehr_gpandas_agent import create_pandas_dataframe_agent
# Configure Gemini
genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemini-2.0-pro")
# Load your data
df = pd.read_csv("your_data.csv")
# Create the agent
agent = create_pandas_dataframe_agent(model, df, allow_dangerous_code=False)
# Ask questions about your data
response = agent.run("What is the average value in column X?")
print(response)
```
## Features
- 🚀 Powered by Google's Gemini API and LangGraph
- 🔒 Secure Python AST-based code execution
- 📊 Support for single or multiple DataFrames
- 🎯 Simple, LangChain-compatible interface
- 🛡️ Safe by default with optional dangerous code allowance
## Security Note
By default, the agent runs in a secure mode that prevents potentially dangerous imports. If you need to allow specific imports, use `allow_dangerous_code=True`, but be aware of the security implications.
## License
MIT License - see LICENSE file for details.
## Author
Created by Ariamehr A
## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Raw data
{
"_id": null,
"home_page": null,
"name": "ariamehr-gemini-pandas-agent",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "gemini, pandas, agent, langgraph, google-generativeai, ariamehr",
"author": null,
"author_email": "Ariamehr A <ariamehr@example.com>",
"download_url": "https://files.pythonhosted.org/packages/5b/74/e6755c61f9d37ae96d6e0a61770df5877fb0686fcf2688ea8b16067cb9fd/ariamehr_gemini_pandas_agent-0.1.0.tar.gz",
"platform": null,
"description": "# Ariamehr's Gemini Pandas Agent\r\n\r\nA Google-native alternative to LangChain's create_pandas_dataframe_agent, powered by Gemini and LangGraph.\r\n\r\nCreated by Ariamehr A\r\n\r\n## Installation\r\n\r\n```bash\r\npip install ariamehr-gemini-pandas-agent\r\n```\r\n\r\n## Quick Start\r\n\r\n```python\r\nimport pandas as pd\r\nimport google.generativeai as genai\r\nfrom ariamehr_gpandas_agent import create_pandas_dataframe_agent\r\n\r\n# Configure Gemini\r\ngenai.configure(api_key=\"YOUR_API_KEY\")\r\nmodel = genai.GenerativeModel(\"gemini-2.0-pro\")\r\n\r\n# Load your data\r\ndf = pd.read_csv(\"your_data.csv\")\r\n\r\n# Create the agent\r\nagent = create_pandas_dataframe_agent(model, df, allow_dangerous_code=False)\r\n\r\n# Ask questions about your data\r\nresponse = agent.run(\"What is the average value in column X?\")\r\nprint(response)\r\n```\r\n\r\n## Features\r\n\r\n- \ud83d\ude80 Powered by Google's Gemini API and LangGraph\r\n- \ud83d\udd12 Secure Python AST-based code execution\r\n- \ud83d\udcca Support for single or multiple DataFrames\r\n- \ud83c\udfaf Simple, LangChain-compatible interface\r\n- \ud83d\udee1\ufe0f Safe by default with optional dangerous code allowance\r\n\r\n## Security Note\r\n\r\nBy default, the agent runs in a secure mode that prevents potentially dangerous imports. If you need to allow specific imports, use `allow_dangerous_code=True`, but be aware of the security implications.\r\n\r\n## License\r\n\r\nMIT License - see LICENSE file for details.\r\n\r\n## Author\r\n\r\nCreated by Ariamehr A\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Please feel free to submit a Pull Request. \r\n",
"bugtrack_url": null,
"license": "MIT License\r\n \r\n Copyright (c) 2024 Ariamehr A\r\n \r\n Permission is hereby granted, free of charge, to any person obtaining a copy\r\n of this software and associated documentation files (the \"Software\"), to deal\r\n in the Software without restriction, including without limitation the rights\r\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n copies of the Software, and to permit persons to whom the Software is\r\n furnished to do so, subject to the following conditions:\r\n \r\n The above copyright notice and this permission notice shall be included in all\r\n copies or substantial portions of the Software.\r\n \r\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n SOFTWARE. ",
"summary": "Google\u2011native alternative to LangChain's create_pandas_dataframe_agent by Ariamehr A",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [
"gemini",
" pandas",
" agent",
" langgraph",
" google-generativeai",
" ariamehr"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "25a255518a46f49de452cfb39e245116fa62fea20bef6e0a65b3982dfbec373f",
"md5": "1516bef0f469368dadfcee98354e68bb",
"sha256": "1b6c25331b8226286f2d40e5de8b0e33e1a6d1f99ba0e950103e22d881fd542a"
},
"downloads": -1,
"filename": "ariamehr_gemini_pandas_agent-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1516bef0f469368dadfcee98354e68bb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 7579,
"upload_time": "2025-04-20T23:26:56",
"upload_time_iso_8601": "2025-04-20T23:26:56.915332Z",
"url": "https://files.pythonhosted.org/packages/25/a2/55518a46f49de452cfb39e245116fa62fea20bef6e0a65b3982dfbec373f/ariamehr_gemini_pandas_agent-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "5b74e6755c61f9d37ae96d6e0a61770df5877fb0686fcf2688ea8b16067cb9fd",
"md5": "a23b2b70e839233d2897fbcbce9c61a5",
"sha256": "6aa8c5f95b7ef290673079adeabe9d954a28d85a7c34422c4aeddf48383f4c4d"
},
"downloads": -1,
"filename": "ariamehr_gemini_pandas_agent-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "a23b2b70e839233d2897fbcbce9c61a5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 5382,
"upload_time": "2025-04-20T23:26:58",
"upload_time_iso_8601": "2025-04-20T23:26:58.533881Z",
"url": "https://files.pythonhosted.org/packages/5b/74/e6755c61f9d37ae96d6e0a61770df5877fb0686fcf2688ea8b16067cb9fd/ariamehr_gemini_pandas_agent-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-04-20 23:26:58",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ariamehr-gemini-pandas-agent"
}