Skip to content
L

Laboratory

Achieving confident refactoring through experimentation with Python 2.7 & 3.3+

by joealcornFree

#2190in Developer Tools
0In stores

Description

Laboratory is a Python library for refactoring important code paths with confidence, by running experiments in production. Inspired by GitHu…

Highlights

  • Runs the old and new code paths in production
  • Compares results and records mismatches
  • Context for each experiment
  • Ramping up and controlled result comparison
  • Python 2.7 and Python 3.3 or newer

Ratings & Reviews

No ratings yet

Be the first to rate Laboratory.

People also visit

O

orch-refine-code

Orchestrate a behavior-preserving refactor

AI Skills
Get
R

Rewrite

Automated mass refactoring of source code

Developer Tools
Launch
R

run

Run a single experiment iteration

AI Skills
Get
R

refactor-plan

Detailed multi-file refactor planning with safety checks and rollback guidance

AI Skills
Get
T

trailofbits/modern-python

Modern Python tooling with uv, ruff, ty, and pytest best practices

AI Skills
Get
W

working-with-legacy-code

Safely change and test untested codebases

AI Skills
Get

Laboratory FAQ

What is Laboratory for?

Testing a refactored code path in production by running it next to the existing code and checking that the results match.

What is it inspired by?

GitHub's Scientist, which the README credits as the original idea.

Which Python versions does it support?

Python 2.7 and Python 3.3 and later.

How do I install it?

Install the laboratory package from PyPI.

Which license does it use?

MIT, according to the license badge in the README.

What are the best Laboratory alternatives?

Popular alternatives to Laboratory include Rewrite and marimo. See all Laboratory alternatives

Developer Stuff

Badges