how to create your own DSL(Domain Specific Language) in python

how to create your own DSL(Domain Specific Language) in python

Sometimes you need more than a cli program. You need more flexibility and control. A Domain Specific Language (DSL) is the right fit for specialised tasks. This post shows how you can build your own. Some rough notes/planning : aim : calculate cost of houses input : num of houses price of house output :… Continue Reading how to create your own DSL(Domain Specific Language) in python

venv usage on windows, activate and deactivate

venv usage on windows, activate and deactivate

go on to your project root directory first create a virtual environment with syntax python3 -m venv <env-name> python3 -m venv niceproject a folder called niceproject will be automatically cd into <projectname> cd niceproject then in the Scripts folder cd Scripts then just type activate it will activate as there is an activate.bat in the… Continue Reading venv usage on windows, activate and deactivate

Mastering Python’s Regex – part 1 : Basics

Mastering Python’s Regex – part 1 : Basics

Python regular expressions is often an overlooked topic in the python apprentice path due to it’s seemingly mingled nature. If programming was new enough, you don’t need those bizarre symbols to complicate your life further. However, if you understand it, you can use it. Regex is easy … if you get the right tutorial !… Continue Reading Mastering Python’s Regex – part 1 : Basics

web mail interface using pi and flask

web mail interface using pi and flask

have you ever used gmail or hotmail on the web? it seems so natural that we take it for granted. in this post we’ll see how to build a basic web mail client to send mail … using flask and pi as server. this is content flask intro : folder structure flask intro : requests… Continue Reading web mail interface using pi and flask

Installing OpenCv on the Pi3 with python3 (and usb webcam)

opencv is one of the most difficult python package to install. it’s not a pip install easy package issue. in this post, we’ll see how to painlessly install it. Target Os we are using noobs see here Target Pi pi3 Existing Instructions there are two posts which i found to be nice : [pyimagesearch] and… Continue Reading Installing OpenCv on the Pi3 with python3 (and usb webcam)

Raspberry-Pi setup – part 2 : establishing ssh connection

establishing an ssh connection is incredibly useful to manage your pi from another device/remotely be it your android phone or pc Steps connect the pi to the internet locate pi start ssh connection connect the pi to the internet using a two endpoints network cable, connect the pi to your router, or if you have… Continue Reading Raspberry-Pi setup – part 2 : establishing ssh connection