Tue, 24 Aug 2010 21:50:00 in Tech stuff | permalink
paste python setuptools turbogears
It is often desirbale to decompose an application into several components. Perhaps one of the most common approaches is separating a model component that is responsible for data repesenataion and interaction with the database and then use it from other components. For instance, one of the other components can provide a sofisticated web-based UI to the model while another one implements a bare command-line interface.
In this situation each component is a subproject that is distributed as a
separate package, in the setuptools' sense. And view each component has its
corresponding directory in the project's VCS repository which contains a
everything that is typicaly necessary to build an .egg,
setup.py and whatever else the developer finds approprate.
A component, or subproject, usualy includes a number of modules which are
organized inside a Python package. While it is possible to name the components'
packages like yourappmodel, yourappweband
yourappcli, The Zen of Python says:
Namespaces are one honking great idea -- let's do more of those!
And applying to our example that means the packages should be named like yourapp.model, yourapp.web and yourapp.cli.
Here I'm going to show how I work with a project that uses setuptools' namespace packages.
Fri, 23 Jul 2010 00:12:00 in Tech stuff | permalink
brevé dsl love pylons python rudd software turbogears wsgi
It's been a long time since my previous update, and many things have changed in my life. I've changed my job, quit my job, gone crazy, fallen in love, found myself, had two trips to Crimea, had a psychedelic experience and got a real African djembe from Ghana.
But there's one thing I haven't done yet and it's confession of love. Not the kind of love we fall into, no. I'm talking about the professional kind of love.
Why do I even talk about love in such an intellectualized high-tech field as information technology? I do this because I it's very important for me. Really, I've been working in IT since 2003, not to mention my earlier programming experience in the university and at school, and only now I fully realize why I'm still here. I simply like it.
Wed, 19 Mar 2008 11:05:00 in Tech stuff | permalink
apache cherrypy debian linux python turbogears virtualmin webmin
Recently Matvey (thanks dude!) has set up a new Virtualmin hosting platform on Debian GNU/Linux. When I was migrating timka.org to this new platform I found out that Virtualmin is actually very powerful and nicely integrated with Apache in Debian. Looking at all these new features and capabilities I thought that I could try to use them for running home-based TurboGears applications on Virutalmin's virtual hosts.