Skip to main content

Useful classes and methods for researching code-generation by LLMs.

Project description

llm-codegen-research

lint code workflow test code workflow release workflow

usage

A collection of methods and classes I repeatedly use when conducting research on LLM code-generation. Covers both prompting various LLMs, and analysing the markdown responses.

from llm_cgr import generate, Markdown

response = generate("Write python code to generate the nth fibonacci number.")

markdown = Markdown(text=response)

installation

Install directly from PyPI, using pip:

pip install llm-codegen-research

development

Clone the repository code:

git clone https://github.com/itsluketwist/llm-codegen-research.git

We use uv for project management. Once cloned, create a virtual environment and install uv and the project:

python -m venv .venv

. .venv/bin/activate

pip install uv

uv sync

Use make commands to lint and test:

make lint

make test

Use uv to add new dependencies into the project and uv.lock:

uv add openai

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

llm_codegen_research-1.4.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

llm_codegen_research-1.4-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file llm_codegen_research-1.4.tar.gz.

File metadata

  • Download URL: llm_codegen_research-1.4.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.5

File hashes

Hashes for llm_codegen_research-1.4.tar.gz
Algorithm Hash digest
SHA256 fc5306fd0c562a68ce22af3d002daa578057efc167617a1ef91be23c8999a431
MD5 b93d1853f91fdff4c14208889d8f036e
BLAKE2b-256 f03ddff563ff262231b870732ce78a6ce38b110481e8a08d445fbff97e787160

See more details on using hashes here.

File details

Details for the file llm_codegen_research-1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_codegen_research-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cf04d9785ea501597e83baf4b039f2a2d4f9746e4d496d069610b1c52bde909d
MD5 097b571fc3c7ee43f24c6a82bbca8496
BLAKE2b-256 eaac756b09d4bb0a62efeecfba86125b841a04ede67b399d666c41d112268cbd

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