Description
Laboratory is a Python library for refactoring important code paths with confidence, by running experiments in production. Inspired by GitHub's Scientist, it runs the existing code and a candidate replacement, compares their results and records any mismatches. The README says this gives you confidence where there was none, and that each mismatch shows where the new code misbehaves, so you can converge on correct behaviour faster. You can add context to an experiment, ramp up the new code path step by step, control how results are compared, raise an error on a mismatch, and publish the results. The README also lists caveats to keep in mind. Laboratory supports Python 2.7 and Python 3.3 and later. It is released under the MIT license, according to the badge in the README. It is installed from PyPI as the laboratory package, and its documentation is hosted on Read the Docs.…
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
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














