Skip to main content

Simple wrapper for executing commands and queries

Project description

Simple wrapper for executing commands and queries

Features

  • Connection Pool
  • Client cursor

For installing package:

pip install psycopg2-wrapper

For usage:

from psycopg2_wrapper.database import Database
database = Database(host='host_name', database='db_name', user='db_user', password='db_password')
result = database.execute_query('select * from user where id=%s', (1,))

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

psycopg2_wrapper-1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

psycopg2_wrapper-1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file psycopg2_wrapper-1.0.tar.gz.

File metadata

  • Download URL: psycopg2_wrapper-1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.5

File hashes

Hashes for psycopg2_wrapper-1.0.tar.gz
Algorithm Hash digest
SHA256 43af59bba557172d131207bba17dfc350f8827af6554bd3a90e4e4aa28598c0e
MD5 2c381f181845c73e1e9e883ebc457200
BLAKE2b-256 4b719bf1f1677cc4f05156d6a5ccd44ac6f88a3eb330eeea74f7887491cea97f

See more details on using hashes here.

File details

Details for the file psycopg2_wrapper-1.0-py3-none-any.whl.

File metadata

  • Download URL: psycopg2_wrapper-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.5

File hashes

Hashes for psycopg2_wrapper-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9bee3c2c3718dd0a046016424da5ce5a9bcbd0efba193668612270e360dc584e
MD5 4ba7fa2025573249100f55bb656ba2bf
BLAKE2b-256 db054e55289fbbbd8e52749318135451e62be46450f5105c05fa3a8156cd7115

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