Laboratory Python

码农软件 · 软件分类 · 其他开发相关 · 2019-10-18 18:44:11

软件介绍

Laboratory 是一个 Python 库用来处理重构关键路径。

想象一下你正在实现复杂的缓存策略,那么你如何进行测试已经确保在一定压力下已经生产环境中的数据是准确无误的呢?

而 Laboratory 可以:

  • 同时运行新的和老的代码

  • 对比不同代码的结果

  • 记录所有代码的执行时间

  • 记录新代码的异常

  • 发布上述信息

示例代码:

import laboratory

experiment = laboratory.Experiment()
with experiment.control() as c:
    c.record(get_objects_from_database())

with experiment.candidate() as c:
    c.record(get_objects_from_cache())

objects = experiment.run()

本文地址:https://www.codercto.com/soft/d/17047.html

Natural Language Processing with Python

Natural Language Processing with Python

Steven Bird、Ewan Klein、Edward Loper / O'Reilly Media / 2009-7-10 / USD 44.99

This book offers a highly accessible introduction to Natural Language Processing, the field that underpins a variety of language technologies, ranging from predictive text and email filtering to autom......一起来看看 《Natural Language Processing with Python》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具