Skip to main content

MS Access for SQLAlchemy

Project description

A Microsoft Access dialect for SQLAlchemy.

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 and pyodbc. They are both 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.

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-1.0.3.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

sqlalchemy_access-1.0.3-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sqlalchemy-access-1.0.3.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for sqlalchemy-access-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e72ebe22d018fc531483efbd6a9ea9ef2049e9e7e4a3ad6995b2f058d51231df
MD5 96c56d8fa22590380d1e19daf98b5741
BLAKE2b-256 ff20701dcac8b5b1f734789895943f2b76f3881b716740560d008946870c17bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sqlalchemy_access-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

File hashes

Hashes for sqlalchemy_access-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f764b1d0fbb65c8efe5624a80684119bc73d395d8a00257057eadf8378d2ed70
MD5 925dca3807223a874d4a6d7a550ba1e3
BLAKE2b-256 1d00b7e9611a4b17aaa0a02459a716cb984db9d7046046b4ea56af1a482a6fb3

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