Submitting python package to pypi

Recently I had written a thin wrapper around getziptastic’s API and I wanted that to be availble as a pypi package. What is PyPI? From the official website: PyPI — the Python Package Index The Python Package Index is a repository of software for the Python programming language. Written something cool? Want others to be able to install it with easy_install or pip? Put your code on PyPI. It’s a big list of python packages that you absolutely must submit your package to for it to be easily one-line installable. ...

November 10, 2015 · 5 min · Tasdik Rahman

Converting python script into an executable

BackDrop: So recently I was building a Calculator using tkinter. I wrote a blog post for the same some time back. Now I thought, how awesome it would be if I could distribute it to my friends and let the use it. Problem was that some of them not being CS grads would not know head or tails about how to run it! So I thought the best way and the easiest way was to convert the pyCalc.py into a .exe file. ...

November 7, 2015 · 3 min · Tasdik Rahman

How hard can building a Calculator be right?

BackDrop: So I was reading about this wonderful module called tkinter some days back. And man was I not sucked into it! Sure, we do have some very good GUI modules like PyQT, wxPython, PySide. And I don’t deny the fact that some are way better than tkinter. But one advantage which makes tkinter stand out from the crowd is that, it comes pre-packaged with the python package. What I mean by that is you don’t have to install anything to run and write GUI’s with it and run my Calculator program for instance. ...

November 6, 2015 · 4 min · Tasdik Rahman

Running CGI Scripts with CGIHTTPServer

Intro : So why should we be interested in CGI which stands for common gateway interface. Well for instance, try to recall the websites that you have been in the last 1 hour. Now out of those websites, some where static and some were dynamic. The latter would mean that the contents of that website kept changing in real time. CGI scripting is helpful when you want to generate content from the data residing in a database. This is not only convenient but also cuts a lot of time. ...

October 20, 2015 · 4 min · Tasdik Rahman

Running CGI Scripts on Apache2

Intro Have you ever wanted to create a webpage or process user input from a web-based form using Python? These tasks can be accomplished through the use of Python CGI (Common Gateway Interface) scripts with an Apache web server. CGI scripts are called by a web server when a user requests a particular URL or interacts with the webpage (such as clicking a “Submit” button). After the CGI script is called and finishes executing, the output is used by the web server to create a webpage displayed to the user. ...

September 30, 2015 · 3 min · Tasdik Rahman