pon
pony
pypi i pony
pon

pony

Pony Object-Relational Mapper

by Alexander Kozlovsky <alexander.kozlovsky@gmail.com>, Alexey Malashkevich <alexey@ponyorm.org>, Alexander Tischenko <sashaaero@yandex.ru>

0.7.16 (see all)License:Apache License Version 2.0Categories:Vanilla Python MySQL ORM, Vanilla Python PostgresSQL, Vanilla Python SQLite
pypi i pony
Readme

About

Pony ORM is easy to use and powerful object-relational mapper for Python. Using Pony, developers can create and maintain database-oriented software applications faster and with less effort. One of the most interesting features of Pony is its ability to write queries to the database using generator expressions. Pony then 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 p.name.startswith('A') and p.cost <= 1000)

Such approach simplify the code and allows a programmer to concentrate on the business logic of the application.

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 <https://github.com/ponyorm/pony/tree/orm/pony/orm/examples>_ contains several examples.

Installation

::

pip install pony

Entity-Relationship Diagram Editor

Pony online ER Diagram Editor <https://editor.ponyorm.com>_ is a great tool for prototyping. You can draw your ER diagram online, generate Pony entity declarations or SQL script for creating database schema based on the diagram and start working with the database in seconds.

Pony ORM Links:

GitHub Stars

0
No data available

LAST COMMIT

NaNyrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
No data available
VersionTagPublished
0.7.16
4mos ago
0.7.15
4mos ago
0.7.15rc1
4mos ago
0.7.14
1yr ago
No tutorials found
Add a tutorial