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

Uploaded Source

Built Distribution

dotprompt_cli-0.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dotprompt_cli-0.0.2.tar.gz
  • Upload date:
  • Size: 5.5 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.2.tar.gz
Algorithm Hash digest
SHA256 45ca4ebe2f712ede453866f82f522aab95cd58c043d4c7cc57e8fd5f9f0d042d
MD5 1f34d9089d79d0a788ae5fd434c8343e
BLAKE2b-256 75b44e2fb5f7de6d09f92a2c74148881ec0d1af439a4546cb7f907384a4137c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dotprompt_cli-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6c5b42cccb3eb2216428134b0f8104f37edc59f0136ce52b15bc52bb0bac8566
MD5 c73b4dfacbd0424adebe5945462e2996
BLAKE2b-256 38676401da018d50c91e7319a84f741d7aa04455871ef45d4fc3741c478618e8

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