Search code examples
pythonwindowsyamlpyyamllibyaml

yaml and compiling libYaml for python under windows


I'm wish to write&read data files ( big size 10mb+ ), I'm thinking about using using yaml for that. But, after some testing, seems that yaml is extremely slow in both write and read for file that size. Than I read about libYaml C++, that speed things up for using yaml.CLoader.

I'm using Windows7 64bit and I couldn't find any installer for libYaml, so I rolled out my sleeves and tried ( for the first time ever ) compiling the source (using VS2008). I mange to compile the output yaml.dll. but that's not the file type I need for python to import/use , I need *.pyd so I got stuck at this point and could use some help :)

Any idea how can I compile libYaml for win64bit and python? Or What's you're favorite writer/reader of big size dictionary-like files ( where speed and human-readability matters )


Solution

  • you can get a 64 bit windows installer here (not me):

    http://www.lfd.uci.edu/~gohlke/pythonlibs/