skip to navigation
skip to content

Not Logged In

pony 0.4.6

Pony Object-Relational Mapper

Latest Version: 0.6.1

Pony is an object-relational mapper. The most interesting feature of Pony is its ability to write queries to the database using generator expressions. Pony works with entities which are mapped to a SQL database. Using generator syntax for writing queries allows the user to formulate very eloquent queries. It increases the level of abstraction and allows a programmer to concentrate on the business logic of the application. For this purpose Pony analyzes the abstract syntax tree of a generator and translates it to its SQL equivalent.

Following is an example of a query in Pony:

select(p for p in Product if‘A’) and p.cost <= 1000)

Pony translates queries to SQL using a specific database dialect. Currently Pony works with SQLite, MySQL, PostgreSQL and Oracle databases.

The package pony.orm.examples contains several examples. Documenation is available at

File Type Py Version Uploaded on Size
pony-0.4.6.tar.gz (md5) Source 2013-05-17 115KB
  • Downloads (All Versions):
  • 80 downloads in the last day
  • 786 downloads in the last week
  • 2993 downloads in the last month