Skip to main content

Pony Object-Relational Mapper

Project description

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 contains several examples.

Installation

pip install bakatrouble_pony_migrate

Entity-Relationship Diagram Editor

Pony online ER Diagram Editor 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

bakatrouble_pony_migrate-0.8.dev0-py2.py3-none-any.whl (321.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file bakatrouble_pony_migrate-0.8.dev0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for bakatrouble_pony_migrate-0.8.dev0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c39cdfe9e9f187a73f0d630ac756d17a6b30fca50265ae9bb187b2ef21c4467d
MD5 141aab2f385366866c9783981d2fb5ae
BLAKE2b-256 37c852b3e47f51a48f1f83f8a95223c52e7ee13c4895017afd4ca6adc651adec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page