New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pony

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pony

Pony Object-Relational Mapper

  • 0.7.19
  • Source
  • PyPI
  • Socket score

Maintainers
2

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 <https://github.com/ponyorm/pony/tree/orm/pony/orm/examples>_ contains several examples.

Installation

::

pip install pony

Entity-Relationship Diagram Editor

Pony online ER Diagram Editor <https://editor.ponyorm.com>_ 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.

  • 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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc