All Projects → psycopg → Psycopg2

psycopg / Psycopg2

Licence: other
PostgreSQL database adapter for the Python programming language

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Psycopg2

Postgres
Postgres.js - The Fastest full featured PostgreSQL client for Node.js
Stars: ✭ 2,193 (-9.57%)
Mutual labels:  database, postgresql, driver
Hasql
Performant PostgreSQL driver with a flexible mapping API
Stars: ✭ 415 (-82.89%)
Mutual labels:  database, postgresql, driver
Psycopg3
New generation PostgreSQL database adapter for the Python programming language
Stars: ✭ 278 (-88.54%)
Mutual labels:  database, postgresql, driver
Scalardb
Universal transaction manager
Stars: ✭ 178 (-92.66%)
Mutual labels:  database, postgresql
Nut
Advanced, Powerful and easy to use ORM for Qt
Stars: ✭ 181 (-92.54%)
Mutual labels:  database, postgresql
Doctrine Postgis
Spatial and Geographic Data with PostGIS and Doctrine.
Stars: ✭ 161 (-93.36%)
Mutual labels:  database, postgresql
Postgres Meta
A RESTful API for managing your Postgres. Fetch tables, add roles, and run queries
Stars: ✭ 146 (-93.98%)
Mutual labels:  database, postgresql
Arangodb Php
PHP ODM for ArangoDB
Stars: ✭ 178 (-92.66%)
Mutual labels:  database, driver
Postgres Migrations
🐦 A Stack Overflow-inspired PostgreSQL migration library with strict ordering and immutable migrations
Stars: ✭ 161 (-93.36%)
Mutual labels:  database, postgresql
Usaspending Api
Server application to serve U.S. federal spending data via a RESTful API
Stars: ✭ 166 (-93.15%)
Mutual labels:  database, postgresql
Old Rustorm
An ORM for rust
Stars: ✭ 168 (-93.07%)
Mutual labels:  database, postgresql
Linq2db
Linq to database provider.
Stars: ✭ 2,211 (-8.82%)
Mutual labels:  database, postgresql
Postgresdbsamples
Sample databases for postgres
Stars: ✭ 161 (-93.36%)
Mutual labels:  database, postgresql
Database To Plantuml
Compile PostgreSQL and MySQL table information into a PlantUML description.
Stars: ✭ 157 (-93.53%)
Mutual labels:  database, postgresql
Collector
pganalyze statistics collector for gathering PostgreSQL metrics and log data
Stars: ✭ 181 (-92.54%)
Mutual labels:  database, postgresql
Querybuilder
SQL query builder, written in c#, helps you build complex queries easily, supports SqlServer, MySql, PostgreSql, Oracle, Sqlite and Firebird
Stars: ✭ 2,111 (-12.95%)
Mutual labels:  database, postgresql
Pg hashids
Short unique id generator for PostgreSQL, using hashids
Stars: ✭ 164 (-93.24%)
Mutual labels:  database, postgresql
Gocql
Package gocql implements a fast and robust Cassandra client for the Go programming language.
Stars: ✭ 2,182 (-10.02%)
Mutual labels:  database, driver
Faunadb Go
Go driver for FaunaDB
Stars: ✭ 140 (-94.23%)
Mutual labels:  database, driver
Dapper.fsharp
Lightweight F# extension for StackOverflow Dapper with support for MSSQL, MySQL and PostgreSQL
Stars: ✭ 145 (-94.02%)
Mutual labels:  database, postgresql

psycopg2 - Python-PostgreSQL Database Adapter

Psycopg is the most popular PostgreSQL database adapter for the Python programming language. Its main features are the complete implementation of the Python DB API 2.0 specification and the thread safety (several threads can share the same connection). It was designed for heavily multi-threaded applications that create and destroy lots of cursors and make a large number of concurrent "INSERT"s or "UPDATE"s.

Psycopg 2 is mostly implemented in C as a libpq wrapper, resulting in being both efficient and secure. It features client-side and server-side cursors, asynchronous communication and notifications, "COPY TO/COPY FROM" support. Many Python types are supported out-of-the-box and adapted to matching PostgreSQL data types; adaptation can be extended and customized thanks to a flexible objects adaptation system.

Psycopg 2 is both Unicode and Python 3 friendly.

Documentation

Documentation is included in the doc directory and is available online.

For any other resource (source code repository, bug tracker, mailing list) please check the project homepage.

Installation

Building Psycopg requires a few prerequisites (a C compiler, some development packages): please check the install and the faq documents in the doc dir or online for the details.

If prerequisites are met, you can install psycopg like any other Python package, using pip to download it from PyPI:

$ pip install psycopg2

or using setup.py if you have downloaded the source package locally:

$ python setup.py build
$ sudo python setup.py install

You can also obtain a stand-alone package, not requiring a compiler or external libraries, by installing the psycopg2-binary package from PyPI:

$ pip install psycopg2-binary

The binary package is a practical choice for development and testing but in production it is advised to use the package built from sources.

Linux/OSX:Linux and OSX build status
Windows:Windows build status
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].