Skip to content

Commit d591101

Browse files
committed
Version 2.0.3
1 parent df3b5ee commit d591101

30 files changed

+159
-209
lines changed

LICENSE.TXT renamed to LICENSE

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
LICENSE
33
=======
44

5-
The following contributors hold Copyright (c) over their respective portions
5+
The following contributors hold Copyright (c) over their respective portions
66
of code and documentation:
77

8-
The main portion of initial code (~95%); Current maintainer:
8+
The main portion of initial code (~95%); Current maintainer:
99

10-
Pavel Cisar <pcisar@ibphoenix.cz>
10+
Pavel Cisar <pcisar@users.sourceforge.net>
1111

1212
Contributors:
1313

1414
[Initial trace API & nbackup support; Python 3 support]
1515
Philippe Makowski <[email protected]>
1616

17-
Some code in inital version is Python code from KInterbasDB 3.3.0.
18-
As it's very hard to find out who exactly was the original author of used code,
17+
Some code in inital version is Python code from KInterbasDB 3.3.0.
18+
As it's very hard to find out who exactly was the original author of used code,
1919
here is the full list of KInterbasDB contributors:
2020

2121
[Author of original version; maintained through version 2.0:]
@@ -28,34 +28,34 @@ here is the full list of KInterbasDB contributors:
2828

2929
[Finishing touch to v3.3; New Documentation; Current maintainer:]
3030

31-
2008-2011 [paci] Pavel Cisar <pcisar@ibphoenix.cz>
31+
2008-2011 [paci] Pavel Cisar <pcisar@users.sourceforge.net>
3232

3333
[Significant Contributors:]
3434

3535
2001-2002 [maz] Marek Isalski <[email protected]>
3636

37-
Marek made important first steps in removing the limitations of version 2.0
37+
Marek made important first steps in removing the limitations of version 2.0
3838
in preparation for version 3.0.
3939

4040
2001 [eac] Evgeny A. Cherkashin <[email protected]>
4141

42-
Evgeny wrote the first version of the distutils build script,
42+
Evgeny wrote the first version of the distutils build script,
4343
which was included in a 2.x point release.
4444

4545
2001-2002 [janez] Janez Jere <[email protected]>
4646

47-
Janez contributed several bugfixes, including fixes for the date and time
47+
Janez contributed several bugfixes, including fixes for the date and time
4848
parameter conversion code in preparation for version 3.0.
4949

50-
Permission to use, copy, modify, and distribute this software and its documentation
51-
for any purpose and without fee or royalty is hereby granted, provided that the above
52-
copyright notice appears in all copies and that both the copyright notice and
53-
this permission notice appear in supporting documentation or portions thereof,
50+
Permission to use, copy, modify, and distribute this software and its documentation
51+
for any purpose and without fee or royalty is hereby granted, provided that the above
52+
copyright notice appears in all copies and that both the copyright notice and
53+
this permission notice appear in supporting documentation or portions thereof,
5454
including modifications, that you make.
5555

