PostPie is a lightweight Python Toolkit or Object-Relational Mapper (ORM) for PostgreSQL. PostPie makes communicating and querying to a PostgreSQL dat

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-06-05 20:30:02

PostPie is a lightweight Python Toolkit or Object-Relational Mapper (ORM) for PostgreSQL. PostPie makes communicating and querying to a PostgreSQL database easy and very simple. PostPie aims to take the complexity and learning curve away from other ORM's by utilizing an intuitive interface. PostPie is designed for small to medium-level projects and is aimed at developers who are beginners to working with databases. PostPie is powered by the psycopg2 driver.

Simply import Postpie at the top of your Python file: import PostPie Its recommended you import PostPie as: from PostPie import PostPie Next, you will need to connect your PostgreSQL database to PostPie. This step is also very easy, make sure you have the following:

Next, you will need to create an instance of the PostPie class (all PostPie functions can be found in this class) Ex: py = PostPie.PostPie() Enter in database credentials the following way into the PostPie class: * py = PostPie.PostPie(host_name='HOST NAME', db_name='DB NAME', user='DB USERNAME', password='PASSWORD', port='PORT NUMBER Now you should be connected to your database and can start using the PostPie ORM!

Leave a Comment