{"repo":"dylanmeysmans/duckdb-read-stat","free":true,"listed":false,"github":"https://github.com/dylanmeysmans/duckdb-read-stat","clone":"git clone https://github.com/dylanmeysmans/duckdb-read-stat.git","description":"Read data sets from SAS, Stata, and SPSS from DuckDB with ReadStat","language":"C","stars":35,"topics":["duckdb","haven","pyreadstat","readstat","sas","spss","stata"],"license":"MIT","category":"data-pipelines","readme_excerpt":"The DuckDB ReadStat Extension Use this extension to read data sets from SAS, Stata, and SPSS from DuckDB with ReadStat. Installation & Loading Installation is simple through the DuckDB Community Extension repository, just type in a DuckDB instance near you. The read stat Function The extension adds a single DuckDB table function, read stat , which you use as follows: If the file extension is not .sas7bdat , .xpt , .sav , .zsav , .por , or .dta , use the read stat function for the right file type with the format parameter: Override the file character encoding inferred from the file with an iconv encoding name, see : If your files have the proper file extensions and you do not need to override their character encodings, a replacement scan is also available: Contributing Cloning Clone the repo with submodules Dependencies In principle, compiling this template only requires a C/C++ toolchain. However, this template relies on some additional tooling to make life a little easier and to be able to share CI/CD infrastructure with extension templates for other languages: - Python3 - Python3-venv - Make - CMake - Git - (Optional) Ninja + ccache - vcpkg Installing these dependencies will vary per platform: - For Linux, these come generally pre-installed or are available through the distro-specific package manager. - For MacOS, homebrew. - For Windows, chocolatey. Building After installing the dependencies, building is a two-step process. Firstly run: This will ensure a Python venv is se","default_branch":null,"files":null,"tree":[],"storefront":"/r/dylanmeysmans","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dylanmeysmans/duckdb-read-stat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}