Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Alteryx .yxdb file in Python?

Is there a way to import .yxdb (Alteryx database files) into Pandas/Python, without using Alteryx as a go-between?

like image 427
user1566200 Avatar asked Mar 11 '23 03:03

user1566200


2 Answers

The short answer is no, not at this time.

Longer answer: the raw C++ for .yxdb support is available on github, as it was open sourced in order to adhere to R licensing when Alteryx hooked into R. See this link where Ned Harding explains it all in his blog. So basically, everything is there for someone to build Python support by utilizing the open source C++ ... but nobody has done so just yet.

like image 127
johnjps111 Avatar answered Mar 28 '23 06:03

johnjps111


Not python specific, a YXDB to SQLite DB command line based on the C++ library open sourced by Alteryx.

Limitations:

  • Not a Python module: use subprocess to invoke the command, then pandas/sqlite3 to read from the SQLite database file.
  • Read YXDB into SQLite only: write to YXDB not implemented (altough the alteryx library would allow it)

Disclaimer: I'm the author of the fork.

like image 27
Claude Cochet Avatar answered Mar 28 '23 06:03

Claude Cochet