{ "info": { "author": "LUMC, Jeroen F.J. Laros", "author_email": "J.F.J.Laros@lumc.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Scientific/Engineering" ], "description": "# Just in time open files.\nThis package provides a way to delay opening files until the something is\nwritten to the file handle. This can be convenient when opening a large number\nof files of which most of them will not be frequently used. To deal with\nresource limits a queue is used from which, when full, the least frequent file\nis closed.\n\n## Installation\nVia [pypi](https://pypi.python.org/pypi/jit-open):\n\n pip install jit_open\n\nFrom source:\n\n git clone https://git.lumc.nl/j.f.j.laros/jit-open.git\n cd jit_open\n pip install .\n\n## Library\nThe library provides the `Handle` and `Queue` classes. Full documentation can\nbe found\n[here](https://git.lumc.nl/j.f.j.laros/jit-open).\n\n### Usage\nIn the following example, only the file `used.txt` is created.\n\n```python\n>>> from jit_open import Handle, Queue\n>>>\n>>> queue = Queue()\n>>> used = Handle(\"used.txt\", queue)\n>>> unused = Handle(\"unused.txt\", queue)\n>>>\n>>> used.write(\"line 1\\n\")\n>>> used.write(\"line 2\\n\")\n```\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://git.lumc.nl/j.f.j.laros/jit-open", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "jit-open", "package_url": "https://pypi.org/project/jit-open/", "platform": "any", "project_url": "https://pypi.org/project/jit-open/", "project_urls": { "Homepage": "https://git.lumc.nl/j.f.j.laros/jit-open" }, "release_url": "https://pypi.org/project/jit-open/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "jit-open: Just in time open files..", "version": "0.0.3" }, "last_serial": 2806805, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "884a0426f1909bec294921febad75162", "sha256": "544cfefee8d847a85b0805b0bba2060ed4449544d19a3d0901eeb59353f35df7" }, "downloads": -1, "filename": "jit-open-0.0.1.tar.gz", "has_sig": false, "md5_digest": "884a0426f1909bec294921febad75162", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2522, "upload_time": "2017-01-19T19:18:10", "url": "https://files.pythonhosted.org/packages/ec/e5/d33dd43c6178472dcd04175abc0215145d232837f1561a8513e339d103c1/jit-open-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "2467b1dd3af17a9bf664f85d61573a2e", "sha256": "f3d656816fa4fc3fb53d4751ff7d79e5862206e1a11638a0f42fe2dc1347b5e4" }, "downloads": -1, "filename": "jit-open-0.0.2.tar.gz", "has_sig": false, "md5_digest": "2467b1dd3af17a9bf664f85d61573a2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2545, "upload_time": "2017-02-02T17:50:24", "url": "https://files.pythonhosted.org/packages/24/4f/0ba26585d7fafe6111c2c6f84436f9bf59b76bd9d0db535216aa8c9861ec/jit-open-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "bbc1672d8f5dc306b2e4bdb7e56db08e", "sha256": "fb622ad0884653f490151aa84d42e613224627e313e19a59168198b41aaea431" }, "downloads": -1, "filename": "jit-open-0.0.3.tar.gz", "has_sig": false, "md5_digest": "bbc1672d8f5dc306b2e4bdb7e56db08e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3164, "upload_time": "2017-04-16T11:48:35", "url": "https://files.pythonhosted.org/packages/57/e3/021d274a674cc507f8debe31f0e4e006d48195ea738f7d4b30247aadd07a/jit-open-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bbc1672d8f5dc306b2e4bdb7e56db08e", "sha256": "fb622ad0884653f490151aa84d42e613224627e313e19a59168198b41aaea431" }, "downloads": -1, "filename": "jit-open-0.0.3.tar.gz", "has_sig": false, "md5_digest": "bbc1672d8f5dc306b2e4bdb7e56db08e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3164, "upload_time": "2017-04-16T11:48:35", "url": "https://files.pythonhosted.org/packages/57/e3/021d274a674cc507f8debe31f0e4e006d48195ea738f7d4b30247aadd07a/jit-open-0.0.3.tar.gz" } ] }