{"id":434,"date":"2015-03-07T12:38:24","date_gmt":"2015-03-07T20:38:24","guid":{"rendered":"http:\/\/www.isam.ca\/?p=434"},"modified":"2017-11-16T09:44:55","modified_gmt":"2017-11-16T17:44:55","slug":"python-and-d-isam","status":"publish","type":"post","link":"https:\/\/www.isam.ca\/?p=434","title":{"rendered":"Python and D-ISAM"},"content":{"rendered":"<p>D-ISAM is fully supported in Python by way of the <code>ctypes<\/code> library.<\/p>\n<p>This is documented at <a href=\"http:\/\/python.org\" target=\"_blank\">The Python Software Foundation<\/a> as <a href=\"http:\/\/docs.python.org\/2\/library\/ctypes.html\" target=\"_blank\">A foreign function library for Python<\/a>.<\/p>\n<p>D-ISAM is easily imported as a shared library (or apple dylib, or windows dll) as follows:<\/p>\n<pre>from ctypes import CDLL\r\nd7 = CDLL( \"libdisam72.so\" )<\/pre>\n<p>In addition to importing the library, you will also (most probably) wish to add the standard ISAM constants, and at least an instance of the ISAM key description structure, and deploy the results as a module.<\/p>\n<p>An example module is available <a title=\"D-ISAM python module\" href=\"http:\/\/www.isam.ca\/?p=437\">here<\/a>.<\/p>\n<p>A simple demonstration is available <a href=\"http:\/\/www.isam.ca\/?p=442\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>D-ISAM is fully supported in Python by way of the ctypes library. This is documented at The Python Software Foundation as A foreign function library for Python. D-ISAM is easily imported as a shared library (or apple dylib, or windows dll) as follows: from ctypes import CDLL d7 = CDLL( &#8220;libdisam72.so&#8221; ) In addition to [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[8,7],"_links":{"self":[{"href":"https:\/\/www.isam.ca\/index.php?rest_route=\/wp\/v2\/posts\/434"}],"collection":[{"href":"https:\/\/www.isam.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.isam.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.isam.ca\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.isam.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=434"}],"version-history":[{"count":19,"href":"https:\/\/www.isam.ca\/index.php?rest_route=\/wp\/v2\/posts\/434\/revisions"}],"predecessor-version":[{"id":817,"href":"https:\/\/www.isam.ca\/index.php?rest_route=\/wp\/v2\/posts\/434\/revisions\/817"}],"wp:attachment":[{"href":"https:\/\/www.isam.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.isam.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.isam.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}