Python wrapper for Origin files loader library.
C++ Python Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
.gitignore
CMakeLists.txt
COPYING
FORMAT
OriginAnyParser.cpp
OriginAnyParser.h
OriginFile.cpp
OriginFile.h
OriginObj.cpp
OriginObj.h
OriginParser.cpp
OriginParser.h
README.md
__init__.py
config.h
config.h.in
endianfstream.hh
liborigin.pyx
objects.pxd
opj2dat.cpp
setup.py
tree.hh

README.md

python-liborigin2

This code is an (almost) standalone library for reading OriginLab project files.

It is based on the code at

AUTHORS: Stefan Gerlach, Ion Vasilief, Alex Kargovsky, Miquel Garriga

PYTHON WRAPPING: Tigran Saluev

Dependencies

To compile, liborigin (still) depends on

Note that the BOOST libraries are not needed at run time, neither are linked in the executable.

Compiling

liborigin uses CMake for the building process. CMake is available at http://www.cmake.org/ .

After installing CMake and the BOOST C++ library headers on your system, issue the following commands to build .a liborigin2 library:

$ mkdir build
$ cd build
$ cmake ../
$ make
$ doxygen Doxyfile
$ cd ..

(You'll surely need Doxygen installed to build documentation.)

To build Python module, just type

$ python setup.py build_ext --inplace

Python Usage

To get Origin project contents, simply use

import liborigin
file_contents = liborigin.parseOriginFile("my_awesome_project.opj")

(Rename the directory with liborigin.so to liborigin first.)

Features

  • supports the import of 3.5 to latest (2017) projects.