MS Access for SQLAlchemy
Project description
sqlalchemy-access
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, 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sqlalchemy-access-1.1.1.tar.gz
.
File metadata
- Download URL: sqlalchemy-access-1.1.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7e638887d4d7d059d3d581576fc1b6bb33eedb6eed020ad9e2ece66ba27c935 |
|
MD5 | 70af0be95c49d010d72c0f8f19c6603a |
|
BLAKE2b-256 | 568bce0eb1cb12636626226f261ebf371a6648719f63336a6f6a70c75d8bc5fc |
File details
Details for the file sqlalchemy_access-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: sqlalchemy_access-1.1.1-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 726eefd09384c1d23dab85801bfb48e03fb5bc599aa39d8334d97f2163d3fcc0 |
|
MD5 | a1ae723e00948542023c47b046547e62 |
|
BLAKE2b-256 | 53d2e85d240d01303a339bf00d3adfc53a9e242d874ae530c18d2ac1576e35c2 |