Skip to main content

Pgorm

Pgorm is a simple orm for postgre in python

install

pip install py-pgorm==0.0.8

Usage

import pgorm 
def getCursor():
    dbconf={
        "database":"<dbname>",
        "user":"<user>", 
        "password": "<password>"
    }
    cursor = pgorm.getDbCursor(dbconf)
    return cursor

def test_create_table():

    cursor = getCursor()
    sql = '''
        drop table t;
        create table if not exists t(
            code varchar(10) not null, 
            label real not null
        );'''

    try:
        cursor.execute(sql) 
    except Exception as e:
        pass

Examples

Refer to examples

Metadata

Release files for py-pgorm 0.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-pgorm 0.0.10
File Size Uploaded Provenance Actions
py-pgorm-0.0.10.tar.gz 4.6 kB Without provenance Details for py-pgorm-0.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-pgorm 0.0.10
File Interpreter ABI Platform Actions
py_pgorm-0.0.10-py3-none-any.whl Python 3 none any Details for py_pgorm-0.0.10-py3-none-any.whl

Total release size: 7.7 kB

Release files / py-pgorm-0.0.10.tar.gz

Download URL py-pgorm-0.0.10.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cfb0777d194779b7739195904eea5c52ab7729290160a4deb3c9c697c3e6d96e
BLAKE2b-256 checksum
How to use checksums
fcf4a82e7a052ad9eb3f6f4f91fe850665bd35c2354a7b41df793f462d4d76a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.13

Release files / py_pgorm-0.0.10-py3-none-any.whl

Download URL py_pgorm-0.0.10-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aeb37b98c6d22ac121e5b7034716baa5ab29b49adb4b26d55485deff9da25ab4
BLAKE2b-256 checksum
How to use checksums
61c6fdc6184e5e2ed9ddc2329a66f7b2b6eecdda214cc7a6e7bd33fd9f9117d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.13

Security for py-pgorm 0.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page