{ "info": { "author": "Peter Zagubisalo", "author_email": "peter.zagubisalo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools" ], "description": "# Feather Helper\n\nFeather Helper is a concise interface to cache and load numpy arrays and pandas dataframes. I use it with [Pandoctools/Knitty](https://github.com/kiwi0fruit/pandoctools).\n\n\n# Contents\n\n* [Feather Helper](#feather-helper)\n* [Contents](#contents)\n* [Install](#install)\n* [Usage example](#usage-example)\n\n\n# Install\n\nVia conda:\n\n```\nconda install -c defaults -c conda-forge featherhelper\n```\n\nVia pip:\n\n```\npip install featherhelper\n```\n\n\n## Usage example\n\n```py\nimport pandas as pd\nimport numpy as np\nimport featherhelper as fh\nfh.setdir(\"~/feather/mydoc\") # (optional)\n# fh.exc(1, 2) # force raise exceptions for names (optional)\n\n# %%\nfh.name(1) # can also be fh.name('id1'), default is 'default', 1 is the same as '1'\ntry:\n # raise fh.Err # (optional)\n df, A, B = fh.pull() # control length can be set: fh.pull(N)\nexcept fh.Err:\n # calculate:\n print('push') \n df = pd.DataFrame(np.random.random(16).reshape(4, 4))\n A = df.values\n B = np.random.random(16 * 3).reshape(4, 2, 2, 3)\n #\n fh.push(df, A, B)\n\nprint(df, '\\n', A, '\\n', B)\n```\n\nA shorter example:\n```py\nimport numpy as np\nimport featherhelper as fh\n# fh.exc()\n\n# %%\ntry:\n A = fh.pull()\nexcept fh.Err:\n A = np.random.random(16).reshape(4, 4)\n fh.push(A)\n```", "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/kiwi0fruit/featherhelper", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "featherhelper", "package_url": "https://pypi.org/project/featherhelper/", "platform": "", "project_url": "https://pypi.org/project/featherhelper/", "project_urls": { "Homepage": "https://github.com/kiwi0fruit/featherhelper" }, "release_url": "https://pypi.org/project/featherhelper/0.0.5/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Feather Helper is a concise interface to cache numpy arrays and pandas dataframes.", "version": "0.0.5" }, "last_serial": 4724986, "releases": { "0.0.4": [ { "comment_text": "", "digests": { "md5": "eb46c0addde9690e38c66677224c7bb0", "sha256": "4feb1cb78866ad62bf814816863ce3d3875b77404c0347a7e7bb6d25440b7353" }, "downloads": -1, "filename": "featherhelper-0.0.4.tar.gz", "has_sig": false, "md5_digest": "eb46c0addde9690e38c66677224c7bb0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19739, "upload_time": "2019-01-20T16:02:20", "url": "https://files.pythonhosted.org/packages/90/ae/ac841d7e95eec1973ed17420a32e5da05b93c0cc0a668faa764b57ed7855/featherhelper-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "0e0065fec57e1a69042f79904b0a4af2", "sha256": "aa6a38812a6ed7c2efec976c8c4788a177f5ac06779731dc458323bc60bb97b8" }, "downloads": -1, "filename": "featherhelper-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0e0065fec57e1a69042f79904b0a4af2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 20407, "upload_time": "2019-01-22T08:48:57", "url": "https://files.pythonhosted.org/packages/64/b1/39866af6ebe459efe302d043e00afc67683c233a3b28df0a29b06cf9cafb/featherhelper-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0e0065fec57e1a69042f79904b0a4af2", "sha256": "aa6a38812a6ed7c2efec976c8c4788a177f5ac06779731dc458323bc60bb97b8" }, "downloads": -1, "filename": "featherhelper-0.0.5.tar.gz", "has_sig": false, "md5_digest": "0e0065fec57e1a69042f79904b0a4af2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 20407, "upload_time": "2019-01-22T08:48:57", "url": "https://files.pythonhosted.org/packages/64/b1/39866af6ebe459efe302d043e00afc67683c233a3b28df0a29b06cf9cafb/featherhelper-0.0.5.tar.gz" } ] }