The package rdata offers a lightweight way to import R datasets/objects stored in the “.rda” and “.rds” formats into Python. Its main advantages are:
It is a pure Python implementation, with no dependencies on the R language or related libraries. Thus, it can be used anywhere where Python is supported, including the web using Pyodide .
It attempt to support all R objects that can be meaningfully translated. As opposed to other solutions, you are no limited to import dataframes or data with a particular structure.