Why I created this package ?
- One by one insertion into Access DB, But it takes too much time to insert 100k records,
cursor.execute("INSERT STATEMENT")
cursor.commit()
- Bulk way insertion into Access DB and it is fast if you compare with above one, But even it is very slow from https://github.com/mkleehammer/pyodbc/issues/120
cursor.executemany("Bulk INSERT STATEMENT")
cursor.commit()
But think if you want to insert 1000k records into AccessDB, how much time you have to wait?
What the package will do ?
- Imports the data from text file to Access Database.
- Creating Access Database from pandas dataframe very quickly.
- Primary Key support.
- Can create many tables in Access Database
- Data Types support
How to Use:
- If you have pandas dataframe you can follow bellow example
import accessdb
# your dataframe
# df.to_accessdb(<DB_PATH>, <TABLE_NAME>)
df.to_accessdb(r'C:\Users\<user>\Desktop\test.accdb', 'SAMPLE')
- If you have text file you can follow bellow example
from accessdb import create_accessdb
# create_accessdb(<DB_PATH>, <TEXT_FILE_PATH>, <TABLE_NAME>)
create_accessdb(r'C:\Users\<user>\Desktop\test.accdb', r'C:\Users\<user>\Documents\test.text', 'SAMPLE')
Installation:
pip install accessdb
Note:
- It will create text file if you are using pandas dataframe to create Access Database, But the file will be deleted after completion of process.
- It supports only for Windows.
Metadata
Release files for accessdb 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| accessdb-0.0.1.tar.gz | 11.3 kB | Without provenance | Details for accessdb-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| accessdb-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for accessdb-0.0.1-py2.py3-none-any.whl |
Total release size: 27.2 kB
Release files / accessdb-0.0.1.tar.gz
| Download URL | accessdb-0.0.1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d72a1a264cee9dce9f0a2e0a0fafabe47436ce4dead57438d295c5005efcdfc
|
|
BLAKE2b-256 checksum How to use checksums |
0b6e4812bafb4c6a8a578e6dd533ea195da2e507f1235e8ea9e5c2dd9f03fc4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4
|
Release files / accessdb-0.0.1-py2.py3-none-any.whl
| Download URL | accessdb-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
bca16f424c79fcb7887e7793ae80434e55ab0cad2b16885af9febc5a3b4712f3
|
|
BLAKE2b-256 checksum How to use checksums |
9531bf118b8d2c47d92a99d9d94e615a7dec1c37d44f0bf83cd6c53bdc48aea9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4
|
Security for accessdb 0.0.1
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.