{ "info": { "author": "Nick Negretti", "author_email": "nick.negretti@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "[![Documentation Status](https://readthedocs.org/projects/readlif/badge/?version=latest)](https://readlif.readthedocs.io/en/latest/?badge=latest)\n[![Test Status](https://travis-ci.org/nimne/readlif.svg?branch=master)](https://travis-ci.org/nimne/readlif)\n\nreadlif README file\n===\nThe readlif package was developed to be a fast, python only, reader for Leica Lif files. This is tested in Python 3.6 and 3.7.\n\nThe basic premise is to read in an image from a Lif file into a Pillow object. The only additional requirement for this package is Pillow>=4.2.0.\n\nThis code is inspired by the [Open Microscopy Bio-Formats project](https://github.com/openmicroscopy/bioformats).\n\nExamples\n==\nEverything in this package is numbered starting from 0, which is not consistent with how things like ImageJ operate.\n\nThe basic object is the LifFile object.\n```python\nfrom readlif.reader import LifFile\nnew = LifFile('./path/to/file.lif')\n```\nThis object contains a few methods to access the images contained within the Lif file. All images, in a folder or not, will be accessible sequentially from the `LifFile` object.\n```python\n# Access a specific image directly\nimg_0 = new.get_image(0)\n# Create a list of images using a generator\nimg_list = [i for i in new.get_iter_image()]\n```\nThe resulting `LifImage` object has a few methods to access the specific two-dimensional frame contained in the image, where z is the z position, t is the timepoint, and c is the channel.\n```python\n# Access a specific item\nimg_0.get_frame(z=0, t=0, c=0)\n# Iterate over different items\nframe_list = [i for i in img_0.get_iter_t(c=0, z=0)]\nz_list = [i for i in img_0.get_iter_z(t=0, c=0)]\nchannel_list = [i for i in img_0.get_iter_c(t=0, z=0)]\n\n```\nThe two dimensional images returned by these methods are Pillow objects, so the applicable methods (`.show()`) will work with them.\n\nThis has only been tested on Lif files that were generated with Leica LAS X and Leica LAS AF. There will likely be files that will not work with this software. In that case, please open an issue on github!\n\nAuto-generated documentation is available [here](https://readlif.readthedocs.io/en/latest/).\n\nChangelog\n======\n0.2.0 - `LifImage.scale` now returns px/nm conversions\n\n0.1.1 - Style changes\n\n0.1.0 - Initial release", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nimne/readlif", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "readlif", "package_url": "https://pypi.org/project/readlif/", "platform": "", "project_url": "https://pypi.org/project/readlif/", "project_urls": { "Homepage": "https://github.com/nimne/readlif" }, "release_url": "https://pypi.org/project/readlif/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Fast Leica LIF file reader written in python", "version": "0.2.0" }, "last_serial": 5705042, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "f15801bdc5575008731e260513e1239b", "sha256": "11406beb7d11b745905ed697a49f0e0f5d3c8b37822ff3e5519ef919fb045b19" }, "downloads": -1, "filename": "readlif-0.1.0-py3.7.egg", "has_sig": false, "md5_digest": "f15801bdc5575008731e260513e1239b", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 13412, "upload_time": "2019-08-20T18:56:01", "url": "https://files.pythonhosted.org/packages/70/12/62036c6e67cd0861f6d192513b0530a956fff7d313efa2350f34b42e8808/readlif-0.1.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "bd0c9152b75cbf709f0016b37e4cfeac", "sha256": "9da47163d8a1011f697516050124a27f5b02d4d1ae286d78bed5b7d57c539960" }, "downloads": -1, "filename": "readlif-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "bd0c9152b75cbf709f0016b37e4cfeac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18464, "upload_time": "2019-05-03T22:27:44", "url": "https://files.pythonhosted.org/packages/05/08/948c5e1eb1a81b238f9bb918cc22ba1e971cc0919c111e4f8de594dbc8ca/readlif-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "29fb4e7a1fc3ea2fbc745dadff0fdca1", "sha256": "7117a34fa30ee9abe44eeac4f53b2fb119143fb2296ea1d03101173f51fc45a4" }, "downloads": -1, "filename": "readlif-0.1.0.tar.gz", "has_sig": false, "md5_digest": "29fb4e7a1fc3ea2fbc745dadff0fdca1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5494, "upload_time": "2019-05-03T22:27:46", "url": "https://files.pythonhosted.org/packages/1d/fd/f7468b34a8dbd769dd013b8036f09ddf9e10fe49503d2b9ede58ec28a47e/readlif-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f258d05619e57d39a023898b1641eb5c", "sha256": "1fef6a6e66bbbcd9e21b1ac88de6eb6b672bfde17fecc71502f2207a4b2e6e0a" }, "downloads": -1, "filename": "readlif-0.1.1-py3.7.egg", "has_sig": false, "md5_digest": "f258d05619e57d39a023898b1641eb5c", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 13260, "upload_time": "2019-08-20T18:56:05", "url": "https://files.pythonhosted.org/packages/63/13/e7ffce36aff879e68cb907b2e1e387f409bcc868cfbe4d34b5d11ab2a1c7/readlif-0.1.1-py3.7.egg" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "549af02912a997c14c6931f5e5ae8e8d", "sha256": "73b579b5b16b8b30a17e5c3cf209e2021337c0d734d349e1dbbc23ebfca59d4b" }, "downloads": -1, "filename": "readlif-0.2.0-py3.7.egg", "has_sig": false, "md5_digest": "549af02912a997c14c6931f5e5ae8e8d", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 13357, "upload_time": "2019-08-20T18:56:06", "url": "https://files.pythonhosted.org/packages/06/b6/af762f4607ddc6cac25d41857bfa13ac8c72afa8da93bd96f6f457b16975/readlif-0.2.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "dc14c2d958421fdf9fa21826c10f1c3f", "sha256": "74d997ce711f21d595be07cd6c39300efd284c54f7be303b49483ef7d98b4905" }, "downloads": -1, "filename": "readlif-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "dc14c2d958421fdf9fa21826c10f1c3f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20209, "upload_time": "2019-08-20T18:56:25", "url": "https://files.pythonhosted.org/packages/ee/06/31288e77477682f764408f143c8473a80c77aea07a7d465c243fd090b984/readlif-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2508aa0ed18c09553ca00e51cf27a446", "sha256": "41cb1eb4d7c362d9f4e42ef7a6fc55b1881f9e9c78d4e2e9d0e599d18cf14ffd" }, "downloads": -1, "filename": "readlif-0.2.0.tar.gz", "has_sig": false, "md5_digest": "2508aa0ed18c09553ca00e51cf27a446", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5910, "upload_time": "2019-08-20T18:56:30", "url": "https://files.pythonhosted.org/packages/6a/fe/e3a0f95b7973f8b6fa5405e62758774c9af6549e04c5138120fd865c56ac/readlif-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "549af02912a997c14c6931f5e5ae8e8d", "sha256": "73b579b5b16b8b30a17e5c3cf209e2021337c0d734d349e1dbbc23ebfca59d4b" }, "downloads": -1, "filename": "readlif-0.2.0-py3.7.egg", "has_sig": false, "md5_digest": "549af02912a997c14c6931f5e5ae8e8d", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 13357, "upload_time": "2019-08-20T18:56:06", "url": "https://files.pythonhosted.org/packages/06/b6/af762f4607ddc6cac25d41857bfa13ac8c72afa8da93bd96f6f457b16975/readlif-0.2.0-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "dc14c2d958421fdf9fa21826c10f1c3f", "sha256": "74d997ce711f21d595be07cd6c39300efd284c54f7be303b49483ef7d98b4905" }, "downloads": -1, "filename": "readlif-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "dc14c2d958421fdf9fa21826c10f1c3f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20209, "upload_time": "2019-08-20T18:56:25", "url": "https://files.pythonhosted.org/packages/ee/06/31288e77477682f764408f143c8473a80c77aea07a7d465c243fd090b984/readlif-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2508aa0ed18c09553ca00e51cf27a446", "sha256": "41cb1eb4d7c362d9f4e42ef7a6fc55b1881f9e9c78d4e2e9d0e599d18cf14ffd" }, "downloads": -1, "filename": "readlif-0.2.0.tar.gz", "has_sig": false, "md5_digest": "2508aa0ed18c09553ca00e51cf27a446", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5910, "upload_time": "2019-08-20T18:56:30", "url": "https://files.pythonhosted.org/packages/6a/fe/e3a0f95b7973f8b6fa5405e62758774c9af6549e04c5138120fd865c56ac/readlif-0.2.0.tar.gz" } ] }