Python DBAPI module for FirebirdSQL
Python Objective-C CSS Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
firebirdsql fix decimal64_to_decimal() Mar 31, 2018
misc update error messages Dec 5, 2016
sphinx fix parse decfloat value Mar 5, 2018
.gitignore ignore docs folder Nov 15, 2011
.travis.yml dist: precise Aug 27, 2017
LICENSE add LICENSE file Nov 25, 2016
MANIFEST.in add MANIFEST.in Dec 5, 2014
README.rst modify example Oct 14, 2017
setup.py add long_description Feb 5, 2018

README.rst

PyfirebirdSQL

https://travis-ci.org/nakagami/pyfirebirdsql.svg?branch=master https://img.shields.io/pypi/v/firebirdsql.png

https://img.shields.io/pypi/l/firebirdsql.png

firebirdsql package is a set of Firebird RDBMS (http://firebirdsql.org/) bindings for Python (Written in pure Python : no C compiler needed or fbclient library)

It works on Python 2.6+ and 3.3+.

see https://pyfirebirdsql.readthedocs.io/en/latest/

Example

import firebirdsql
conn = firebirdsql.connect(
    host='localhost',
    database='/foo/bar.fdb',
    port=3050,
    user='alice',
    password='secret'
)
cur = conn.cursor()
cur.execute("select * from baz")
for c in cur.fetchall():
    print(c)
conn.close()

Test with Firebird3

You can unit test with Firebird3.

Set firebird.conf like this

AuthServer = Srp, Legacy_Auth
WireCrypt = Enabled

and execute bellow command:

$ python setup.py test

On the other hand, you can use it with Firebird3 wire protocol 13 (Srp authentication and wire encryption) with default firebird.conf