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. 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
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.0.0.tar.gz
.
File metadata
- Download URL: sqlalchemy-access-1.0.0.tar.gz
- Upload date:
- Size: 10.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b731970009b310fe2b138f32885aee3ab392b440947ca81472da51aa2fcecf77 |
|
MD5 | ea396f5ae7b6015d661c963fa9b28d14 |
|
BLAKE2b-256 | 64db3208b113d33279f614976d0d0024be29b4e7ab56e93efb3a3f6b26f6aa93 |
File details
Details for the file sqlalchemy_access-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: sqlalchemy_access-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad6a21026cd5ce5249e1334611b1e1728aa890e924daca97e2347f30bbbf0582 |
|
MD5 | e49895c0e4c325a72838427cc8be8c96 |
|
BLAKE2b-256 | f4d43db9a0c6f4df47574ea74273e12b28260d9c862d579abd6838e39f00f7cd |