A Python agent for refactoring and modifying code using OpenAI.
Project description
PMAgent
PMAgent is a Python package that helps developers refactor and modify code using OpenAI. It reads code from files, interacts with an LLM to generate modifications, and saves changes back to the files.
Installation
To install PMAgent:
pip install PMAgent
export OPENAI_API_KEY="sk-"
pmagent "Fix the code from playground folder" playground
# pmagent <UserPrompt> <directorytoexecute>
Put API KEY ON ENV: OPENAI_API_KEY
Examples
Syntax
pmagent <UserPrompt> <directorytoexecute>
Use Case:
pmagent "Create a webpage for a clothing store, put some random cloth images from online free images for products and add an add-to-cart button, i have create folder web-page" web-page
pmagent "write a data analyis code on anaylis.ipynb file to do data analyiss on data from data-analysis folder" data-analysis
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PMAgent-0.1.4.tar.gz
(5.3 kB
view details)
Built Distribution
File details
Details for the file PMAgent-0.1.4.tar.gz
.
File metadata
- Download URL: PMAgent-0.1.4.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b19539e2ef4945bcfb1fc00041337fae4b91f9232903b93b28d04f39c502e4e |
|
MD5 | d915c6dcf6d596b2804e6e84be7b982e |
|
BLAKE2b-256 | c24e504a799c7f53b818371fc93bb5c0d6dc4859ff02e03e0a45dbe6527b9eaa |
File details
Details for the file PMAgent-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: PMAgent-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91b52d31549721af30720279effde6e9f95b6bcfdfd688119597a7309573cd23 |
|
MD5 | cecf9c9ce545a987097dd9cee5a57112 |
|
BLAKE2b-256 | 5067d2390cf85a3cc8a350a20fc512025da6bb4cb358ac35189158c6ae204672 |