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

Uploaded Source

Built Distribution

dotprompt_cli-0.0.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dotprompt_cli-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 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.1.tar.gz
Algorithm Hash digest
SHA256 4a6afa2870ae7d3c76f8fbcd1e9e0167828043de411065f9233d8223372c405d
MD5 8f5e527268bf1fe178b9d77b2d467766
BLAKE2b-256 335c526cad559a459a79ffb041eb25814045ef04c3655f94290477bb8a0233fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dotprompt_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e70623716ce07ae82f6b197c48ca6d909d913afdfc6490fb17f3f707ee9bcc9f
MD5 23263e2881380ce604eb1b3165fd3fe8
BLAKE2b-256 ebaa279d270dc8641b5ba7deb5eab7622a0cea0dc2d7cc15a116675a7b08f9fd

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