56-
The authors disclaim all warranties with regard to this software, including all
57-
implied warranties of merchantability and fitness. In no event shall any author
58-
be liable for any special, indirect or consequential damages or any damages whatsoever
59-
resulting from loss of use, data or profits, whether in an action of contract,
60-
negligence or other tortious action, arising out of or in connection with the use
56+
The authors disclaim all warranties with regard to this software, including all
57+
implied warranties of merchantability and fitness. In no event shall any author
58+
be liable for any special, indirect or consequential damages or any damages whatsoever
59+
resulting from loss of use, data or profits, whether in an action of contract,
60+
negligence or other tortious action, arising out of or in connection with the use
6161
or performance of this software.

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# FDB - legacy Firebird driver for Python
2+
3+
[![PyPI - Version](https://img.shields.io/pypi/v/fdb.svg)](https://pypi.org/project/fdb)
4+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/fdb.svg)](https://pypi.org/project/fdb)
5+
[![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch)
6+
[![PyPI - Downloads](https://img.shields.io/pypi/dm/fdb)](https://pypi.org/project/fdb)
7+
[![Libraries.io SourceRank](https://img.shields.io/librariesio/sourcerank/pypi/fdb)](https://libraries.io/pypi/fdb)
8+
9+
## Important
10+
11+
This package provides LEGACY Python Database API 2.0-compliant driver for the open
12+
source relational database **Firebird version 2.5.**, with **limited support for Firebird 3.0**.
13+
It does NOT support Firebird 4 and newer.
14+
15+
If you are using Firebird 3 or newer, please use the OFFICIAL Python driver for Firebird
16+
called [firebird-driver](https://pypi.org/project/firebird-driver/).
17+
18+
The FDB driver is not actively developed and its maintenance is very limited.
19+
20+
-----
21+
22+
**Table of Contents**
23+
24+
- [Installation](#installation)
25+
- [License](#license)
26+
- [Documentation](#documentation)
27+
28+
## Installation
29+
30+
```console
31+
pip install fdb
32+
```
33+
34+
## License
35+
36+
`fdb` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
37+
38+
## Documentation
39+
40+
The documentation for this package is available at [https://fdb.readthedocs.io](https://fdb.readthedocs.io)
41+

README.rst

Lines changed: 0 additions & 75 deletions
This file was deleted.

fdb/blr.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,31 @@
2323

2424
# BLR data types are defined in fdb.ibase
2525

26-
#blr_text = 14
27-
#blr_text2 = 15
28-
#blr_short = 7
29-
#blr_long = 8
30-
#blr_quad = 9
31-
#blr_float = 10
32-
#blr_double = 27
33-
#blr_d_float = 11
34-
#blr_timestamp = 35
35-
#blr_varying = 37
36-
#blr_varying2 = 38
37-
#blr_blob = 261
38-
#blr_cstring = 40
39-
#blr_cstring2 = 41
40-
#blr_blob_id = 45
41-
#blr_sql_date = 12
42-
#blr_sql_time = 13
43-
#blr_int64 = 16
44-
#blr_blob2 = 17
45-
#blr_domain_name = 18
46-
#blr_domain_name2 = 19
47-
#blr_not_nullable = 20
48-
#blr_column_name = 21
49-
#blr_column_name2 = 22
50-
#blr_bool = 23 # Firebird 3.0
26+
blr_text = 14
27+
blr_text2 = 15
28+
blr_short = 7
29+
blr_long = 8
30+
blr_quad = 9
31+
blr_float = 10
32+
blr_double = 27
33+
blr_d_float = 11
34+
blr_timestamp = 35
35+
blr_varying = 37
36+
blr_varying2 = 38
37+
blr_blob = 261
38+
blr_cstring = 40
39+
blr_cstring2 = 41
40+
blr_blob_id = 45
41+
blr_sql_date = 12
42+
blr_sql_time = 13
43+
blr_int64 = 16
44+
blr_blob2 = 17
45+
blr_domain_name = 18
46+
blr_domain_name2 = 19
47+
blr_not_nullable = 20
48+
blr_column_name = 21
49+
blr_column_name2 = 22
50+
blr_bool = 23 # Firebird 3.0
5151

5252
# first sub parameter for blr_domain_name[2]
5353
blr_domain_type_of = 0

fdb/fbcore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
PYTHON_MAJOR_VER = sys.version_info[0]
157157

158158
#: Current driver version
159-
__version__ = '2.0.2'
159+
__version__ = '2.0.3'
160160

161161
apilevel = '2.0'
162162
threadsafety = 1

pyproject.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "fdb"
7+
description = "Legacy Python driver for Firebird 2.5"
8+
dynamic = ["version"]
9+
readme = "README.md"
10+
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4"
11+
license = { file = "LICENSE" }
12+
authors = [
13+
{ name = "Pavel Cisar", email = "[email protected]"},
14+
]
15+
keywords = ["Firebird", "RDBMS", "driver"]
16+
classifiers = [
17+
"Development Status :: 5 - Production/Stable",
18+
"Intended Audience :: Developers",
19+
"License :: OSI Approved :: BSD License",
20+
"Programming Language :: Python :: 2",
21+
"Programming Language :: Python :: 2.7",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3.4",
24+
"Programming Language :: Python :: 3.5",
25+
"Programming Language :: Python :: 3.6",
26+
"Operating System :: POSIX :: Linux",
27+
"Operating System :: Microsoft :: Windows",
28+
"Operating System :: MacOS",
29+
"Topic :: Software Development",
30+
"Topic :: Database",
31+
]
32+
dependencies = [
33+
"firebird-base~=2.0",
34+
"python-dateutil~=2.8",
35+
]
36+
37+
[project.urls]
38+
Home = "https://github.com/FirebirdSQL/fdb"
39+
Documentation = "https://fdb.rtfd.io"
40+
Issues = "https://github.com/FirebirdSQL/fdb/issues"
41+
Source = "https://github.com/FirebirdSQL/fdb"
42+
43+
[tool.hatch.version]
44+
path = "fdb/fbcore.py"
45+
46+
[tool.hatch.build.targets.sdist]
47+
include = ["fdb"]
48+
49+
[tool.hatch.build.targets.wheel]
50+
packages = ["fdb"]
51+
52+
[tool.hatch.envs.default]
53+
dependencies = [
54+
]
55+
56+
[[tool.hatch.envs.hatch-test.matrix]]
57+
python = ["2.7", "3.11"]

setup.cfg

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)