Skip to content

Commit d82111f

Browse files
makarov-romanRoman
authored andcommitted
Update Readme.md
1 parent 52720af commit d82111f

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

README.md

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
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-
51
Pony Object-Relational Mapper
62
=============================
3+
[![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)
74

85
Pony 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.
96

10-
Here is an example query in Pony:
11-
7+
Here is an example of generator query in Pony:
8+
```python
129
select(p for p in Product if p.name.startswith('A') and p.cost <= 1000)
10+
```
11+
Or the same query using lambda syntax:
12+
```python
13+
Product.select(lambda p: p.name.startswith('A') and p.cost <= 1000 )
14+
```
15+
Pony works with SQLite, MySQL, PostgreSQL and Oracle databases.
1316

14-
Pony translates queries to SQL using a specific database dialect. Currently Pony works with SQLite, MySQL, PostgreSQL and Oracle databases.
15-
16-
By 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+
Pony is an easy-to-learn and easy-to-use library. It makes your work more productive and helps to save resources.
1718

19+
Main features:
1820
* Compact entity definitions
1921
* The concise query language
20-
* Ability to work with Pony interactively in a Python interpreter
2122
* Comprehensive error messages, showing the exact part where an error occurred in the query
2223
* Displaying of the generated SQL in a readable format with indentation
24+
* Ability to work with Pony interactively in a Python interpreter
2325

2426
All 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.
2527

@@ -34,24 +36,24 @@ Pony ORM is Apache 2.0 licensed open source project. If you would like to suppor
3436
[Become a backer or sponsor](https://ponyorm.org/donation.html)
3537

3638

37-
Online tool for database design
38-
-------------------------------
39-
40-
Pony 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-
4339
Documentation
4440
-------------
4541

46-
Documenation is available at [https://docs.ponyorm.org](https://docs.ponyorm.org)
47-
The documentation source is avaliable at [https://github.com/ponyorm/pony-doc](https://github.com/ponyorm/pony-doc).
42+
Documentation is available at [docs.ponyorm.org](https://docs.ponyorm.org). <br>
43+
Check out the [Getting Started](https://docs.ponyorm.org/firststeps.html) page for a quick overview. <br>
44+
The documentation source is available at [github.com/ponyorm/pony-doc](https://github.com/ponyorm/pony-doc).
4845
Please create new documentation related issues [here](https://github.com/ponyorm/pony-doc/issues) or make a pull request with your improvements.
4946

5047

51-
License
52-
-------
48+
How PonyORM does its tricks?
49+
----------------------------
50+
[Here is a detailed answer](https://stackoverflow.com/a/16118756)
5351

54-
Pony ORM is released under the Apache 2.0 license.
52+
53+
Online tool for database design
54+
-------------------------------
55+
56+
Pony ORM also has the Entity-Relationship Diagram Editor which is a great tool for prototyping. You can create your database diagram online at [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.
5557

5658

5759
PonyORM community
@@ -62,4 +64,10 @@ Meet the PonyORM team, chat with the community members, and get your questions a
6264
Join our newsletter at [ponyorm.org](https://ponyorm.org).
6365
Reach us on [Twitter](https://twitter.com/ponyorm).
6466

65-
Copyright (c) 2013-2019 Pony ORM. All rights reserved. info (at) ponyorm.org
67+
68+
License
69+
-------
70+
71+
Pony ORM is released under the Apache 2.0 license.
72+
73+
Copyright (c) 2013-present Pony ORM. All rights reserved. info (at) ponyorm.org

0 commit comments

Comments
 (0)