Python Connector for xBase
Python Connector for xBase is a connectivity solution for accessing FoxPro, Visual FoxPro, dBase, and other databases in DBF file formats from Python applications. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows, macOS, and Linux.
Direct connection
The connector enables you to establish a direct connection to Visual FoxPro, dBase, and other xBase databases eliminating the need for the client library. A direct connection increases the speed of data transmission between a Python application and an xBase database and simplifies the deployment.
Local indexing
The connector offers an internal data indexing mechanism that is way more efficient than native DBF indexes for complex queries.
Retrieval of corrupted data
You can choose to ignore corrupted data and metadata errors in DBF tables. Corrupted data is skipped, while intact data is properly retrieved.
Connecting
To establish a connection to an xBase database, import the connector and use
the connect() method with your connection parameters.
Import the connector
First, import the xBase connector module:
import devart.xbase as xbase
Establish a connection
Call the connect() method and obtain a connection object.
my_connection = xbase.connect(
Database="path_to_db"
)
Replace Database with the actual path to your xBase database file.
Querying data
Once connected, you can execute SQL queries to retrieve data from your xBase files.
Execute a query
Create a cursor object using the cursor() connection method.
my_cursor = my_connection.cursor()
Execute a SQL query using the execute() cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve results using one of the fetch*() methods.
for row in my_cursor.fetchall():
print(row)
Parameterized queries
You can use parameterized queries to pass variable values to your SQL statements. This allows you to reuse the same query with different data and helps to prevent SQL injection attacks.
Pass parameters as a list or tuple to the
execute()
method:
query = "SELECT Id, Name FROM Contact WHERE Name = ? AND Email = ?"
params = ["Jordan Sanders", "jordansanders@example.com"]
my_cursor.execute(query, params)
results = my_cursor.fetchall()
for row in results:
print(row)
Each placeholder ? in the query is replaced with a corresponding value from the parameter list.
Ordering and activating the license
You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/xbase/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/xbase/activate-a-license.htm
What's new
Python Connector for xBase 1.4
- Added support for Python 3.15
- Added the Read Only connection mode
- Improved compatibility with the Codebase format
- Improved support for the AllFieldsAsNullable option with Visual FoxPro
Metadata
Release files for devart-xbase-connector 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 61.4 MB
Release files / devart_xbase_connector-1.4.0-cp315-cp315-win_amd64.whl
| Download URL | devart_xbase_connector-1.4.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
da91a7a26d977cefdcd75b83e5e880dd5785e7d9ff8b16ca3b9d011fa58d8317
|
|
BLAKE2b-256 checksum How to use checksums |
f94c821cf6478adaad40cef00047b1e72d5d21993e0619464cc3278033d1a534
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp315-cp315-win32.whl
| Download URL | devart_xbase_connector-1.4.0-cp315-cp315-win32.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.15 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
5b7a1c600883227a13135a4ca2ad915bad08c7cedacec3586b91891976d9debf
|
|
BLAKE2b-256 checksum How to use checksums |
a3609b1233f4a24f6654b54658ee8f54c3a392e0f999a4feb9a302c3ea378ad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl
| Download URL | devart_xbase_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.15 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
8499d2d41659ccd0cbcf17ad253bd8118db21623f2ae81334304e9f94b277a29
|
|
BLAKE2b-256 checksum How to use checksums |
b0eeb9c6d4d62193a7cc4509c52ff51e24b94f217e6731877af7b2437e95acf5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp315-cp315-macosx_10_15_universal2.whl
| Download URL | devart_xbase_connector-1.4.0-cp315-cp315-macosx_10_15_universal2.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.15 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
9052034074fedade81db3847db08d396db26af73c283353748c35d4b30b9b6e2
|
|
BLAKE2b-256 checksum How to use checksums |
0a976c789e63676f398a8806b38de1305a9e9f5a4fdfa97f89ae56ba4eef1665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp314-cp314-win_amd64.whl
| Download URL | devart_xbase_connector-1.4.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9a28d3225a33c5a46a52149d1793a73da7a6d17dd73f27aeae9fbff4b1c44053
|
|
BLAKE2b-256 checksum How to use checksums |
6105ff26898a9348ca63b491333e9ec1a71e66432eab4706cad8a10add8c1ea6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp314-cp314-win32.whl
| Download URL | devart_xbase_connector-1.4.0-cp314-cp314-win32.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
ec82e9cdc7f317e673e8e7291b6eb130ca1e01d10384fa640d31ad0075a8ffe5
|
|
BLAKE2b-256 checksum How to use checksums |
8bc0e662fe199e62a14c7e55ce7244042c8d568e312c371ac98c65fe1ffb7838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | devart_xbase_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
8fb070094b68537c4761786c77172731ca50bb0f7a383c3b604dab4a75bc930c
|
|
BLAKE2b-256 checksum How to use checksums |
ebdc85d4a6daa55650aba2edd80e6721d5831c083512fcd04c6f7c1624a28e98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp314-cp314-macosx_10_15_universal2.whl
| Download URL | devart_xbase_connector-1.4.0-cp314-cp314-macosx_10_15_universal2.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
9ab2a985459fe08bc4ef864bde6215f542e3c7bdf288109625f0ffeac448dff4
|
|
BLAKE2b-256 checksum How to use checksums |
a024d67c821e2cf41d2906688225189dae12d094d1fbb7faac25459bf6d10a97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp313-cp313-win_amd64.whl
| Download URL | devart_xbase_connector-1.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7ebed68367c6bfc628c6e9f52dcc631a9bceea6a4011a58456e5b8fb29710dd6
|
|
BLAKE2b-256 checksum How to use checksums |
bc61513979c2fe328aea375720fa462769e1e2c2f5b7bdd014ef19b08f8dfafa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp313-cp313-win32.whl
| Download URL | devart_xbase_connector-1.4.0-cp313-cp313-win32.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
5e62e2dfabb358df331fcc6ee35e4f5f2e10b1f1db80f882c255922519f91cd0
|
|
BLAKE2b-256 checksum How to use checksums |
9005bb28d5711b08a7ca8c53a1b6fb55210a06a71d5d5cfc59768abc00c618aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | devart_xbase_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
b2ee27e363b3955cf3784365d2c89adc08c256dece77f0c6b8d872a39b711057
|
|
BLAKE2b-256 checksum How to use checksums |
b49e79909e4191d3a231e122749f75affa6acc5b9cfcc300e00d3d8e0846c8f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp313-cp313-macosx_10_13_universal2.whl
| Download URL | devart_xbase_connector-1.4.0-cp313-cp313-macosx_10_13_universal2.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
23548798be4774fa2299e12ca00775499633ac464ec9640a1e769698c5abab9d
|
|
BLAKE2b-256 checksum How to use checksums |
f33fa1dae6264d29d8b7180caa436c17c006a0a802521ceecdad2df77dcd6eac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp312-cp312-win_amd64.whl
| Download URL | devart_xbase_connector-1.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4f77952b6ce998db3d0b79656901af09f3388454d46fa00273d515bc736e2077
|
|
BLAKE2b-256 checksum How to use checksums |
ba2fb3f2abbdc295e97ba15ebbb6ddc7b367ac642675d11e7fc433ea5fa70733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp312-cp312-win32.whl
| Download URL | devart_xbase_connector-1.4.0-cp312-cp312-win32.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
78af3577d7cba5b3b685a3b8201f1d317c41e78d3e8e08af66ba8fe54501dc56
|
|
BLAKE2b-256 checksum How to use checksums |
500c94f54c0d5d76e8da1af810cfca5754d7dc5acd19cc72b6fcad576eb9ff04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | devart_xbase_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
67b59860c7a210f6adf730c3fd505f8e5e2fd4a7d9da89df98b5e4a5c28f2f68
|
|
BLAKE2b-256 checksum How to use checksums |
9b8817e386b76977a58de1c707f1388b923ee61d58011f9866886746f28e282a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl
| Download URL | devart_xbase_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
d9e3b5d480de6bec71b2179de62d7244f4d4df6b4844efb68fcf96c5679e6ae9
|
|
BLAKE2b-256 checksum How to use checksums |
ebd53915f827ef318462dac6d91b37067ad575e96d49e291a8ce59cc77f1bc88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp311-cp311-win_amd64.whl
| Download URL | devart_xbase_connector-1.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e7da2addb5e7b47d44dc912711a0d96cb3f9cd9ed3e562c801fd8c58482d85fd
|
|
BLAKE2b-256 checksum How to use checksums |
6584434c496939be5369c8f31efd755a2da18f8a4a355cbae75cb53718d8818d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp311-cp311-win32.whl
| Download URL | devart_xbase_connector-1.4.0-cp311-cp311-win32.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
665eecb2a9ec7a3a71e98b4138a52347eec40c362509325355b5b0fee1ba81a2
|
|
BLAKE2b-256 checksum How to use checksums |
1c5fff0f040bce596c82e79e4b1c6f55c15e3f419c09f76653f4b2c89d0de7f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | devart_xbase_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
48a0f6c9a40b91e14829042d977641be82e9392c827f9b7bcf883ff2eceb4b1a
|
|
BLAKE2b-256 checksum How to use checksums |
30a57e86d9af31366ba81668fa99d155a6ae38a37e4a538690ed5b1e0070ed2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl
| Download URL | devart_xbase_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
c16651daab930b98d5d16edb7f6c95f3917c182285f8a7a4a34f3b179daa93d7
|
|
BLAKE2b-256 checksum How to use checksums |
5b43aea18e59d91042efe17bfa62d5e58f699b88ac58562f302ea6053991f69b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp310-cp310-win_amd64.whl
| Download URL | devart_xbase_connector-1.4.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
28a51c065e0f61745662e9e1473c7b6a17ae007e43c5b2c8dee97eceb5099231
|
|
BLAKE2b-256 checksum How to use checksums |
864e26a75d8bd0af57f09910f14958dbb3bbc5cd96a3ef4162a769d6e7000b64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp310-cp310-win32.whl
| Download URL | devart_xbase_connector-1.4.0-cp310-cp310-win32.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
6ec013ecc1fe37eb08fe986a53e6bb24351da46dba7b0331e3a26fd45e5f79d1
|
|
BLAKE2b-256 checksum How to use checksums |
53326b6e8c20388239e928f5393447814dc6ab31aad58e8d5221b974b9154fc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | devart_xbase_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
e84d445ee84a9a3cc4848d9f59b0689637632df61637b6396f8d7a537f027b31
|
|
BLAKE2b-256 checksum How to use checksums |
59d653b2fd81e152e19c5e32bec066cc509f2e7710f5d9737d3102d3a7aa1cbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_xbase_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl
| Download URL | devart_xbase_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
0af55930353eebe83164f6755d221ef65b69a524f0fc55f8ee37e0c009676d51
|
|
BLAKE2b-256 checksum How to use checksums |
1a72e6c635248273e5ac3733262e23a1d8434d9748fbc200a6b7a58d613961b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for devart-xbase-connector 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.