What resources are there for splitting A / B in Python?

There are several A / B testing modules / plugins for Rails.
http://github.com/paulmars/seven_minute_abs
http://www.bingocardcreator.com/abingo
http://vanity.labnotes.org/
and others.

Is there something similar for Python?

+3
source share
3 answers

This is only in version 0.1.2, but Swab looks promising. An example of testing two sizes of a form button:

from swab import Swab
s = Swab('/tmp/.swab-test-data')
s.addexperiment('button-size', ['default', 'larger'], 'order-completed')
+1
source

, , , , Dabble, A/B. - , mongodb .

+1

SimpleAB. , A/B. SimpleAB :

  • SimpleAB. AB A, B,..., Z.
>>> import simpleab
>>> class MyTest(simpleab.SimpleAB):
...     name = 'MyTest'
...     def A(self): return 'Side A'
...     def B(self): return 'Side B'
...     def C(self): return 'Side C'
...
>>> myab = MyTest()
>>> myab.test()
'Side A'
>>> myab.current_side
'A'
>>> myab.test(force_side='C')
'Side C'
  • AB. AB , . , .
>>> improt simpleab
>>> import random
>>> myab = simpleab.ConfigurableAB(name='MyTest',
...             sides={'A': 'Side A', 'B': 'Side B'},
...             selector=lambda: random.choice(['A','B']))
>>> myab
<ConfigurableAB [name: MyTest, sides: ['A', 'B']]>
>>> myab.test()
'Side A'
>>> myab.current_side
'A'

In fact, lib does not yet have reliable support for data warehouses and analytical tools, but it allows you to quickly implement this material. I think this will be done soon :)

+1
source

Source: https://habr.com/ru/post/1750759/


All Articles