{ "info": { "author": "Corentin Cadiou", "author_email": "contact@cphyc.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Cython", "Programming Language :: Python", "Topic :: Utilities" ], "description": "# Cython fortran-file\n\nThis package is a fast and easy reader for record-based binary format, as written by Fortran.\n\n## Installation\n\nThis packages requires a compiler to be installed on you system. If you're using Linux or MacOSX you should be fine. If you're using Windows, please get in touch with me or open an issue.\n```\npip install cython_fortran_file\n```\nThat's all!\n\n## Using it\nHere is a simple demonstration:\n\n```python\nfrom cython_fortran_file import FortranFile as FF\n\nf = FF('/path/to/my/fortran/file.dat')\n\n# Skip 5 records\nf.skip(5)\n\n# Read one record (an array of `double`)\ndata = f.read_vector('d')\nassert data.dtype == np.float64\n\n# Read one record (an array of signed `int`)\ndata = f.read_vector('i')\nassert data.dtype == np.int32\n\n# Read one *single* int. This will fail if there is more to read!\nv = f.read_int()\n\n# f _looks_ like a regular file descriptor\nf.tell()\nf.seek(0)\nf.close()\n```\n\n## Data types\n\nThe argument of `read_vector` follows the convention of the python struct package (C convention). See https://docs.python.org/3.5/library/struct.html#format-characters for the full list. Here is a shorter version:\n\nArgument | Fortran type | C type | Numpy dtype\n---------|--------------|------------|--------------\n`d` | `real(8)` | `double` | `np.float64`\n`f` | `real(4)` | `float` | `np.float32`\n`i` | `integer` | `int` | `np.int32`\n`l` | `integer(8)` | `long` | `np.int64`", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cphyc/cython-fortran-file", "keywords": "", "license": "See http://www.python.org/3.6/license.html", "maintainer": "", "maintainer_email": "", "name": "cython-fortran-file", "package_url": "https://pypi.org/project/cython-fortran-file/", "platform": "", "project_url": "https://pypi.org/project/cython-fortran-file/", "project_urls": { "Homepage": "https://github.com/cphyc/cython-fortran-file" }, "release_url": "https://pypi.org/project/cython-fortran-file/0.0.8/", "requires_dist": null, "requires_python": "", "summary": "An efficient package to read fortran-record files in Python.", "version": "0.0.8" }, "last_serial": 3841084, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "9f7eea6b98bc930c4ef26959df3e5ce3", "sha256": "54f3f704b874f3f9f3dae2ff825f9101429d50d94bde03672f8990be8f7836a6" }, "downloads": -1, "filename": "cython_fortran_file-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9f7eea6b98bc930c4ef26959df3e5ce3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 55574, "upload_time": "2018-05-05T14:23:59", "url": "https://files.pythonhosted.org/packages/af/01/53cea7a2f123e0baeeab68954af3e39c79e742fb5ab082faedfebd491b96/cython_fortran_file-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "438acd446c4a2bd5b7d2d6fb75582758", "sha256": "98225a855d378f25fe0e788b5d4ac97629cbce4e6bafd04700d8c7c80b4a9736" }, "downloads": -1, "filename": "cython_fortran_file-0.0.2.tar.gz", "has_sig": false, "md5_digest": "438acd446c4a2bd5b7d2d6fb75582758", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 56269, "upload_time": "2018-05-05T14:41:04", "url": "https://files.pythonhosted.org/packages/da/c1/f67c9910a8eac937353a89599e71caafa46348121365476e5a31ed245e64/cython_fortran_file-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "30527ee69287442b8fdf9f09dc348eb0", "sha256": "b042ffb8d5f00736a4e9f0b80e527b23d9cf81ad7bf76d74513ff2d091b3fdea" }, "downloads": -1, "filename": "cython_fortran_file-0.0.3.tar.gz", "has_sig": false, "md5_digest": "30527ee69287442b8fdf9f09dc348eb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 57007, "upload_time": "2018-05-05T14:43:43", "url": "https://files.pythonhosted.org/packages/b2/75/b420f958be90bf9fe9aa85fbdae068f6b6463ba290dbe6df728a6787bc0c/cython_fortran_file-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "4fc78abc111b54ca487b8555c32034fa", "sha256": "141ee3e3b50de626a78d360591ca2c2e145db3c5588afe307b1a99564117b1b2" }, "downloads": -1, "filename": "cython_fortran_file-0.0.4.tar.gz", "has_sig": false, "md5_digest": "4fc78abc111b54ca487b8555c32034fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 57007, "upload_time": "2018-05-05T14:44:58", "url": "https://files.pythonhosted.org/packages/4c/30/6e24cece2f08f50c401c2a6eb8666fceeff97910dc1a5b47792700040a5e/cython_fortran_file-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "135004dd2e4dfa0cd7b644d9959c8d60", "sha256": "5683f3bdd2a1c741bcc72b0009e6d3e3352255c6ec517945da36bb7e2d8757ca" }, "downloads": -1, "filename": "cython_fortran_file-0.0.5.tar.gz", "has_sig": false, "md5_digest": "135004dd2e4dfa0cd7b644d9959c8d60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 57733, "upload_time": "2018-05-05T14:49:23", "url": "https://files.pythonhosted.org/packages/16/a0/65cd43935e61f740a2de5d6ecb8ffb6c230c28c93b5b5417cec208975220/cython_fortran_file-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "8fbc1183db526cd9ed316f65794cd5e5", "sha256": "bb6a341f61e43520b9ef2472e23e433d980f50bf03249a5221442bf3c3792812" }, "downloads": -1, "filename": "cython_fortran_file-0.0.6.tar.gz", "has_sig": false, "md5_digest": "8fbc1183db526cd9ed316f65794cd5e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60082, "upload_time": "2018-05-07T10:01:52", "url": "https://files.pythonhosted.org/packages/18/6b/885733064278b8aeacb223a56dc567f36967b12aa4e3e779e056ffa190d7/cython_fortran_file-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "e58d81755d3d7afe9cd484b2f002bb81", "sha256": "8e783bbc7c871f349357c8bcf99b78665283f0530da17de90ccc6f41e8be0f2d" }, "downloads": -1, "filename": "cython_fortran_file-0.0.7.tar.gz", "has_sig": false, "md5_digest": "e58d81755d3d7afe9cd484b2f002bb81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 60050, "upload_time": "2018-05-07T13:28:12", "url": "https://files.pythonhosted.org/packages/92/92/9e39dda37d0b73c03c65507e7cb532d11cbff454baae2f63927b573a5f41/cython_fortran_file-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "90613eff1aae208e424620e1133924b2", "sha256": "df82253c6bd83d94c7ae98675f141f7be294cd54b67697970f33d585a7e03057" }, "downloads": -1, "filename": "cython_fortran_file-0.0.8.tar.gz", "has_sig": false, "md5_digest": "90613eff1aae208e424620e1133924b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 62549, "upload_time": "2018-05-07T14:12:11", "url": "https://files.pythonhosted.org/packages/fb/43/28e440ae699c5459ad63829ab29eac78e088d042ff97e051d13376479d7e/cython_fortran_file-0.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "90613eff1aae208e424620e1133924b2", "sha256": "df82253c6bd83d94c7ae98675f141f7be294cd54b67697970f33d585a7e03057" }, "downloads": -1, "filename": "cython_fortran_file-0.0.8.tar.gz", "has_sig": false, "md5_digest": "90613eff1aae208e424620e1133924b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 62549, "upload_time": "2018-05-07T14:12:11", "url": "https://files.pythonhosted.org/packages/fb/43/28e440ae699c5459ad63829ab29eac78e088d042ff97e051d13376479d7e/cython_fortran_file-0.0.8.tar.gz" } ] }