devart-interbase-connector 1.2.0__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- devart/interbase/__init__.py +16 -0
- devart/interbase/interbase.cp313-win_amd64.pyd +0 -0
- devart/interbase/interbase.pyi +403 -0
- devart/interbase/sqlalchemy/__init__.py +19 -0
- devart_interbase_connector-1.2.0.dist-info/LICENSE +85 -0
- devart_interbase_connector-1.2.0.dist-info/METADATA +79 -0
- devart_interbase_connector-1.2.0.dist-info/RECORD +9 -0
- devart_interbase_connector-1.2.0.dist-info/WHEEL +5 -0
- devart_interbase_connector-1.2.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python Connector for InterBase is a connectivity solution for accessing
|
|
3
|
+
InterBase databases from Python applications. It fully implements the Python
|
|
4
|
+
DB API 2.0 specification. The connector is distributed as a wheel package
|
|
5
|
+
for Windows, macOS, and Linux.
|
|
6
|
+
|
|
7
|
+
Secure communication
|
|
8
|
+
|
|
9
|
+
The connector supports the Over-the-Wire (OTW) encryption feature of InterBase
|
|
10
|
+
to encrypt data during the transmission process.
|
|
11
|
+
|
|
12
|
+
Version: 1.2.0
|
|
13
|
+
|
|
14
|
+
Homepage: https://www.devart.com/python/interbase/
|
|
15
|
+
"""
|
|
16
|
+
from .interbase import *
|
|
Binary file
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
from typing import Tuple, List, Optional, Any, Dict
|
|
2
|
+
import datetime
|
|
3
|
+
import array
|
|
4
|
+
|
|
5
|
+
class description(object):
|
|
6
|
+
"""
|
|
7
|
+
The description class describes a column in a rowset returned by the cursor.
|
|
8
|
+
"""
|
|
9
|
+
name: str
|
|
10
|
+
"""
|
|
11
|
+
The name of the column in the rowset.
|
|
12
|
+
"""
|
|
13
|
+
type_code: int
|
|
14
|
+
"""
|
|
15
|
+
The database type code that corresponds to the type of the column.
|
|
16
|
+
"""
|
|
17
|
+
display_size: int
|
|
18
|
+
"""
|
|
19
|
+
The actual length of the column in characters for a character column, `None` otherwise.
|
|
20
|
+
"""
|
|
21
|
+
internal_size: int
|
|
22
|
+
"""
|
|
23
|
+
The size in bytes used by the connector to store the column data.
|
|
24
|
+
"""
|
|
25
|
+
precision: int
|
|
26
|
+
"""
|
|
27
|
+
The total number of significant digits for a numeric column, `None` otherwise.
|
|
28
|
+
"""
|
|
29
|
+
scale: int
|
|
30
|
+
"""
|
|
31
|
+
The number of digits in the fractional part for a numeric column, `None` otherwise.
|
|
32
|
+
"""
|
|
33
|
+
null_ok: bool
|
|
34
|
+
"""
|
|
35
|
+
`Py_True` if the corresponding database column accepts `NULL` values, `Py_False` otherwise.
|
|
36
|
+
"""
|
|
37
|
+
...
|
|
38
|
+
|
|
39
|
+
class cursor(object):
|
|
40
|
+
"""
|
|
41
|
+
The `cursor` class represents a database cursor, which is used to manage
|
|
42
|
+
the context of fetch operations. This class provides methods for executing SQL
|
|
43
|
+
statements and operating rowsets. Cursors are created using the `cursor()`
|
|
44
|
+
connection method.
|
|
45
|
+
"""
|
|
46
|
+
connection: str
|
|
47
|
+
"""
|
|
48
|
+
A read-only attribute that specifies the `connection` object
|
|
49
|
+
to which the cursor belongs.
|
|
50
|
+
"""
|
|
51
|
+
arraysize: int
|
|
52
|
+
"""
|
|
53
|
+
A read/write attribute that specifies the number of rows to fetch at a time
|
|
54
|
+
with the `fetchmany()` method.
|
|
55
|
+
"""
|
|
56
|
+
description: Tuple[description]
|
|
57
|
+
"""
|
|
58
|
+
A read-only attribute that describes the columns in a rowset returned
|
|
59
|
+
by the cursor.
|
|
60
|
+
"""
|
|
61
|
+
rowcount: int
|
|
62
|
+
"""
|
|
63
|
+
A read-only attribute that specifies the number of rows that the last
|
|
64
|
+
`execute()` call produced by a `SELECT` statement or affected by `UPDATE` or
|
|
65
|
+
`INSERT` statements.
|
|
66
|
+
"""
|
|
67
|
+
rownumber: int
|
|
68
|
+
"""
|
|
69
|
+
A read-only attribute that specifies the current 0-based index of the cursor
|
|
70
|
+
in the result set.
|
|
71
|
+
"""
|
|
72
|
+
lastrowid: None
|
|
73
|
+
"""
|
|
74
|
+
This read-only attribute is provided for compatibility with the DB API 2.0
|
|
75
|
+
specification. It currently returns `None`.
|
|
76
|
+
"""
|
|
77
|
+
def setinputsizes(self, sizes: Optional[List[Any] | Tuple[Any]]) -> None:
|
|
78
|
+
"""
|
|
79
|
+
Predefines the types of parameters for the further call to the `execute*()`
|
|
80
|
+
method.
|
|
81
|
+
"""
|
|
82
|
+
...
|
|
83
|
+
def execute(self, operation: str, parameters: Optional[List[Any] | Tuple[Any] | Dict[str, Any]]) -> cursor:
|
|
84
|
+
"""
|
|
85
|
+
Prepares and executes a database operation.
|
|
86
|
+
"""
|
|
87
|
+
...
|
|
88
|
+
def executemany(self, operation: str, parameters: Optional[List[Any] | Tuple[Any] | Dict[str, Any]]) -> cursor:
|
|
89
|
+
"""
|
|
90
|
+
Prepares and executes a batch database operation.
|
|
91
|
+
"""
|
|
92
|
+
def fetchone(self) -> Tuple[Any]:
|
|
93
|
+
"""
|
|
94
|
+
Fetches the next row of a query result set.
|
|
95
|
+
"""
|
|
96
|
+
...
|
|
97
|
+
def fetchmany(self, size: Optional[int]) -> List[Tuple[Any]]:
|
|
98
|
+
"""
|
|
99
|
+
Fetches the next set of rows of a query result.
|
|
100
|
+
"""
|
|
101
|
+
...
|
|
102
|
+
def fetchall(self) -> List[Tuple[Any]]:
|
|
103
|
+
"""
|
|
104
|
+
Fetches all remaning rows of a query result.
|
|
105
|
+
"""
|
|
106
|
+
...
|
|
107
|
+
def next(self) -> Tuple[Any]:
|
|
108
|
+
"""
|
|
109
|
+
Returns the next row from the currently executed SQL statement.
|
|
110
|
+
"""
|
|
111
|
+
...
|
|
112
|
+
def scroll(value: int, mode: Optional[str]) -> bool:
|
|
113
|
+
"""
|
|
114
|
+
Scrolls the cursor in the result set to a new position.
|
|
115
|
+
"""
|
|
116
|
+
...
|
|
117
|
+
def addtypecast(self, column: int | dbtype | str | description | Dict[str, type], python_type: Optional[type]) -> None:
|
|
118
|
+
"""
|
|
119
|
+
Defines a data type cast rule to use when fetching data from the cursor.
|
|
120
|
+
"""
|
|
121
|
+
...
|
|
122
|
+
def cleartypecast(self) -> None:
|
|
123
|
+
"""
|
|
124
|
+
Removes all data type cast rules defined for the cursor.
|
|
125
|
+
"""
|
|
126
|
+
...
|
|
127
|
+
def close(self) -> None:
|
|
128
|
+
"""
|
|
129
|
+
Closes the cursor.
|
|
130
|
+
"""
|
|
131
|
+
...
|
|
132
|
+
def setoutputsize(size: int, column: Optional[int]):
|
|
133
|
+
"""
|
|
134
|
+
This method is provided for compatibility with the DB API 2.0 specification.
|
|
135
|
+
It currently does nothing but is safe to call.
|
|
136
|
+
"""
|
|
137
|
+
...
|
|
138
|
+
|
|
139
|
+
class connection(object):
|
|
140
|
+
"""
|
|
141
|
+
The `connection` class encapsulates a database session. It provides methods
|
|
142
|
+
for creating cursors, type casting, and transaction handling. Connections
|
|
143
|
+
are created using the `connect()` module method.
|
|
144
|
+
"""
|
|
145
|
+
connectstring: str
|
|
146
|
+
"""
|
|
147
|
+
A read-only attribute that returns a string literal of the form
|
|
148
|
+
`"parameter=value;parameter=value"` that contains the parameters
|
|
149
|
+
for the current connection.
|
|
150
|
+
"""
|
|
151
|
+
def cursor(self) -> cursor:
|
|
152
|
+
"""
|
|
153
|
+
Creates a new cursor object, which is used to manage the context of fetch
|
|
154
|
+
operations.
|
|
155
|
+
"""
|
|
156
|
+
...
|
|
157
|
+
def close(self) -> None:
|
|
158
|
+
"""
|
|
159
|
+
Closes the connection.
|
|
160
|
+
"""
|
|
161
|
+
...
|
|
162
|
+
def commit(self) -> None:
|
|
163
|
+
"""
|
|
164
|
+
Commits any pending transaction to the database.
|
|
165
|
+
"""
|
|
166
|
+
...
|
|
167
|
+
def rollback(self) -> None:
|
|
168
|
+
"""
|
|
169
|
+
Causes the database to roll back any pending transaction.
|
|
170
|
+
"""
|
|
171
|
+
...
|
|
172
|
+
def addtypecast(self, column: int | dbtype | str | description | Dict[str, type], python_type: Optional[type]) -> None:
|
|
173
|
+
"""
|
|
174
|
+
Defines a data type cast rule to use when fetching data from the cursor.
|
|
175
|
+
"""
|
|
176
|
+
...
|
|
177
|
+
def cleartypecast(self) -> None:
|
|
178
|
+
"""
|
|
179
|
+
Removes all data type cast rules defined for the connection.
|
|
180
|
+
"""
|
|
181
|
+
...
|
|
182
|
+
|
|
183
|
+
class connection_pool(object):
|
|
184
|
+
"""
|
|
185
|
+
Description of the `connection_pool` class is not available yet.
|
|
186
|
+
"""
|
|
187
|
+
enabled: bool = False
|
|
188
|
+
"""
|
|
189
|
+
Description of the `enabled` attribute is not available yet.
|
|
190
|
+
"""
|
|
191
|
+
max_size: int = 1000
|
|
192
|
+
"""
|
|
193
|
+
Description of the `max_size` attribute is not available yet.
|
|
194
|
+
"""
|
|
195
|
+
min_size: int = 1000
|
|
196
|
+
"""
|
|
197
|
+
Description of the `min_size` attribute is not available yet.
|
|
198
|
+
"""
|
|
199
|
+
lifetime: int = 0
|
|
200
|
+
"""
|
|
201
|
+
Description of the `lifetime` attribute is not available yet.
|
|
202
|
+
"""
|
|
203
|
+
validate: bool = False
|
|
204
|
+
"""
|
|
205
|
+
Description of the `validate` attribute is not available yet.
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
class Warning(Exception):
|
|
209
|
+
"""
|
|
210
|
+
This exception is raised for important warnings like data truncations while
|
|
211
|
+
inserting, etc. The `Warning` exception is a subclass of the Python
|
|
212
|
+
`Exception` class.
|
|
213
|
+
"""
|
|
214
|
+
...
|
|
215
|
+
|
|
216
|
+
class Error(Exception):
|
|
217
|
+
"""
|
|
218
|
+
This exception is the base class of all error exceptions. You can use
|
|
219
|
+
it to catch all errors with a single `except` statement. The `Error` exception
|
|
220
|
+
is a subclass of the Python `Exception` class.
|
|
221
|
+
"""
|
|
222
|
+
...
|
|
223
|
+
|
|
224
|
+
class InterfaceError(Error):
|
|
225
|
+
"""
|
|
226
|
+
This exception is raised for errors that are related to the database interface
|
|
227
|
+
rather than the database itself. The `InterfaceError` exception is a subclass
|
|
228
|
+
of `Error`.
|
|
229
|
+
"""
|
|
230
|
+
...
|
|
231
|
+
|
|
232
|
+
class DatabaseError(Error):
|
|
233
|
+
"""
|
|
234
|
+
This exception is raised for errors that are related to the database.
|
|
235
|
+
The `DatabaseError` exception is a subclass of `Error`.
|
|
236
|
+
"""
|
|
237
|
+
...
|
|
238
|
+
|
|
239
|
+
class DataError(DatabaseError):
|
|
240
|
+
"""
|
|
241
|
+
This exception is raised for errors caused by issues with the processed data
|
|
242
|
+
like division by zero, numeric value out of range, etc. The `DataError`
|
|
243
|
+
exception is a subclass of `DatabaseError`.
|
|
244
|
+
"""
|
|
245
|
+
...
|
|
246
|
+
|
|
247
|
+
class OperationalError(DatabaseError):
|
|
248
|
+
"""
|
|
249
|
+
This exception is raised for errors that are related to the database operation
|
|
250
|
+
and not necessarily under the control of the developer, for example,
|
|
251
|
+
an unexpected disconnect occurs, the data source name isn't found,
|
|
252
|
+
a transaction couldn't be processed, a memory allocation error occurred
|
|
253
|
+
during processing, etc. The OperationalError exception is a subclass
|
|
254
|
+
of `DatabaseError`.
|
|
255
|
+
"""
|
|
256
|
+
...
|
|
257
|
+
|
|
258
|
+
class IntegrityError(DatabaseError):
|
|
259
|
+
"""
|
|
260
|
+
This exception raised when the relational integrity of the database
|
|
261
|
+
is affected, for example, a foreign key check fails. The `IntegrityError`
|
|
262
|
+
exception is a subclass of `DatabaseError`.
|
|
263
|
+
"""
|
|
264
|
+
...
|
|
265
|
+
|
|
266
|
+
class InternalError(DatabaseError):
|
|
267
|
+
"""
|
|
268
|
+
This exception is raised when the database encounters an internal error,
|
|
269
|
+
for example, the cursor isn't valid anymore, the transaction is out of sync,
|
|
270
|
+
etc. The `InternalError` exception is a subclass of `DatabaseError`.
|
|
271
|
+
"""
|
|
272
|
+
...
|
|
273
|
+
|
|
274
|
+
class ProgrammingError(DatabaseError):
|
|
275
|
+
"""
|
|
276
|
+
This exception is raised for programming errors, for example, table not found
|
|
277
|
+
or already exists, syntax error in the SQL statement, wrong number
|
|
278
|
+
of parameters specified, etc. The `ProgrammingError` exception is a subclass
|
|
279
|
+
of `DatabaseError`.
|
|
280
|
+
"""
|
|
281
|
+
...
|
|
282
|
+
|
|
283
|
+
class NotSupportedError(DatabaseError):
|
|
284
|
+
"""
|
|
285
|
+
This exception is raised when a method or database API isn't supported
|
|
286
|
+
by the database, for example, requesting a `rollback()` on a connection
|
|
287
|
+
that doesn't support transactions or has transactions turned off.
|
|
288
|
+
The `NotSupportedError` exception is a subclass of `DatabaseError`.
|
|
289
|
+
"""
|
|
290
|
+
...
|
|
291
|
+
|
|
292
|
+
class binary(object):
|
|
293
|
+
"""
|
|
294
|
+
This type object describes an object that holds binary data. By default, this
|
|
295
|
+
type object is used to fetch BLOB-based columns from the cursor. You can also
|
|
296
|
+
create a `binary` object using the `Binary()` constructor.
|
|
297
|
+
"""
|
|
298
|
+
value: bytes
|
|
299
|
+
"""
|
|
300
|
+
A value of type `bytes` that represents binary data. This is a read/write attribute
|
|
301
|
+
that accepts values of type `str`, `bytes`, `bytearray`, `array.array`, and `binary`.
|
|
302
|
+
"""
|
|
303
|
+
|
|
304
|
+
class dbtype(object):
|
|
305
|
+
name: str
|
|
306
|
+
values: Dict[int, str]
|
|
307
|
+
|
|
308
|
+
apilevel: str = "2.0"
|
|
309
|
+
"""
|
|
310
|
+
Indicates the DB API level supported by the module. Returns a string value "2.0".
|
|
311
|
+
"""
|
|
312
|
+
|
|
313
|
+
threadsafety: int = 2
|
|
314
|
+
"""
|
|
315
|
+
Indicates the thread safety level of the module. Returns an integer value `2` that means
|
|
316
|
+
that threads may share the module and connections.
|
|
317
|
+
"""
|
|
318
|
+
|
|
319
|
+
paramstyle: str = "named"
|
|
320
|
+
"""
|
|
321
|
+
Indicates the type of parameter marker formatting expected by the module.
|
|
322
|
+
Returns a string value "named" that means that the module supports named style parameters,
|
|
323
|
+
for example, `...WHERE name=:name`.
|
|
324
|
+
"""
|
|
325
|
+
|
|
326
|
+
def connect(connection_string: str, **kwargs: Optional[Any]) -> connection:
|
|
327
|
+
"""
|
|
328
|
+
Creates a new connection to the database.
|
|
329
|
+
"""
|
|
330
|
+
...
|
|
331
|
+
|
|
332
|
+
def Date(year: int, month: int, day: int) -> datetime.date:
|
|
333
|
+
"""
|
|
334
|
+
Creates an object that holds a date value.
|
|
335
|
+
"""
|
|
336
|
+
...
|
|
337
|
+
|
|
338
|
+
def Time(hour: int, minute: int, second: int | float, timezone: Optional[datetime.tzinfo]) -> datetime.time:
|
|
339
|
+
"""
|
|
340
|
+
Creates an object that holds a time value.
|
|
341
|
+
"""
|
|
342
|
+
...
|
|
343
|
+
|
|
344
|
+
def Timestamp(year: int, month: int, day: int, hour: Optional[int], minute:Optional[int], second: Optional[int | float], timezone: Optional[datetime.tzinfo]) -> datetime.datetime:
|
|
345
|
+
"""
|
|
346
|
+
Creates an object that holds a timestamp value.
|
|
347
|
+
"""
|
|
348
|
+
...
|
|
349
|
+
|
|
350
|
+
def DateFromTicks(ticks: float) -> datetime.date:
|
|
351
|
+
"""
|
|
352
|
+
Creates an object that holds a date value from the given ticks value
|
|
353
|
+
(the number of seconds since the Unix epoch). For more information, see
|
|
354
|
+
the `time` module in the standard Python documentation.
|
|
355
|
+
"""
|
|
356
|
+
...
|
|
357
|
+
|
|
358
|
+
def TimeFromTicks(ticks: float) -> datetime.time:
|
|
359
|
+
"""
|
|
360
|
+
Creates an object that holds a time value from the given ticks value (number
|
|
361
|
+
of seconds since the Unix epoch). For more information, see the `time` module
|
|
362
|
+
in the standard Python documentation.
|
|
363
|
+
"""
|
|
364
|
+
...
|
|
365
|
+
|
|
366
|
+
def TimestampFromTicks(ticks: float) -> datetime.datetime:
|
|
367
|
+
"""
|
|
368
|
+
Creates an object that holds a timestamp value from the given ticks value
|
|
369
|
+
(number of seconds since the Unix epoch). For more information, see the `time`
|
|
370
|
+
module in the standard Python documentation.
|
|
371
|
+
"""
|
|
372
|
+
...
|
|
373
|
+
|
|
374
|
+
def Binary(value: str | bytes | bytearray | array.array) -> binary:
|
|
375
|
+
"""
|
|
376
|
+
Creates an object that holds binary data.
|
|
377
|
+
"""
|
|
378
|
+
...
|
|
379
|
+
|
|
380
|
+
STRING: dbtype
|
|
381
|
+
"""
|
|
382
|
+
This type object describes string-based columns in a database.
|
|
383
|
+
"""
|
|
384
|
+
|
|
385
|
+
BINARY: dbtype
|
|
386
|
+
"""
|
|
387
|
+
This type object describes binary columns in a database.
|
|
388
|
+
"""
|
|
389
|
+
|
|
390
|
+
NUMBER: dbtype
|
|
391
|
+
"""
|
|
392
|
+
This type object describes numeric columns in a database.
|
|
393
|
+
"""
|
|
394
|
+
|
|
395
|
+
DATETIME: dbtype
|
|
396
|
+
"""
|
|
397
|
+
This type object describes date/time columns in a database.
|
|
398
|
+
"""
|
|
399
|
+
|
|
400
|
+
ROWID: dbtype
|
|
401
|
+
"""
|
|
402
|
+
This type object describes the `row id` columns in a database.
|
|
403
|
+
"""
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from sqlalchemy.dialects import registry
|
|
2
|
+
from sqlalchemy_firebird.base import FBDialect
|
|
3
|
+
|
|
4
|
+
registry.register('devart.interbase', 'devart.interbase.sqlalchemy', 'DevartInterBaseDialect')
|
|
5
|
+
|
|
6
|
+
class DevartInterBaseDialect(FBDialect):
|
|
7
|
+
driver = "devart"
|
|
8
|
+
name = "interbase"
|
|
9
|
+
|
|
10
|
+
supports_statement_cache = False
|
|
11
|
+
default_paramstyle = "named"
|
|
12
|
+
|
|
13
|
+
@classmethod
|
|
14
|
+
def import_dbapi(cls):
|
|
15
|
+
import devart.interbase
|
|
16
|
+
return devart.interbase
|
|
17
|
+
|
|
18
|
+
def _get_server_version_info(self, connection):
|
|
19
|
+
return (3, 10,)
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
Python Connector License Agreement
|
|
2
|
+
Copyright 2022-2024, Devart. All Rights Reserved
|
|
3
|
+
--------------------------------------------------
|
|
4
|
+
|
|
5
|
+
PLEASE READ THIS LICENSE AGREEMENT CAREFULLY. BY INSTALLING OR USING THIS SOFTWARE, YOU INDICATE ACCEPTANCE OF AND AGREE TO BECOME BOUND BY THE TERMS AND CONDITIONS OF THIS LICENSE. IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE, DO NOT INSTALL OR USE THIS SOFTWARE AND PROMPTLY RETURN IT TO DEVART.
|
|
6
|
+
|
|
7
|
+
INTRODUCTION
|
|
8
|
+
|
|
9
|
+
This Devart end-user license agreement ("Agreement") is a legal agreement between you (either an individual person or a single legal entity) and Devart, for the use of the Python Connector software application, demos, intermediate files, printed materials, and online or electronic documentation contained in this installation file. For the purpose of this Agreement, the software program(s) and supporting documentation will be referred to as the "Software".
|
|
10
|
+
|
|
11
|
+
LICENSE
|
|
12
|
+
|
|
13
|
+
1. GRANT OF LICENSE
|
|
14
|
+
|
|
15
|
+
The enclosed Software is licensed, not sold. You have the following rights and privileges, subject to all limitations, restrictions, and policies specified in this Agreement.
|
|
16
|
+
|
|
17
|
+
1.1. If you are a legally licensed user, depending on the License Type specified in the registration letter you have received from Devart upon purchase of the Software:
|
|
18
|
+
- the "Single License" allows you to install and use the Software on one or more computers, provided it is used by 1 (one) user for the sole purposes of developing, testing, and deploying scripts or applications in a single company at one physical address in accordance with this Agreement;
|
|
19
|
+
- the "Team License" allows you to install and use the Software on one or more computers, provided it is used by up to 4 (four) users for the sole purposes of developing, testing, and deploying scripts or applications in a single company at one physical address in accordance with this Agreement;
|
|
20
|
+
- the "Site License" allows you to install and use the Software on one or more computers, provided it is used by unlimited number of users for the sole purposes of developing, testing, and deploying scripts or applications in a single company at one physical address in accordance with this Agreement;
|
|
21
|
+
- the "OEM License" allows you to install and use the Software as part of a licensee's script or application that can be deployed to web servers, application servers, batch servers, desktops, and other end-user devices. This definition includes the ability to install and use the script or application containing the Software an unlimited number of times, without any additional fees in favor of the licensor.
|
|
22
|
+
|
|
23
|
+
1.2. If you are a legally licensed user, depending on the License Type specified in the registration letter you have received from Devart upon purchase of the Software:
|
|
24
|
+
- the "Subscription-based License" allows you to install and use the Software on a single computer only during the subscription term specified at purchase. An Internet connection is required to activate the license and check the license status when the Software is used. Once the subscription term is over, you will be able to either stop using the Software or renew the license for a new subscription term;
|
|
25
|
+
- the "Perpetual License" allows you to install and use the specific Software product version on a single computer without an active subscription. A subscription provides access to new product releases, regular upgrades, and support for new server versions provided during the subscription term;
|
|
26
|
+
|
|
27
|
+
1.3. If you are a legally licensed user of the Software, you are also entitled to:
|
|
28
|
+
- make one copy of the Software for archival purposes only, or copy the Software onto the hard disk of your computer and retain the original for archival purposes;
|
|
29
|
+
- develop and test Applications with the Software, subject to the Limitations below.
|
|
30
|
+
|
|
31
|
+
1.4. If you have the "OEM License", you are also entitled to:
|
|
32
|
+
- make any number of copies of the Software to deploy it to your end-user.
|
|
33
|
+
- deploy the Software to your end-user as a Software installation package or integrate it into your Applications.
|
|
34
|
+
|
|
35
|
+
1.5. You are allowed to use evaluation versions of the Software as specified in the Evaluation section.
|
|
36
|
+
|
|
37
|
+
No other rights or privileges are granted in this Agreement.
|
|
38
|
+
|
|
39
|
+
2. LIMITATIONS
|
|
40
|
+
|
|
41
|
+
Only legally registered users are licensed to use the Software, subject to all of the conditions of this Agreement. Usage of the Software is subject to the following restrictions.
|
|
42
|
+
|
|
43
|
+
2.1. You may not reverse engineer, decompile, or disassemble the Software.
|
|
44
|
+
|
|
45
|
+
2.2. You may not build any other Python packages through inheritance for public distribution or commercial sale.
|
|
46
|
+
|
|
47
|
+
2.3. You may not reproduce or distribute any Software documentation without express written permission from Devart.
|
|
48
|
+
|
|
49
|
+
2.4. You may not distribute and sell any portion of the Software integrating it into your Applications.
|
|
50
|
+
|
|
51
|
+
2.5. You may not transfer, assign, or modify the Software in whole or in part. In particular, the Software license is non-transferable, and you may not transfer the Software installation package.
|
|
52
|
+
|
|
53
|
+
2.6. You may not remove or alter any Devart's copyright, trademark, or other proprietary rights notice contained in any portion of Devart files.
|
|
54
|
+
|
|
55
|
+
3. REDISTRIBUTION
|
|
56
|
+
|
|
57
|
+
The license grants you a non-exclusive right to reproduce any new software programs (Applications) created using the Software. You cannot distribute the Software integrated into your Applications unless you are an "OEM License" holder. Any Devart's files remain Devart's exclusive property.
|
|
58
|
+
|
|
59
|
+
4. TRANSFER
|
|
60
|
+
|
|
61
|
+
You may not transfer the Software to any individual or entity without express written permission from Devart. In particular, you may not share copies of the Software under �Single License� and �Team License� with other co-developers without obtaining proper license of these copies for each individual.
|
|
62
|
+
|
|
63
|
+
5. TERMINATION
|
|
64
|
+
|
|
65
|
+
Devart may immediately terminate this Agreement without notice or judicial resolution in the event of any failure to comply with any provision of this Agreement. Upon such termination you must destroy the Software, all accompanying written materials, and all copies.
|
|
66
|
+
|
|
67
|
+
6. EVALUATION
|
|
68
|
+
|
|
69
|
+
Devart may provide evaluation ("Trial") versions of the Software. You may transfer or distribute Trial versions of the Software as an original installation package only. If the Software you have obtained is marked as a "Trial" version, you may install and use the Software for a period of up to 30 calendar days from the date of installation (the "Trial Period"), subject to the additional restriction that it is used solely for evaluation of the Software and not in conjunction with the development or deployment of any application in production. You may not use Applications developed using Trial versions of the Software for any commercial purposes. Upon expiration of the Trial Period, the Software must be uninstalled, all its copies and all accompanying written materials must be destroyed.
|
|
70
|
+
|
|
71
|
+
7. WARRANTY
|
|
72
|
+
|
|
73
|
+
The Software and documentation are provided "AS IS" without warranty of any kind. Devart makes no warranties, expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose or use.
|
|
74
|
+
|
|
75
|
+
8. SUBSCRIPTION AND SUPPORT
|
|
76
|
+
|
|
77
|
+
The Software is sold on a subscription basis. The Software subscription entitles you to download improvements and enhancement from Devart's web site as they become available, during the active subscription period. The initial subscription period is one year from the date of purchase of the license. The subscription is automatically activated upon purchase, and may be subsequently renewed by Devart, subject to receipt applicable fees. Licensed users of the Software with an active subscription may request technical assistance with using the Software over email from the Software development. Devart shall use its reasonable endeavors to answer queries raised, but does not guarantee that your queries or problems will be fixed or solved.
|
|
78
|
+
|
|
79
|
+
Devart reserves the right to cease offering and providing support for legacy Python and Database versions.
|
|
80
|
+
|
|
81
|
+
9. COPYRIGHT
|
|
82
|
+
|
|
83
|
+
The Software is confidential and proprietary copyrighted work of Devart and is protected by international copyright laws and treaty provisions. You may not remove the copyright notice from any copy of the Software or any copy of the written materials, accompanying the Software.
|
|
84
|
+
|
|
85
|
+
This Agreement contains the total agreement between the two parties and supersedes any other agreements, written, oral, expressed, or implied.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: devart-interbase-connector
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: New level of functionality and performance in data access via Python
|
|
5
|
+
Home-page: https://devart.com
|
|
6
|
+
Author: Devart
|
|
7
|
+
Author-email: support@devart.com
|
|
8
|
+
License: Other/Proprietary License
|
|
9
|
+
Project-URL: Homepage, http://devart.com/python/interbase
|
|
10
|
+
Project-URL: Download, http://devart.com/python/interbase/download.html
|
|
11
|
+
Project-URL: History, http://devart.com/python/interbase/revision_history.html
|
|
12
|
+
Project-URL: License, https://www.devart.com/python/eula.html
|
|
13
|
+
Project-URL: Documentation, http://docs.devart.com/python/interbase/overview.htm
|
|
14
|
+
Requires-Python: >=3.7
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
|
|
18
|
+
# Python Connector for InterBase #
|
|
19
|
+
|
|
20
|
+
Python Connector for InterBase is a connectivity solution for accessing
|
|
21
|
+
InterBase databases from Python applications. It fully implements the Python
|
|
22
|
+
DB API 2.0 specification. The connector is distributed as a wheel package
|
|
23
|
+
for Windows, macOS, and Linux.
|
|
24
|
+
|
|
25
|
+
Secure communication
|
|
26
|
+
|
|
27
|
+
The connector supports the Over-the-Wire (OTW) encryption feature of InterBase
|
|
28
|
+
to encrypt data during the transmission process.
|
|
29
|
+
|
|
30
|
+
## Using the connector ##
|
|
31
|
+
|
|
32
|
+
To retrieve data from a database:
|
|
33
|
+
|
|
34
|
+
Import the module.
|
|
35
|
+
```
|
|
36
|
+
import devart.interbase
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Connect to a database using the `connect()` module method and obtain a `connection` object.
|
|
40
|
+
```
|
|
41
|
+
my_connection = devart.interbase.connect(
|
|
42
|
+
Server="your_server",
|
|
43
|
+
Database="your_database",
|
|
44
|
+
UserId="your_username",
|
|
45
|
+
Password="your_password",
|
|
46
|
+
ClientLibrary="your_client_library"
|
|
47
|
+
)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Create a `cursor` object using the `cursor()` connection method.
|
|
51
|
+
```
|
|
52
|
+
my_cursor = my_connection.cursor()
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Execute the SQL statement using the `execute()` cursor method.
|
|
56
|
+
```
|
|
57
|
+
my_cursor.execute("SELECT * FROM employees")
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Retrieve the result set using one of the `fetch*()` cursor methods.
|
|
61
|
+
```
|
|
62
|
+
for row in my_cursor.fetchall():
|
|
63
|
+
print(row)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Ordering and activating the license ##
|
|
67
|
+
|
|
68
|
+
You can purchase a license for the connector on the ordering page:
|
|
69
|
+
https://www.devart.com/python/interbase/ordering.html
|
|
70
|
+
|
|
71
|
+
To activate the license, follow the instructions in the documentation:
|
|
72
|
+
https://docs.devart.com/python/interbase/activate-a-license.htm
|
|
73
|
+
|
|
74
|
+
## What's new ##
|
|
75
|
+
|
|
76
|
+
Python Connector for InterBase 1.2
|
|
77
|
+
|
|
78
|
+
- Added support for Python 3.13
|
|
79
|
+
- Added support for Association objects
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
devart/interbase/__init__.py,sha256=KGZqkK8YawnJPpsfu7tzUgkRcpmB9LWySEqFNqdZyXU,532
|
|
2
|
+
devart/interbase/interbase.cp313-win_amd64.pyd,sha256=ENwAy43ubkFL2AZ971VD9ZUgpctoyszCULligvhSRqA,949400
|
|
3
|
+
devart/interbase/interbase.pyi,sha256=siUkOQO84--DMMEy7dZvnuJzIkp7UehEJPErcZaZIU0,12770
|
|
4
|
+
devart/interbase/sqlalchemy/__init__.py,sha256=I3Q7UBomXr0X1jdwjKSh4agfgjDpz6obL1hSPmLrrnA,545
|
|
5
|
+
devart_interbase_connector-1.2.0.dist-info/LICENSE,sha256=3sjizf07RF-z3Lp3tnA-jy3rN103Ypw11NO9tFnRLtU,8559
|
|
6
|
+
devart_interbase_connector-1.2.0.dist-info/METADATA,sha256=fmffpVfAipU4y5TpSgCaGgVD-teGkxpZ5mATmdk6WqY,2438
|
|
7
|
+
devart_interbase_connector-1.2.0.dist-info/WHEEL,sha256=YY3whN5zaIpzxWCxMHGQtwoICDXEsGAh-bKATaD2hj4,101
|
|
8
|
+
devart_interbase_connector-1.2.0.dist-info/top_level.txt,sha256=h_mZcghGiX6pnc-Kb1EoAfIW2iHeDA0kJKfcLJMbq44,7
|
|
9
|
+
devart_interbase_connector-1.2.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
devart
|