PyPostgreSQLWrapper is a simple adapter for PostgreSQL with connection pooling
Project description
PyPostgreSQLWrapper
PyPostgreSQLWrapper is a simple adapter for PostgreSQL with connection pooling.
Configuration
The configuration can be done through JSON file or by Dict following the pattern described below:
{
"dbname": "postgres",
"host": "localhost",
"maxconnections": 10,
"password": "postgres",
"port": 5432,
"print_sql": true,
"user": "postgres"
}
Usage
PyPostgreSQLWrapper usage description:
SQL
from py_postgresql_wrapper.database import Database
with Database() as database:
database.execute('''
create table test (
id int primary key,
description varchar(255)
)
''')
Insert
from py_postgresql_wrapper.database import Database
with Database() as database:
database.insert('test').set('id', 1).set('description', 'Test').execute()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for py_postgresql_wrapper-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d78154b92335f5f6b25c4279889226ce478fcf4d329e47f0b40260a4057e670 |
|
MD5 | 5f5430eb4f24bcce928ed977014d7738 |
|
BLAKE2b-256 | 154c1db9d7ef37e0644d000704cba163160311d7abf4ebcd5b84e1d428a8ffd8 |
Close
Hashes for py_postgresql_wrapper-1.0.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efea6511865c636d4803f9aeb5815fe29bdea55811ca6b2399c23f2220a37512 |
|
MD5 | 1c78226e6387c2adcf68eeb23902fad2 |
|
BLAKE2b-256 | 071fcf40cdb899ba2e9c3a68e050030df744b70f397a74630672658e1a892101 |