Skip to main content

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

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.3.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

PMAgent-0.1.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file PMAgent-0.1.3.tar.gz.

File metadata

  • Download URL: PMAgent-0.1.3.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for PMAgent-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d818e8bb40e7cda729ccfc6ff3f03ca757ce3bc6c66865e7e8d7cf9151b7b9a2
MD5 f161c0b6e378ceffed880a008d7aabd9
BLAKE2b-256 f7f162d6407d37f9af24844f2add2152e23dfe04cea89a779aa1e03f3fe879e0

See more details on using hashes here.

File details

Details for the file PMAgent-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: PMAgent-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.6

File hashes

Hashes for PMAgent-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e78ef33b4eb82a7fab2d9ef14f9e839e696fe1cdf18ddb0fe842bd5010630cbe
MD5 173619bb6c461a2f18d5de198ad9c8e7
BLAKE2b-256 e76717ba0d73c090c6e58d1a97d5c4ff2ededee42fa58741766077c7f2b9c82f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page