{ "info": { "author": "Sebastian Thiel", "author_email": "byronimo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: OS Independent", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "## Motivation\n\nWhen reading from many possibly large files in a fashion similar to random access, it is usually the fastest and most efficient to use memory maps.\n\nAlthough memory maps have many advantages, they represent a very limited system resource as every map uses one file descriptor, whose amount is limited per process. On 32 bit systems, the amount of memory you can have mapped at a time is naturally limited to theoretical 4GB of memory, which may not be enough for some applications.\n\n\n## Limitations\n\n* **System resources (file-handles) are likely to be leaked!** This is due to the library authors reliance on a deterministic `__del__()` destructor.\n* The memory access is read-only by design.\n\n\n## Overview\n\n[![Build Status](https://travis-ci.org/gitpython-developers/smmap.svg?branch=master)](https://travis-ci.org/gitpython-developers/smmap)\n[![Build status](https://ci.appveyor.com/api/projects/status/kuws846av5lvmugo?svg=true&passingText=windows%20OK&failingText=windows%20failed)](https://ci.appveyor.com/project/Byron/smmap)\n[![Coverage Status](https://coveralls.io/repos/gitpython-developers/smmap/badge.png)](https://coveralls.io/r/gitpython-developers/smmap)\n[![Issue Stats](http://www.issuestats.com/github/gitpython-developers/smmap/badge/pr)](http://www.issuestats.com/github/gitpython-developers/smmap)\n[![Issue Stats](http://www.issuestats.com/github/gitpython-developers/smmap/badge/issue)](http://www.issuestats.com/github/gitpython-developers/smmap)\n\nSmmap wraps an interface around mmap and tracks the mapped files as well as the amount of clients who use it. If the system runs out of resources, or if a memory limit is reached, it will automatically unload unused maps to allow continued operation.\n\nTo allow processing large files even on 32 bit systems, it allows only portions of the file to be mapped. Once the user reads beyond the mapped region, smmap will automatically map the next required region, unloading unused regions using a LRU algorithm.\n\nThe interface also works around the missing offset parameter in python implementations up to python 2.5.\n\nAlthough the library can be used most efficiently with its native interface, a Buffer implementation is provided to hide these details behind a simple string-like interface.\n\nFor performance critical 64 bit applications, a simplified version of memory mapping is provided which always maps the whole file, but still provides the benefit of unloading unused mappings on demand.\n\n\n\n## Prerequisites\n\n* Python 2.7 or 3.4+\n* OSX, Windows or Linux\n\nThe package was tested on all of the previously mentioned configurations.\n\n## Installing smmap\n\n[![Documentation Status](https://readthedocs.org/projects/smmap/badge/?version=latest)](https://readthedocs.org/projects/smmap/?badge=latest)\n\nIts easiest to install smmap using the [pip](http://www.pip-installer.org/en/latest) program:\n\n```bash\n$ pip install smmap\n```\n\nAs the command will install smmap in your respective python distribution, you will most likely need root permissions to authorize the required changes.\n\nIf you have downloaded the source archive, the package can be installed by running the `setup.py` script:\n\n```bash\n$ python setup.py install\n```\n\nIt is advised to have a look at the **Usage Guide** for a brief introduction on the different database implementations.\n\n\n\n## Homepage and Links\n\nThe project is home on github at https://github.com/gitpython-developers/smmap .\n\nThe latest source can be cloned from github as well:\n\n* git://github.com/gitpython-developers/smmap.git\n\n\nFor support, please use the git-python mailing list:\n\n* http://groups.google.com/group/git-python\n\n\nIssues can be filed on github:\n\n* https://github.com/gitpython-developers/smmap/issues\n\n\n## License Information\n\n*smmap* is licensed under the New BSD License.\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gitpython-developers/smmap", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "smmap2", "package_url": "https://pypi.org/project/smmap2/", "platform": "any", "project_url": "https://pypi.org/project/smmap2/", "project_urls": { "Homepage": "https://github.com/gitpython-developers/smmap" }, "release_url": "https://pypi.org/project/smmap2/2.0.5/", "requires_dist": null, "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "summary": "A pure Python implementation of a sliding window memory map manager", "version": "2.0.5" }, "last_serial": 4371591, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "101d34bdd1668ab82afeb36044f9028d", "sha256": "68bf9cd487e4c9cc97a1fff97dc5ec7477ca0c5d7b79a29b00760c8fefdcf107" }, "downloads": -1, "filename": "smmap2-0.9.0.tar.gz", "has_sig": false, "md5_digest": "101d34bdd1668ab82afeb36044f9028d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22129, "upload_time": "2016-10-16T10:16:06", "url": "https://files.pythonhosted.org/packages/aa/15/7f35dbbebb47d1501d711d1e8684cfb77785d79ecb5c63113945368c8adc/smmap2-0.9.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "cd1b036662267028cecf8f44820d143b", "sha256": "e648aa5a706e69e12e368db9252901efdca9f4bdbc60f9dee12009a2182f7329" }, "downloads": -1, "filename": "smmap2-2.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cd1b036662267028cecf8f44820d143b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 27421, "upload_time": "2016-10-16T10:32:56", "url": "https://files.pythonhosted.org/packages/ed/e9/1623e2979a6886eaa771c5fbfe6633ec82bdc183419497d1c0c9d93c2058/smmap2-2.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "efe9be52b0668995a9915de043d517a2", "sha256": "e6cb524a85ccc86ea879ffa42d52dc61ae66fcf2ea75612bd036bb8f1368461b" }, "downloads": -1, "filename": "smmap2-2.0.0.tar.gz", "has_sig": false, "md5_digest": "efe9be52b0668995a9915de043d517a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22134, "upload_time": "2016-10-16T10:18:15", "url": "https://files.pythonhosted.org/packages/5b/d5/97faff73464a3185c99c6a530c3ae349461048bc3cb9f847a2aedd1d488a/smmap2-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "d34a6e385c852d905243f0dc20576fc7", "sha256": "2fd9bf96acf84caf80363c2e7178163cda58633fe657f82d0feeed69cf612626" }, "downloads": -1, "filename": "smmap2-2.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d34a6e385c852d905243f0dc20576fc7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 27197, "upload_time": "2016-10-22T14:31:09", "url": "https://files.pythonhosted.org/packages/a2/ce/2aea0d688d58baf60781d4ab9b0ee14b5585929b65355e6c77e9dc42c4c4/smmap2-2.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "71565e9c99ab64718e2a13c489767692", "sha256": "5c9fd3ac4a30b85d041a8bd3779e16aa704a161991e74b9a46692bc368e68752" }, "downloads": -1, "filename": "smmap2-2.0.1.tar.gz", "has_sig": false, "md5_digest": "71565e9c99ab64718e2a13c489767692", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21948, "upload_time": "2016-10-22T14:30:24", "url": "https://files.pythonhosted.org/packages/83/ce/e5b3aee7ca420b0ab24d4fcc2aa577f7aa6ea7e9306fafceabee3e8e4703/smmap2-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "835cb50b01a75d8fa82152419b0d9fdc", "sha256": "2194d1cead1f618983b8eb749ecccc92f05cc44e1ead24993cf69995ca66d49d" }, "downloads": -1, "filename": "smmap2-2.0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "835cb50b01a75d8fa82152419b0d9fdc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 27384, "upload_time": "2017-05-28T16:01:50", "url": "https://files.pythonhosted.org/packages/da/c7/343900b3a0267c8550fbd921967c79e8ca4044b0b3c24e04d2898e937c15/smmap2-2.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "988f8c7fb40959f63ff0b11de2924ffd", "sha256": "305d8cdaa7d11c00b528f57ecefd258da5cd3193cd57b61ea656c9281b5ce1eb" }, "downloads": -1, "filename": "smmap2-2.0.2.tar.gz", "has_sig": true, "md5_digest": "988f8c7fb40959f63ff0b11de2924ffd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22143, "upload_time": "2017-05-28T16:01:54", "url": "https://files.pythonhosted.org/packages/31/d1/a2732de00034a4aa6a643c411d4c020d5302a72bc0e1979232248b3edaf9/smmap2-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "52e2f43007e073132f8336066aad9e8e", "sha256": "b78ee0f1f5772d69ff50b1cbdb01b8c6647a8354f02f23b488cf4b2cfc923956" }, "downloads": -1, "filename": "smmap2-2.0.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "52e2f43007e073132f8336066aad9e8e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 27384, "upload_time": "2017-06-10T16:53:41", "url": "https://files.pythonhosted.org/packages/e3/59/4e22f692e65f5f9271252a8e63f04ce4ad561d4e06192478ee48dfac9611/smmap2-2.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d07872c7439040678670860d579b4c4", "sha256": "c7530db63f15f09f8251094b22091298e82bf6c699a6b8344aaaef3f2e1276c3" }, "downloads": -1, "filename": "smmap2-2.0.3.tar.gz", "has_sig": true, "md5_digest": "2d07872c7439040678670860d579b4c4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23049, "upload_time": "2017-06-10T16:53:43", "url": "https://files.pythonhosted.org/packages/48/d8/25d9b4b875ab3c2400ec7794ceda8093b51101a9d784da608bf65ab5f5f5/smmap2-2.0.3.tar.gz" } ], "2.0.4": [ { "comment_text": "", "digests": { "md5": "8e822e8406adaba019a98f8dfe38730c", "sha256": "0dd53d991af487f9b22774fa89451358da3607c02b9b886a54736c6a313ece0b" }, "downloads": -1, "filename": "smmap2-2.0.4-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "8e822e8406adaba019a98f8dfe38730c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 24770, "upload_time": "2018-07-15T12:15:10", "url": "https://files.pythonhosted.org/packages/0f/14/e3112808b727f72df9531fc2f00b84d4966e66001748b6883a21c767e902/smmap2-2.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "886ecac014a09cfe2259bc235cf31e2e", "sha256": "dc216005e529d57007ace27048eb336dcecb7fc413cfb3b2f402bb25972b69c6" }, "downloads": -1, "filename": "smmap2-2.0.4.tar.gz", "has_sig": true, "md5_digest": "886ecac014a09cfe2259bc235cf31e2e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23261, "upload_time": "2018-07-15T12:15:12", "url": "https://files.pythonhosted.org/packages/ad/e9/0fb974b182ff41d28ad267d0b4201b35159619eb610ea9a2e036817cb0b8/smmap2-2.0.4.tar.gz" } ], "2.0.5": [ { "comment_text": "", "digests": { "md5": "48f936c79a3d0bb107de570d9b8d6c02", "sha256": "0555a7bf4df71d1ef4218e4807bbf9b201f910174e6e08af2e138d4e517b4dde" }, "downloads": -1, "filename": "smmap2-2.0.5-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "48f936c79a3d0bb107de570d9b8d6c02", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 24242, "upload_time": "2018-10-13T10:56:42", "url": "https://files.pythonhosted.org/packages/55/d2/866d45e3a121ee15a1dc013824d58072fd5c7799c9c34d01378eb262ca8f/smmap2-2.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c59a985be5aa645c4c5a4e063a40dd5", "sha256": "29a9ffa0497e7f2be94ca0ed1ca1aa3cd4cf25a1f6b4f5f87f74b46ed91d609a" }, "downloads": -1, "filename": "smmap2-2.0.5.tar.gz", "has_sig": true, "md5_digest": "1c59a985be5aa645c4c5a4e063a40dd5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 22635, "upload_time": "2018-10-13T10:56:44", "url": "https://files.pythonhosted.org/packages/3b/ba/e49102b3e8ffff644edded25394b2d22ebe3e645f3f6a8139129c4842ffe/smmap2-2.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "48f936c79a3d0bb107de570d9b8d6c02", "sha256": "0555a7bf4df71d1ef4218e4807bbf9b201f910174e6e08af2e138d4e517b4dde" }, "downloads": -1, "filename": "smmap2-2.0.5-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "48f936c79a3d0bb107de570d9b8d6c02", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 24242, "upload_time": "2018-10-13T10:56:42", "url": "https://files.pythonhosted.org/packages/55/d2/866d45e3a121ee15a1dc013824d58072fd5c7799c9c34d01378eb262ca8f/smmap2-2.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1c59a985be5aa645c4c5a4e063a40dd5", "sha256": "29a9ffa0497e7f2be94ca0ed1ca1aa3cd4cf25a1f6b4f5f87f74b46ed91d609a" }, "downloads": -1, "filename": "smmap2-2.0.5.tar.gz", "has_sig": true, "md5_digest": "1c59a985be5aa645c4c5a4e063a40dd5", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", "size": 22635, "upload_time": "2018-10-13T10:56:44", "url": "https://files.pythonhosted.org/packages/3b/ba/e49102b3e8ffff644edded25394b2d22ebe3e645f3f6a8139129c4842ffe/smmap2-2.0.5.tar.gz" } ] }