Import sas7bdat files to sqlite3 dbase
Project description
sas2sqlite3
Import sas7bdat files to sqlite3 dbase. Uses the sas7bdat SAS dataset file parser.
Command-line and python library interface with minimal requirements.
CLI usage
Create and import data into some_dataset
table in some_sqlite.db
sas2sqlite some_dataset.sas7bdat some_sqlite.db
Import data into existing some_table
table in some_sqlite.db
sas2sqlite some_dataset.sas7bdat some_sqlite.db --table some_table --no-create-table
Import data storing dates and datetimes as Julian days, and times as HH:MM
:
sas2sqlite some_dataset.sas7bdat some_sqlite.db \
--time "%H:%M" --date julian --datetime julian
Install
Requires python 3.6+ and pip.
pip install sas2sqlite3
Note: the package has a '3' at the end. The executable does not.
Other tools
- sas2db: Import SAS dataset and XPT files to any database supported by SQL Alchemy. Uses pandas SAS parser under the hood.
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
sas2sqlite3-0.0.2.tar.gz
(6.3 kB
view details)
Built Distribution
File details
Details for the file sas2sqlite3-0.0.2.tar.gz
.
File metadata
- Download URL: sas2sqlite3-0.0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e3c75c94b208840d3048b048137be38f465976563c306579e17a32c16f36cd |
|
MD5 | 1797c91ce884ad040a28be57863237f5 |
|
BLAKE2b-256 | 96407235219b6cc8ad4ac32c27c6c8da298564fb17313b6b08ef85576be31e43 |
File details
Details for the file sas2sqlite3-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: sas2sqlite3-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5aac96f26f052e41b73e2358a06e926ff73ceddc0dc8a3fc9d963c6de10b8fe |
|
MD5 | 45af0cdace71b19414c3db2864102f2a |
|
BLAKE2b-256 | 50f720d409d71650c2c09d2f5a00415134215cc2f703c834fc3a410a0e920527 |