What I'm Thinking

Flask
22 August 2011

So lately I have been bouncing around various Python web frameworks and each have their pros and cons. Some are applicable to the environment that you are working on eg: Tipfy, webapp2 were developed to be used on AppEngine. You can use these on other platforms, and there is documentation on how to do that. For the last couple of years I have been using Django, which is a very nice framework and it has all the bells and whistles. ... Read More

Reportlab Colors
19 August 2011

I was working on generating PDFs using ReportLab today, and I was wanting to change the background and text color of a few cells within a table. data = [ [total_due, total_amount, '', 'BRAND', merchant], ['', '', '', 'DATE', datetime.date.today().strftime("%m/%d/%Y")], ['', '', '', 'ORDER NUMBER', order.order.order_number], ] t = Table(data, style=[ # left side ('GRID', (0, 0), (1, -1), 0.5, colors.black), ('BACKGROUND', (0, 0), (0, -1), HIGHLIGHT_BACKGROUND_COLOR), ('TEXTCOLOR', (0, 0), (0, -1), HIGHLIGHT_TEXT_COLOR), ('ALIGN', (0, 0), (-2, -1), 'RIGHT'), ('VALIGN', (0, 0), (-2, -2), 'MIDDLE'), ('SPAN', (0, 0), (0, -1)), ('SPAN', (1, 0), (1, -1)), # right side ('GRID', (-2, 0), (-1, -1), 0. ... Read More

Webpy
16 August 2011

Still on my whirl wind tour of python web frameworks, picking a few that catch my eye and playing around with them. Mainly trying out their tutorials that they have and if it interests me, going ahead and developing an actual web application for them. The latest one I am playing around with at the moment is web.py. It appears simple enough, but crikey does it pack a lot. Webpy is capable of handling decent loads (used by reddit. ... Read More

Sd-Postgresql
15 August 2011

Over the weekend I installed the monitoring service provided by ServerDensity, and was very impressed with how simple it was to install and get up and running. They monitor a number of services, including databases like MySQL, MongoDB etc, but not PostgreSQL. So seeing that they have a plugin framework and I have a PostgreSQL instance running on my servers, I thought I would look into writing a plugin for it. ... Read More
I am working on a web application project that needs to handle an xls file that has a little over 8 thousand products in it. I started off developing this project on the app engine platform making use of webapp2 for the framework. But when I got to the part of uploading the file and having to parse it, making use of xlrd to read the file etc, everything just seemed incredibly slow. ... Read More

Webapp2
12 August 2011

I have moved from tipfy to webapp2 for appengine projects. Both of these frameworks are created/maintained by Rodrigo Moraes, who in my mind appears to be a super hero, in churning out a couple of very decent frameworks. I ended up with webapp2 and that is what is recommended. tipfy just went through a large update and a lot of things changed. webapp2 is super easy to setup, it is a single file and pretty much extends webapp. ... Read More

Jinja2
12 August 2011

Jinja2 is now my template engine of choice. I have been using django templates with django for a couple of years now and am very comfortable with them, but have been missing a few things with it more and more. Just not powerful enough. Well missing somethings that would be cool and helpful. Jinja2 has solved some of these issues for me. Definitely have not had the chance to use it as much as I would like. ... Read More

Kid Vm
14 April 2011

Just pushed out a new appengine application. I needed a way to track the kids allowances as I never have cash on me. So I put together Kid VM, which allows you to; add kids add allowances for the kids add transactions The system will automatically track/calculate the balance. A cron runs daily and creates a transaction for those allowances that are due that day. Still a little rough, need to add some pretty graphs and clean up the app in a general sense. ... Read More
I’ve been using virutalenv for a long time now for development purposes and it works extremely well. Although lately I have run into some issues with trying to work with trying to run python as 32bit in one environment and 64bit in another. I must say it is all completely crazy trying to keep this all together, especially when you need to have other applications running at a specific architecture as well. ... Read More

Noxls - Django Appengine
6 February 2011

Developed a base system/framework that makes use of Django on AppEngine. The system integrates with CheddarGetter for payment gateway. The nice part about the framework is that it is a base for a Saas System. I do not need to worry about getting the base in place each time, I can started on the meat of the Saas system, and not have to redo the base each time. The base system handles has the following features; ... Read More