Skip to main content

Generate files from AI prompts

Project description

DotPrompt

[AI-generated content notice: This README was produced by AI from a prompt and should not be edited directly.]

DotPrompt is a revolutionary approach to software development that explores the idea of generating code entirely through AI-driven prompts. This project, authored by Dmitry Degtyarev, aims to change the way we think about coding and version control.

Table of Contents

Introduction

In traditional programming, code is built through a series of iterations, either by humans or AI. The resulting code doesn't reveal which prompts were used to build it, making it challenging to alter these prompts later. It's comparable to having a compiled binary without access to the source code.

DotPrompt proposes a radical idea: what if the code is 100% produced by AI, and humans only edit the prompts used by AI?

Key Concepts

  1. .prompt files: These files contain the prompts used to produce actual code files.
  2. Builder script: A simple script that executes the .prompt files to generate the code.
  3. Self-generation: The builder script itself can be generated from a .prompt file, allowing the generator to create itself.
  4. Multi-level abstraction: .prompt files can be built from other .prompt files, enabling higher-level idea representation.
  5. Reverse engineering: The potential to derive prompt files from existing source code.

Features

  • Generate code entirely from AI prompts
  • Maintain a clear history of prompts used to create each file
  • Enable easy modification of code by altering prompts
  • Support for multi-level abstraction in prompt creation
  • Potential for reverse engineering prompts from source code

Installation

[Instructions for installing DotPrompt will be added here]

Usage

[Instructions for using DotPrompt will be added here]

Build and Deploy

To build and deploy DotPrompt to PyPI, follow these steps:

  1. Ensure you have the build module installed:
pip install build
  1. Navigate to the project root directory.

  2. Build the project:

python -m build

This will create a dist directory with the built distributions.

  1. Install twine if you haven't already:
pip install twine
  1. Upload the distribution to PyPI:
twine upload dist/*

You will be prompted for your PyPI username and password.

To-Do List

  • Implement a templating engine for .prompt files to allow inclusion of other prompts and/or source files
  • Add dependency graph analysis to the builder script for efficient prompt execution
  • Develop the ability to produce multiple files from a single prompt (e.g., source code and unit tests)
  • Implement functionality to run unit tests and make necessary changes based on error messages

License

This project is licensed under the MIT License.

Contact

For inquiries or suggestions, you can reach out to the author, Dmitry Degtyarev, via Twitter: @Mitek99

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

dotprompt_cli-0.0.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

dotprompt_cli-0.0.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file dotprompt_cli-0.0.3.tar.gz.

File metadata

  • Download URL: dotprompt_cli-0.0.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for dotprompt_cli-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3f578dc147f8582610867f2ebb32dab97fe126b13a6b49e4b44a41dbc5b46418
MD5 79435e8c50e1dc26dc81121db50ecad3
BLAKE2b-256 10c969ac5b83caeefd690f40d7d2c602991f5ef393bcc5843d0f51820e1a5280

See more details on using hashes here.

File details

Details for the file dotprompt_cli-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for dotprompt_cli-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b684ac2c1b98052c5602ada8920dccfe2ba8c06981b6bcb7ecd64c3ffeb5117
MD5 c2a8c714361d7c0080920393069c97ad
BLAKE2b-256 212b2607fa20664ba539eaa29e0d89e624d38d4b89993b63c84a3332978652e3

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page