Skip to main content

A Machine that writes programs.

Project description

Programming-Machine

A Machine that writes programs.

In order to launch it from the command line or as a Python subprocess:

echo "Theodotos-Alexandreus: Write a program doing that, machine." \
  | uvx programming-machine \
    --provider-api-key=sk-proj-... \
    --github-token=ghp_... 

Or, with a local pip installation:

pip install programming-machine

Set the environment variables:

export PROVIDER_API_KEY="sk-proj-..."
export GITHUB_TOKEN="ghp_..."

Then:

programming-machine multilogue.txt

Or:

programming-machine multilogue.txt new_turn.txt

Or:

cat multilogue.txt | programming-machine

Or:

cat multilogue.txt | programming-machine > tmp && mv tmp multilogue.txt

Or:

(cat multilogue.txt; echo:"Theodotos: What do you think, Programming-Machine?") \
  | programming-machine

Or:

cat multilogue.txt new_turn.txt | programming-machine

Or:

cat multilogue.txt new_turn.txt | programming-machine >  tmp && mv tmp multilogue.txt

Or, if you have installed other machines:

cat multilogue.md | programming-machine \
  | summarizing-machine | judging-machine > summary_judgment.md

Or use it in your Python code:

# Python
import programming_machine

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

programming_machine-0.0.1.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

programming_machine-0.0.1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: programming_machine-0.0.1.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for programming_machine-0.0.1.tar.gz
Algorithm Hash digest
SHA256 45d72f5f9514cfff124bcb230a5762d60da6a2111e0bc0ed11655f4aadb7524e
MD5 d82a8a34542eb96fe5e031e7c1998fee
BLAKE2b-256 790f555084c49d3b2c78e90b6085ba515a3ffa9cd2b28a78d6e29aced926a8d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for programming_machine-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6eef5ed2b658e927a8d02a432775f3ac548220a0e824ed4cb1650e4f534cc36a
MD5 d88c2492a8c267d5992f4dde8a627a03
BLAKE2b-256 ac3a80ebce8069fad9125a63cc73bcaa56b48dfeeb65ace468e114e5ec143b62

See more details on using hashes here.

Supported by

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