{ "info": { "author": "Charles H. Camp Jr.", "author_email": "charles.camp@nist.gov", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: X11 Applications :: Qt", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Database", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. -*- mode: rst -*-\n\n.. image:: https://travis-ci.org/CCampJr/LazyHDF5.svg?branch=master\n :alt: Travis branch\n :target: https://travis-ci.org/CCampJr/LazyHDF5\n\n.. image:: https://ci.appveyor.com/api/projects/status/evs3iim45m8vqcq7/branch/master?svg=true\n :alt: AppVeyor branch\n :target: https://ci.appveyor.com/project/CCampJr/LazyHDF5\n\n.. image:: https://img.shields.io/codecov/c/github/CCampJr/LazyHDF5/master.svg\n :alt: Codecov branch\n :target: https://codecov.io/gh/CCampJr/LazyHDF5\n\n.. image:: https://img.shields.io/pypi/pyversions/LazyHDF5.svg\n :alt: PyPI - Python Version\n :target: https://pypi.org/project/LazyHDF5/\n\n.. image:: https://img.shields.io/pypi/v/LazyHDF5.svg\n :alt: PyPI\n :target: https://pypi.org/project/LazyHDF5/\n\n.. image:: https://img.shields.io/badge/License-NIST%20Public%20Domain-green.svg\n :alt: NIST Public Domain\n :target: https://github.com/CCampJr/LazyHDF5/blob/master/LICENSE.md\n\nLazyHDF5: Python Macros for h5py... because I'm lazy\n===============================================================\n\nLazyHDF5 is a small package for interacting with HDF5 files. The h5py\nlibrary can do-it-all, but it's not necessarily easy to use and\noften requires many lines of code to do routine tasks. This package\nfacilitates easier use.\n\nAlso, an HDF5 file viewer written in PyQt5 (optional, not required\nfor installation) that displaces groups, datasets, and attributes.\n\n- Inspection\n\n - Get groups, datasets, file hierarchy, dataset attributes\n\n- Editing\n\n - Write/alter/re-write attributes\n - Repack datasets (coming soon)\n - Copy datasets and files\n\n- Basic file viewer\n\nDependencies\n------------\n\n**Note**: These are the developmental system specs. Older versions of certain\npackages may work.\n\n- python >= 3.4\n \n - Tested with 3.4.6, 3.5.4, 3.6.3\n\n- numpy (1.9.3)\n \n - Tested with 1.12.1, 1.13.1, 1.13.3\n\n- h5py (>=2.6.0)\n\nOptional Dependencies\n---------------------\n\nThe HDF file view is written in PyQt5; thus, it's necessary **if** you want to\nthat functionality. All of the other tools in this library are command-line.\n\n- PyQt5 (5.8)\n \n**Note**: PyQt5 only tested on Windows (via AppVeyor)\n\nKnown Issues\n------------\n\n\nInstallation\n------------\n\nUsing pip (hard install)\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code::\n\n # Only Python 3.* installed\n pip install LazyHDF5\n\n # If you have both Python 2.* and 3.* you may need\n pip3 install LazyHDF5\n\nUsing pip (soft install [can update with git])\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code::\n \n # Make new directory for LazyHDF5 and enter it\n # Clone from github\n git clone https://github.com/CCampJr/LazyHDF5\n\n # Only Python 3.* installed\n pip install -e .\n\n # If you have both Python 2.* and 3.* you may need instead\n pip3 install -e .\n\n # To update in the future\n git pull\n\nUsing setuptools\n~~~~~~~~~~~~~~~~\n\nYou will need to `download the repository `_\nor clone the repository with git:\n\n.. code::\n \n # Make new directory for LazyHDF5 and enter it\n # Clone from github\n git clone https://github.com/CCampJr/LazyHDF5\n\nPerform the install:\n\n.. code::\n\n python setup.py install\n\nUsage Examples\n---------------\n\n1. Getting a list of groups from an un-opened HDF5 file\n\n**Note**: when a filename is provided, the file is opened, queried, and\nthen closed.\n\n.. code:: python\n\n from lazy5.inspect import get_groups\n\n filename = 'SomeFile.h5'\n grp_list = get_groups(filename)\n\n print('Groups:')\n for grp in grp_list: \n print(grp)\n\n2. Getting list of datasets from an open HDF5 file\n\n**Note**: when a file-id is provided, the file is queried and\nthen left open.\n\n.. code:: python\n\n import h5py\n from lazy5.inspect import get_datasets\n\n filename = 'SomeFile.h5'\n fid = h5py.File(filename, 'r')\n\n dset_list = get_datasets(fid)\n\n print('Datasets:')\n for dset in dset_list: \n print(dset)\n\n fid.close()\n\n3. Getting the file hierarchy\n\n.. code:: python\n\n from lazy5.inspect import get_hierarchy\n\n filename = 'SomeFile.h5'\n\n hierarchy = get_hierarchy(filename)\n\n print('Hierarchy:')\n for k in hierarchy:\n print('{} : {}'.format(k, hierarchy[k]))\n \n4. Ordered dictionary of dataset attributes\n\n.. code:: python\n\n from lazy5.inspect import get_attrs_dset\n\n filename = 'SomeFile.h5'\n dsetname = '/Group/SomeDataset'\n\n attr_dict = get_attrs_dset(filename, dsetname)\n\n print('Dataset Attributes:')\n for k in attr_dict:\n print('{} : {}'.format(k, attr_dict[k]))\n \n5. PyQt5 HDF5 file viewer\n\n.. code::\n\n # From the command line \n python ./lazy5/ui/QtHdfLoad.py\n\n6. PyQt5 HDF5 file viewer (programmatically)\n\n.. code:: python\n\n import sys\n from PyQt5.QtWidgets import QApplication\n from lazy5.ui.QtHdfLoad import HdfLoad\n\n app = QApplication(sys.argv)\n\n result = HdfLoad.getFileDataSets(pth='.')\n print('Result: {}'.format(result))\n\n sys.exit()\n \n\nNONLICENSE\n----------\nThis software was developed by employees of the National Institute of Standards \nand Technology (NIST), an agency of the Federal Government. Pursuant to \n`title 17 United States Code Section 105 `_, \nworks of NIST employees are not subject to copyright protection in the United States and are \nconsidered to be in the public domain. Permission to freely use, copy, modify, \nand distribute this software and its documentation without fee is hereby granted, \nprovided that this notice and disclaimer of warranty appears in all copies.\n\nTHE SOFTWARE IS PROVIDED 'AS IS' WITHOUT ANY WARRANTY OF ANY KIND, EITHER \nEXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, ANY WARRANTY \nTHAT THE SOFTWARE WILL CONFORM TO SPECIFICATIONS, ANY IMPLIED WARRANTIES OF \nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND FREEDOM FROM INFRINGEMENT, \nAND ANY WARRANTY THAT THE DOCUMENTATION WILL CONFORM TO THE SOFTWARE, OR ANY \nWARRANTY THAT THE SOFTWARE WILL BE ERROR FREE. IN NO EVENT SHALL NIST BE LIABLE \nFOR ANY DAMAGES, INCLUDING, BUT NOT LIMITED TO, DIRECT, INDIRECT, SPECIAL OR \nCONSEQUENTIAL DAMAGES, ARISING OUT OF, RESULTING FROM, OR IN ANY WAY CONNECTED \nWITH THIS SOFTWARE, WHETHER OR NOT BASED UPON WARRANTY, CONTRACT, TORT, OR \nOTHERWISE, WHETHER OR NOT INJURY WAS SUSTAINED BY PERSONS OR PROPERTY OR \nOTHERWISE, AND WHETHER OR NOT LOSS WAS SUSTAINED FROM, OR AROSE OUT OF THE \nRESULTS OF, OR USE OF, THE SOFTWARE OR SERVICES PROVIDED HEREUNDER.\n\nContact\n-------\nCharles H Camp Jr: `charles.camp@nist.gov `_\n\nContributors\n-------------\nCharles H Camp Jr", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/CCampJr/LazyHDF5", "keywords": "", "license": "Public Domain", "maintainer": "", "maintainer_email": "", "name": "LazyHDF5", "package_url": "https://pypi.org/project/LazyHDF5/", "platform": "", "project_url": "https://pypi.org/project/LazyHDF5/", "project_urls": { "Homepage": "https://github.com/CCampJr/LazyHDF5" }, "release_url": "https://pypi.org/project/LazyHDF5/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "Python Macros for h5py... because I'm lazy", "version": "0.2.2" }, "last_serial": 5303432, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "12aae98d4ca79c5c4a6972cc2a6e11cb", "sha256": "695ae07328fe5eeb92b754e700ece4f38733ef3878fc64affe025e26694c8483" }, "downloads": -1, "filename": "LazyHDF5-0.1.0.tar.gz", "has_sig": false, "md5_digest": "12aae98d4ca79c5c4a6972cc2a6e11cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13900, "upload_time": "2018-05-04T16:39:20", "url": "https://files.pythonhosted.org/packages/9f/94/633cafa576f17814c26cbcd201e5a2ce0cb04419cb23f31157355429243e/LazyHDF5-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "fc27e56ee1ef10fef886bedb2ab85477", "sha256": "1ef74dafd89f775d666fe52e39780c48647978fdda3458caa4b3be9c0fab96ab" }, "downloads": -1, "filename": "LazyHDF5-0.2.0.tar.gz", "has_sig": false, "md5_digest": "fc27e56ee1ef10fef886bedb2ab85477", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21026, "upload_time": "2018-07-09T15:59:00", "url": "https://files.pythonhosted.org/packages/e6/38/f69990443dc705a6e9b23213c0531f419eaf2e01c69f6c28ab8a99e4c050/LazyHDF5-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "a9e8ff2e15f361be95464f686044801f", "sha256": "cfe4bd4694a2c499fba791584f73f35cddc8ae5c42dfd126a22e6e1a95378d21" }, "downloads": -1, "filename": "LazyHDF5-0.2.1.tar.gz", "has_sig": false, "md5_digest": "a9e8ff2e15f361be95464f686044801f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21541, "upload_time": "2019-05-20T18:19:43", "url": "https://files.pythonhosted.org/packages/52/08/47a7941d4ddc48bc3246385cf9f65a0d3fb2746c460ef74b5be165cdc794/LazyHDF5-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "30d2aec16ec6ce70dafc1a7248da9d67", "sha256": "a07544d1932233f547595f5e68d760c1c1da7437814c76315565887ab5a2cc71" }, "downloads": -1, "filename": "LazyHDF5-0.2.2.tar.gz", "has_sig": false, "md5_digest": "30d2aec16ec6ce70dafc1a7248da9d67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22082, "upload_time": "2019-05-22T16:12:34", "url": "https://files.pythonhosted.org/packages/ab/10/e09d33575f46a75e1d40aa497b59ccd773199cceb2912da7c418c7cf5070/LazyHDF5-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "30d2aec16ec6ce70dafc1a7248da9d67", "sha256": "a07544d1932233f547595f5e68d760c1c1da7437814c76315565887ab5a2cc71" }, "downloads": -1, "filename": "LazyHDF5-0.2.2.tar.gz", "has_sig": false, "md5_digest": "30d2aec16ec6ce70dafc1a7248da9d67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22082, "upload_time": "2019-05-22T16:12:34", "url": "https://files.pythonhosted.org/packages/ab/10/e09d33575f46a75e1d40aa497b59ccd773199cceb2912da7c418c7cf5070/LazyHDF5-0.2.2.tar.gz" } ] }