Use requests_mock to test requests logic When Testing http requests in Python, if we run agains real endpoint, sometimes it will be as slow as turtle, and also h...
encryption and decryption in python Recently I need to design a way to store and transfer sensitive data in a secure way, as the data is sensitive, no one c...
How to use testcontainers to test sqlalchemy on real database in previous article, I described how to use sqlalchemy and how to do unit test with python build in db sqlite, sometimes...
Use Asyncio to accelerate the download script I have a task to download 200M images from provider's image server as quick as possible, generally we use requests lib t...
6 ways to declare js function normal function function sayHello(firstName, lastName) { return `hello ${firstName} ${lastName}`; } function expression ...
How to enforce Code Coverage and Code Style in Python Project When we have more and more team members joining the development team, we may want make sure the code quarlity does not d...
How to config python log in Grpc Server In Java world, there are different logging frameworks available, e.g: slf4j, log4j, commons logging as well as java stan...
How to output large binary stream via data chunk in Grpc In grpc-mate we have product_read_servicer.py to show how to output large binary stream via data chunk in grpc. protobuf...
How to do Grpc Server Stream In grpc-mate we have product_read_servicer.py to show how to do server stream and bi-directional streaming in grpc. prot...