Skip to main content

A Machine that produces code.

Project description

Coding-Machine

A Machine that produces code.

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

echo "Theodotos-Alexandreus: Produce the code that does that, machine." \
  | uvx coding-machine \
    --provider-api-key=sk-proj-... \
    --github-token=ghp_... 

Or, with a local pip installation:

pip install coding-machine

Set the environment variables:

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

Then:

coding-machine multilogue.txt

Or:

coding-machine multilogue.txt new_turn.txt

Or:

cat multilogue.txt | coding-machine

Or:

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

Or:

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

Or:

cat multilogue.txt new_turn.txt | coding-machine

Or:

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

Or, if you have installed other machines:

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

Or use it in your Python code:

# Python
import coding_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

coding_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.

coding_machine-0.0.1-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: coding_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 coding_machine-0.0.1.tar.gz
Algorithm Hash digest
SHA256 65c3ce587fed61e402f6f91f182cc2eb106caaa81724c7f4fcbd9be411ee4412
MD5 5038b23cc35203894de43eaff3dcf3db
BLAKE2b-256 dabc114902fc5e3b6c2b643e05e225aa58ee92468ee34ee80773b88899a6a7bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: coding_machine-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for coding_machine-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9d12aba9265e28ed35f696e08fd644c7bb7b785d82edd35b235820339e4b9d62
MD5 f0bb9f73cbe9ac202d4c04ca8a9c16c2
BLAKE2b-256 eb47503d245cb154b2e896eb9d86e6c0b5919157070602f4907a6f381ccad58e

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