Skip to main content

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 pony

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.

Metadata

Release files for pony 0.7.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pony 0.7.5
File Size Uploaded
pony-0.7.5.tar.gz 252.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pony 0.7.5
File Interpreter ABI Platform
pony-0.7.5-py3-none-any.whl Python 3 none any Details

Total release size: 559.5 kB

Release files / pony-0.7.5.tar.gz

Download URL pony-0.7.5.tar.gz
Size 252.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4493839bb884dfda1df807265b0fcc9a2c3f8f8b86e018021c9621d78b90d4a3
BLAKE2b-256 checksum
How to use checksums
ba713567187750ca1299124a5b27142d1227bf9cef68516ef497f02227cf358b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pony-0.7.5-py3-none-any.whl

Download URL pony-0.7.5-py3-none-any.whl
Size 307.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef83f9c2556884dd2b7fb89b6814750e68ce423d3f06d921d0e656079ab4e043
BLAKE2b-256 checksum
How to use checksums
17d6e7c8dce35d3fbc635d9627ca1c146dde40331ecbccf8bb595038ff29c4ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.7.19

2 release files

0.7.18

2 release files

0.7.17

2 release files

0.7.16

2 release files

0.7.15

2 release files

0.7.14

1 release file

0.7.13

1 release file

0.7.12

1 release file

0.7.11

1 release file

0.7.10

1 release file

0.7.9

1 release file

0.7.8

1 release file

0.7.7

1 release file

0.7.6

3 release files

This release

0.7.5 This release

2 release files

0.7.4

1 release file

0.7.3

1 release file

0.7.2

1 release file

0.7.1

1 release file

0.7

1 release file

0.6.6

1 release file

0.6.5

1 release file

0.6.4

1 release file

0.6.3

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5

1 release file

0.4.9

1 release file

0.4.8

1 release file

0.4.7

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

0.0.1a1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page