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 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.
Pony ORM Links:
Main site: https://ponyorm.com
Documentation: https://docs.ponyorm.com
GitHub: https://github.com/ponyorm/pony
Mailing list: http://ponyorm-list.ponyorm.com
ER Diagram Editor: https://editor.ponyorm.com
Blog: https://blog.ponyorm.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pony-0.7.19.tar.gz
.
File metadata
- Download URL: pony-0.7.19.tar.gz
- Upload date:
- Size: 258.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7f83b2981893e49f7f18e8def52ad8fa8f8e6c5f9583b9aaed62d4d85036a0f |
|
MD5 | a6b6b3d24c04871eb7e005fa49bd1978 |
|
BLAKE2b-256 | 6059ab6542afa95de0d5a16545ce6ce683960352cfd9a2318722593b81a98123 |
File details
Details for the file pony-0.7.19-py3-none-any.whl
.
File metadata
- Download URL: pony-0.7.19-py3-none-any.whl
- Upload date:
- Size: 317.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5112b4cf40d3f24e93ae66dc5ab7dc6813388efa870e750928d60dc699873cf5 |
|
MD5 | bbeacecd680b961c3375cfe88859f251 |
|
BLAKE2b-256 | 16cb0ef8429024309fe6f5edf1debc7cf63adeaeb34b2242490cc18710658abd |