Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of RData files #210

Closed
PeterBailey opened this issue Dec 15, 2020 · 1 comment
Closed

Support of RData files #210

PeterBailey opened this issue Dec 15, 2020 · 1 comment

Comments

@PeterBailey
Copy link

Hi Simon,

Would be great if you could ingest RData files!

I could do this in a few lines of code but I am too lazy - sorry!

Peter

@simonw
Copy link
Owner

simonw commented Jan 2, 2021

It looks like https://github.com/ofajardo/pyreadr is a good library for this.

I won't add this to sqlite-utils because it's quite a bulky dependency for a relatively small feature.

Normally I'd write a rdata-to-sqlite tool similar to https://pypi.org/project/dbf-to-sqlite/ - but I'm actually working on a new plugin hook for Datasette that might be an even better fit for this. The idea is to allow Datasette plugins to define input formats - such as RData - which would then result in being able to import them on the command-line with datasette insert my.db file.rdata or by uploading a file through the Datasette web interface.

That work is happening over here: simonw/datasette#1160 - I'll close this issue in favour of a sometime-in-the-future datasette-import-rdata plugin.

@simonw simonw closed this as completed Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants