Skip to main content

MS Access for SQLAlchemy

Project description

sqlalchemy-access

https://img.shields.io/pypi/dm/sqlalchemy-access.svg

A Microsoft Access dialect for SQLAlchemy.

The latest version of this dialect requires SQLAlchemy 2.0 or later. To work with earlier versions of SQLAlchemy, do:

pip install sqlalchemy-access<2.0.0

Objectives

This dialect is mainly intended to offer pandas users an easy way to save a DataFrame into an Access database via to_sql.

Pre-requisites

  • If you already have Microsoft Office (or standalone Microsoft Access) installed then install a version of Python with the same “bitness”. For example, if you have 32-bit Office then you should install 32-bit Python.

  • If you do not already have Microsoft Office (or standalone Microsoft Access) installed then install the version of the Microsoft Access Database Engine Redistributable with the same “bitness” as the version of Python you will be using. For example, if you will be running 64-bit Python then you should install the 64-bit version of the Access Database Engine.

Special case: If you will be running 32-bit Python and you will only be working with .mdb files then you can use the older 32-bit Microsoft Access Driver (*.mdb) that ships with Windows.

Co-requisites

This dialect requires SQLAlchemy, pyodbc, and pywin32. They are specified as requirements so pip will install them if they are not already in place. To install, just:

pip install sqlalchemy-access

Getting Started

Create an ODBC DSN (Data Source Name) that points to your Access database. (Tip: For best results, enable ExtendedAnsiSQL.) Then, in your Python app, you can connect to the database via:

from sqlalchemy import create_engine
engine = create_engine("access+pyodbc://@your_dsn")

For other ways of connecting see the Getting Connected page in the Wiki.

The SQLAlchemy Project

SQLAlchemy-access is part of the SQLAlchemy Project and adheres to the same standards and conventions as the core project.

Development / Bug reporting / Pull requests

Please refer to the SQLAlchemy Community Guide for guidelines on coding and participating in this project.

Code of Conduct

Above all, SQLAlchemy places great emphasis on polite, thoughtful, and constructive communication between users and developers. Please see our current Code of Conduct at Code of Conduct.

License

SQLAlchemy-access is distributed under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy-access-2.0.1.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

sqlalchemy_access-2.0.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy-access-2.0.1.tar.gz.

File metadata

  • Download URL: sqlalchemy-access-2.0.1.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for sqlalchemy-access-2.0.1.tar.gz
Algorithm Hash digest
SHA256 9507b6f2d4fd8f76c1a8f354576f6cbb831f250aaddc82713f9927cd08979e53
MD5 3ef0f49093b121863c11b50dcd0455d7
BLAKE2b-256 cc1370d32d654d03dddc2987b516e9c6976289ddde78c6c6589fa8c2022be349

See more details on using hashes here.

File details

Details for the file sqlalchemy_access-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_access-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05fff7fe038c1c30b9427bb8f26f3d71db54e213f9a8b9eff843934a0b388aff
MD5 34ad309573a2fd30c2c04bf91d7f10f4
BLAKE2b-256 5d7a07faec87589da89696957bee2c5294131a7439850b8c5d60b435f550b9a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page