Sinaptik-AI / pandas-ai

Chat with your database (SQL, CSV, pandas, polars, mongodb, noSQL, etc). PandasAI makes data analysis conversational using LLMs (GPT 3.5 / 4, Anthropic, VertexAI) and RAG.
https://pandas-ai.com
Other
13.56k stars 1.32k forks source link

chore[Security]: restrict libs to allow specific functionalities #1429

Closed ArslanSaleem closed 2 days ago

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 71.25000% with 46 lines in your changes missing coverage. Please review.

Project coverage is 78.57%. Comparing base (719043c) to head (e7eb9e3). Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pandasai/safe_libs/restricted_base64.py 41.66% 7 Missing :warning:
pandasai/safe_libs/restricted_datetime.py 41.66% 7 Missing :warning:
pandasai/safe_libs/restricted_json.py 41.66% 7 Missing :warning:
pandasai/safe_libs/restricted_seaborn.py 41.66% 7 Missing :warning:
pandasai/helpers/optional.py 80.95% 4 Missing :warning:
pandasai/safe_libs/base_restricted_module.py 81.25% 3 Missing :warning:
pandasai/safe_libs/restricted_matplotlib.py 81.25% 3 Missing :warning:
pandasai/safe_libs/restricted_numpy.py 75.00% 3 Missing :warning:
pandasai/safe_libs/restricted_pandas.py 78.57% 3 Missing :warning:
pandasai/pipelines/chat/code_cleaning.py 93.75% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1429 +/- ## ========================================== - Coverage 78.87% 78.57% -0.31% ========================================== Files 150 158 +8 Lines 6160 6323 +163 ========================================== + Hits 4859 4968 +109 - Misses 1301 1355 +54 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: