Walkthrough of how we can use Locust to set up a simple test for a mocked API Locust.io website Hello there, Recently at my workplace, we had to ship the rewrite of an API from Ruby on rails to Go. This was a critical API for the business and we wanted to see how it … Continue reading How to setup a load test via Locust
Source: Pycon india website Hi folks, recently I had the pleasure of attending 2-day Pycon conference in hyderabad, India. It was also the 10th year of pycon being organized in india. Pretty sweet achievement if you ask me. 😃 There was little bit of something for everyone and I become aware of and learned few new … Continue reading Pycon India 2018: What i learned?
Quite simply put, Duck typing gives a programmer the ability to not worry about the type of a class rather perform the required operations. Let's take a simple code example as below: https://gist.github.com/gaurav-singh/f82126b921e80519c9fb19d95f6556e7 If we execute this code: QuackedLouder QuackTraceback (most recent call last): File "/Users/gaurav/personal/development/grasp-python/base/advanced/duck_typing.py", line 33, in <module> MakeItQuack(Eagle()) File "/Users/gaurav/personal/development/grasp-python/base/advanced/duck_typing.py", line 29, … Continue reading Duck Typing in python