Skip to main content

No project description provided

Project description

PostPie

Python Toolkit / Object Relational Mapper (ORM) for PostgreSQL

Introduction

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.

Instillation

Open up your terminal or command line and enter:

  • pip install postpie

Get Started

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:

  • Host Name
  • Database Name
  • Database Username
  • Database Password
  • Database Port Number

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!

License

PostPie is distributed under the MIT license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

postpie-1.1.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PostPie-1.1.1-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file postpie-1.1.1.tar.gz.

File metadata

  • Download URL: postpie-1.1.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for postpie-1.1.1.tar.gz
Algorithm Hash digest
SHA256 459ff9137b9852be617f2a9a7832311397d21cbcaab110668d27b0825c11b3ed
MD5 b2ef439c9828c0a939946ab16c7c6980
BLAKE2b-256 e946d9ad064d255953308a76dc15a90c7c157b60f46b814c7b06039c138c9997

See more details on using hashes here.

File details

Details for the file PostPie-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: PostPie-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for PostPie-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbb5a096b7009bebdf18b40d36c68ae0ec383bf2394805b63bb16dcf8b1f9bea
MD5 e3ce1fb2a683ea4d207fdb4b7cff078b
BLAKE2b-256 246c769e46ebc81b54c33c7b0e35ce48abeec54281146180ee34352a2f236993

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page