Skip to main content

polars_access_mdbtools

A library for reading tables from an Access database into Polars dataframes, using mdbtools

What is this?

A tiny, subprocess-based tool for reading a MS Access database (.mdb, .accdb, .rdb) as a Python Polars Dataframe.

Installation

To read the database, this package thinly wraps MDBTools.

If you are on macOS, install it via Homebrew:

$ brew install mdbtools

If you are on Debian, install it via apt:

$ sudo apt install mdbtools

If you are on Windows, it's a little tougher. Install mdbtools for Windows. Manually add to PATH.

  1. Download the mdb-tools files from Windows link above. Visit the Releases section, then download the part that says "Source Code (zip)".
  2. Extract that to somewhere like C:/bin/mdbtools-win/mdbtools-win-1.0.0.
  3. Follow these instructions to add that folder to your environment path (Method 1, but use the path to the mdbtools executable files).
  4. Restart your computer or just close and re-open the program you're running it from. You can test that it works by opening a terminal and running mdb-tables --help and see that it doesn't fail.

Finally, on all OS's:

$ pip install polars_access_mdbtools

Example Usage

import polars as pl
import polars_access_mdbtools as pl_access

file_path = "path_to_file.mdb"
print(pl_access.list_table_names(file_path))

df: pl.DataFrame = pl_access.read_table(file_path, table_name="your_table_name")

Acknowledgements

This code is based heavily on jbn's pandas_access library.

Contributing

Please Star this repo.

Please submit bug reports as GitHub Issues. Feel free to submit a PR to fix an issue!

Metadata

Release files for polars_access_mdbtools 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polars_access_mdbtools 0.1.3
File Size Uploaded Provenance Actions
polars_access_mdbtools-0.1.3.tar.gz 31.0 kB Without provenance Details for polars_access_mdbtools-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polars_access_mdbtools 0.1.3
File Interpreter ABI Platform Actions
polars_access_mdbtools-0.1.3-py3-none-any.whl Python 3 none any Details for polars_access_mdbtools-0.1.3-py3-none-any.whl

Total release size: 37.5 kB

Release files / polars_access_mdbtools-0.1.3.tar.gz

Download URL polars_access_mdbtools-0.1.3.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d799896ad6b2c124f805ed6289a355cc228097b9dca531f88da087dad3923459
BLAKE2b-256 checksum
How to use checksums
46ced8a09d57950343dad5fbeb6fb083cc4b587b433d42865fb482ff3adaedff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / polars_access_mdbtools-0.1.3-py3-none-any.whl

Download URL polars_access_mdbtools-0.1.3-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
790f4fd3212a4060ab51b6c9f7c464e0952e98dd69d86041fd41af7388230933
BLAKE2b-256 checksum
How to use checksums
1e3fbe22379e9e54fe916e242845b260873b06ce20a71235182588a142c61f5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for polars_access_mdbtools 0.1.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page