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.2.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.2-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: programming_machine-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7deb11003e1162d0a6d5dc685e67f7605e6f637fa0e9718ffb9f04085dbccc61
MD5 c5caf1b935d2dac0d4ed12794d9ab3f8
BLAKE2b-256 58a3232ccfd8cac2b5aa476afacd7294e7220b91a1262851d7fd0af047f4c808

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for programming_machine-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6da2308f4c1e2bba1c37cdaf4865cda71b37b36797cb01a954db5d66ab5a1a1
MD5 861d62c10c69c193693a1f6ceccbda67
BLAKE2b-256 9741710150c430fb61911e05f4e5044b6426249a243e1c78af87ebcda240431d

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