knownsec / aipyapp
- воскресенье, 21 сентября 2025 г. в 00:00:04
AI-Powered Python & Python-Powered AI (Python-Use)
AIPy is an implementation of the Python-use concept, demonstrating its practical value and potential.
Python use provides the entire Python execution environment to LLM. Imagine LLM sitting in front of a computer, typing various commands into the Python command-line interpreter, pressing Enter to execute, observing the results, and then typing and executing more code.
Unlike Agents, Python use does not define any tools interface. LLM can freely use all the features provided by the Python runtime environment.
If you are a data engineer, you are likely familiar with the following scenarios:
This process often requires:
So, why not start the Python command-line interpreter, directly describe your data processing needs, and let it be done automatically? The benefits are:
This is the problem Python use aims to solve!
Python use (aipython) is a Python command-line interpreter integrated with LLM. You can:
Moreover, the two modes can access data interchangeably. For example, after aipython processes your natural language commands, you can use standard Python commands to view various data.
AIPython has two running modes:
The default running mode is task mode, which can be switched to Python mode using the --python
parameter.
~/.aipyapp/aipyapp.toml:
[llm.deepseek]
type = "deepseek"
api_key = "Your DeepSeek API Key"
uv run aipy
>>> Get the latest posts from Reddit r/LocalLLaMA
......
......
>>> /done
pip install aipyapp
and run with aipy
-> % aipy
🚀 Python use - AIPython (0.1.22) [https://aipy.app]
>> Get the latest posts from Reddit r/LocalLLaMA
......
>>
Automatic task processing:
>>> ai("Get the title of Google's homepage")
Python use - AIPython (Quit with 'exit()')
>>> ai("Use psutil to list all processes on MacOS")
📦 LLM requests to install third-party packages: ['psutil']
If you agree and have installed, please enter 'y [y/n] (n): y