Data App Performance Tests

My hypothesis is that The different architectures of Dash, Panel and Streamlit makes a difference if you want to create snappy applications. Framework Server Communication Protocol Built in state Update cycle Dash Flask http No Specific code reruns and UI updates Panel Tornado web sockets Yes, Automatic Specific code reruns and UI updates Streamlit Tornado web sockets Yes, Manual Rerun script top to bottom with caching I want to test that hypothesis and elaborate on it. Test Setup In order […]

Read more

Demonstrates how to create a tested Python package using the latest Python testing and linting tooling

Example Python project that demonstrates how to create a tested Python package using the latestPython testing and linting tooling. The project contains a fact package that provides a simpleimplementation of the factorial algorithm (fact.lib)and a command line interface (fact.cli). Requirements Python 3.6+. Note Because Python 2.7 support ended January 1, 2020, new projectsshould consider supporting Python 3 only, which is simpler than trying to support both. As aresult, support for Python 2.7 in this example project has been dropped. Windows […]

Read more

Typing test and practice on command line without the need of any internet connection

Typing test and practice on command line without the need of any internet connection About CLI based typing test and practice that focuses on providing a quick and easy way to practice your typing skills without all the fuss of ads, login and data collection. Requirements and Installation English Words Library Install english_words library by copying, pasting and running the below line of code in your terminal pip3 install english_words Typing Test Download the python script by running the following […]

Read more

The Good Old Days. Testing Out A New Module

The Good Old Days. | Testing Out A New Module- Installation Asciimatics supports Python versions 2 & 3. For the precise list of tested versions, refer to pypi https://pypi.python.org/pypi/asciimatics To install asciimatics, simply install with pip as follows: pip install asciimatics This should install all your dependencies for you. If you don’t use pip or it fails to installthem, you can install the dependencies directly using the packages listed in https://github.com/peterbrittain/asciimatics/blob/master/requirements.txt Additionally, Windows users (who aren’t using pip) will need […]

Read more

A/B Testing and Hypothesis

Facebook recently made an offer called maximum bidding.A new bid type, average bidding, as an alternative to the bidding type introduced.In this study we want to test this new feature.We’ll do an A/B test to see if this average bid is better than the maximum bid, converting more than we’d like.There are two groups, the control group and the test group. ImpressionClickPurchaseEarning GitHub https://github.com/kin-nigaresra/A-B_Testing    

Read more

Parameterized testing with any Python test framework

Parameterized testing in Python sucks. parameterized fixes that. For everything. Parameterized testing for nose, parameterized testing for py.test, parameterized testing for unittest. # test_math.py from nose.tools import assert_equal from parameterized import parameterized, parameterized_class import unittest import math @parameterized([ (2, 2, 4), (2, 3, 8), (1, 9, 1), (0, 9, 0), ]) def test_pow(base, exponent, expected): assert_equal(math.pow(base,    

Read more
1 2 3