Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Storm: An ORM for Python


Gustavo Niemeyer is lead developer on Canonical's Storm project, a generic open-source object-relational mapper for Python. Canonical, you might recall, is probably best known as developer of the Ubuntu Linux distribution.

DDJ: Gustavo, Storm is a object-relational mapper (ORM) for Python. But there are a number similar tools available today. What's unique about Storm that we need another ORM for Python?

GN: It's true that there are a few good ORMs for Python, and we're very much against reinventing existing technology whenever possible. However due to the enterprise class of the projects being developed by Canonical the same kind of data may be partitioned on multiple databases, for example, as well as other scaling issues not necessarily faced by other ORM tools. We've tried to use existing Python ORMs in that model for some time, and even tried to collaborate with upstream projects, but the result wasn't satisfactory, considering the timeframe available. This lead to Storm being started as a prototype, and when it eventually proved to be a feasible solution for the problem, it replaced the ORM in use up to that point.

DDJ: There are other open source languages -- Ruby comes to mind -- that could use an ORM. How difficult would it be to use what you've done to provide an ORM for another langauge?

GN: It's hard to estimate how much work would be involved for it to be done. Most of the system should be fairly simple to port to any other high-level object-oriented language such as Ruby. A few parts of it may be a bit trickier though, since they explore Python-specific behavior in areas like attribute access. But then that is why we put the code out there. We would be very excited to see it ported to other languages or built against other libraries or into other offerings. That's the beauty of open source after all.

DDJ: Is this the case that you needed a tool like Storm internally, so you created it and found it so good that you decided to share it with other?

GN: Yes, this describes very well what happened. Canonical is very keen on publishing valuable work under open source licenses whenever possible, and also on making available infrastructure for these projects to be developed on. Launchpad and Bazaar are good examples of infrastructures for open source projects to be developed on, even though they are not open source themselves.

DDJ: If readers want to learn more about Storm, is there a web site they can go to?

GN: Yes, at the Storm website we have a tutorial available at the moment, and we are working on more detailed documentation. In the meantime, any uncovered topics are welcome on the mailing list.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.