Skip to main content

pydeltacode

Opensource pydeltacode build

Designing pydeltacode from the opensource layer up. Prioritisting user experience and low-friction adoption.

Install

pip install pydeltacode

For development (editable install from a checkout of this repo):

pip install -e .

Usage

from pydeltacode import refactor

optimise = refactor(objective="speed")

@optimise.track
def compute(values):
    return sum(values)

compute([1, 2, 3])
optimise.submit(compute)          # send tracked code to the LLM for a refactor
optimise.swap_code(compute, 1)    # swap version 1 into the source file

Tracked/refactored data is written to .pydeltacode/<hash>/ (gitignored) in the current working directory.

For dynamic, zero-decorator tracking of an arbitrary script via a YAML job file, see docs/job_yaml.md and the examples/ directory.

See CONTRIBUTING.md for how to add support for another language via the LanguageAdapter interface.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydeltacode-0.1.2.tar.gz (55.9 kB view details)

Uploaded Source

Built Distribution

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

pydeltacode-0.1.2-py3-none-any.whl (49.8 kB view details)

Uploaded Python 3

File details

Details for the file pydeltacode-0.1.2.tar.gz.

File metadata

  • Download URL: pydeltacode-0.1.2.tar.gz
  • Upload date:
  • Size: 55.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pydeltacode-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ca320117aa1f89d38c6d75072c3a23081e07a9581f09541291f8d3dc2f59195b
MD5 b82eac6e9a4a96a859fc80107f8c0fb5
BLAKE2b-256 67158cd5b88ffb6ad0223e48c99a8e9efeed66d3fd29a0e70cb4b48758a54020

See more details on using hashes here.

File details

Details for the file pydeltacode-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pydeltacode-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 49.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pydeltacode-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7491870c026e91d4c48ba67cf58ac00aae1347b06bb1dd4121d412a73557b0b
MD5 867f4c84f09fd10c3362359e8ce079d1
BLAKE2b-256 8da4c3f88eac10b14f7f97acecc4c79bc1b7d461799fd5494fd8f315504a03ac

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