• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

pony/H23-Nov-2020-38,35732,697

pony.egg-info/H03-May-2022-7362

LICENSEH A D30-Aug-201810 KiB180151

MANIFEST.inH A D09-Dec-201995 43

PKG-INFOH A D23-Nov-20203.1 KiB7362

README.mdH A D24-Oct-20203.1 KiB6638

setup.cfgH A D23-Nov-202038 53

setup.pyH A D23-Nov-20204.2 KiB131110

README.md

1# Downloads
2[![Downloads](https://pepy.tech/badge/pony)](https://pepy.tech/project/pony) [![Downloads](https://pepy.tech/badge/pony/month)](https://pepy.tech/project/pony/month) [![Downloads](https://pepy.tech/badge/pony/week)](https://pepy.tech/project/pony/week)
3
4
5Pony Object-Relational Mapper
6=============================
7
8Pony is an advanced object-relational mapper. The most interesting feature of Pony is its ability to write queries to the database using Python generator expressions and lambdas. Pony analyzes the abstract syntax tree of the expression and translates it into a SQL query.
9
10Here is an example query in Pony:
11
12    select(p for p in Product if p.name.startswith('A') and p.cost <= 1000)
13
14Pony translates queries to SQL using a specific database dialect. Currently Pony works with SQLite, MySQL, PostgreSQL and Oracle databases.
15
16By providing a Pythonic API, Pony facilitates fast app development. Pony is an easy-to-learn and easy-to-use library. It makes your work more productive and helps to save resources. Pony achieves this ease of use through the following:
17
18* Compact entity definitions
19* The concise query language
20* Ability to work with Pony interactively in a Python interpreter
21* Comprehensive error messages, showing the exact part where an error occurred in the query
22* Displaying of the generated SQL in a readable format with indentation
23
24All this helps the developer to focus on implementing the business logic of an application, instead of struggling with a mapper trying to understand how to get the data from the database.
25
26See the example [here](https://github.com/ponyorm/pony/blob/orm/pony/orm/examples/estore.py)
27
28
29Support Pony ORM Development
30----------------------------
31
32Pony ORM is Apache 2.0 licensed open source project. If you would like to support Pony ORM development, please consider:
33
34[Become a backer or sponsor](https://ponyorm.org/donation.html)
35
36
37Online tool for database design
38-------------------------------
39
40Pony ORM also has the Entity-Relationship Diagram Editor which is a great tool for prototyping. You can create your database diagram online at [https://editor.ponyorm.com](https://editor.ponyorm.com), generate the database schema based on the diagram and start working with the database using declarative queries in seconds.
41
42
43Documentation
44-------------
45
46Documenation is available at [https://docs.ponyorm.org](https://docs.ponyorm.org)
47The documentation source is avaliable at [https://github.com/ponyorm/pony-doc](https://github.com/ponyorm/pony-doc).
48Please create new documentation related issues [here](https://github.com/ponyorm/pony-doc/issues) or make a pull request with your improvements.
49
50
51License
52-------
53
54Pony ORM is released under the Apache 2.0 license.
55
56
57PonyORM community
58-----------------
59
60Please post your questions on [Stack Overflow](http://stackoverflow.com/questions/tagged/ponyorm).
61Meet the PonyORM team, chat with the community members, and get your questions answered on our community [Telegram group](https://t.me/ponyorm).
62Join our newsletter at [ponyorm.org](https://ponyorm.org).
63Reach us on [Twitter](https://twitter.com/ponyorm).
64
65Copyright (c) 2013-2019 Pony ORM. All rights reserved. info (at) ponyorm.org
66