GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PropertyGuard/psycopg2_numpy_ext: Adapters for numpy's types for psycopg2. Forked in case the original repo gets deleted.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
psycopg2_numpy_ext
psycopg2_numpy_ext
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.rst
README.rst
 
 
setup.py
setup.py
 
 
tox.ini
tox.ini
 
 

Repository files navigation

psycopg2_numpy_ext

Adapters for Numpy's types for Psycopg2.

psycopg2 does not ship with adapters for numpy's types and is unable to interpolate them in queries naturally.

Using numpy's values as parameters results in ProgrammingError: can't adapt type 'numpy.int32' and similar errors with other numpy types. Such errors are common while mixing numpy, pandas and psycopg2.

This package solves the problem by registering AsIs adapters for these types.

Usage

from psycopg2_numpy_ext import register_numpy_types
register_numpy_types()

Installation

pip install git+git://github.com/musically-ut/psycopg2_numpy_ext.git@master#egg=psycopg2_numpy_ext

Requirements

  • numpy >= 1.9.2
  • psycopg2 >= 2.5

Authors

psycopg2-numpy-ext was written by Utkarsh Upadhyay.

About

Adapters for numpy's types for psycopg2. Forked in case the original repo gets deleted.

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.