您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

114 行
4.7KB

  1. Metadata-Version: 2.1
  2. Name: smmap2
  3. Version: 2.0.5
  4. Summary: A pure Python implementation of a sliding window memory map manager
  5. Home-page: https://github.com/gitpython-developers/smmap
  6. Author: Sebastian Thiel
  7. Author-email: byronimo@gmail.com
  8. License: BSD
  9. Platform: any
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Console
  12. Classifier: Intended Audience :: Developers
  13. Classifier: License :: OSI Approved :: BSD License
  14. Classifier: Operating System :: OS Independent
  15. Classifier: Operating System :: POSIX
  16. Classifier: Operating System :: Microsoft :: Windows
  17. Classifier: Operating System :: MacOS :: MacOS X
  18. Classifier: Programming Language :: Python
  19. Classifier: Programming Language :: Python :: 2
  20. Classifier: Programming Language :: Python :: 2.7
  21. Classifier: Programming Language :: Python :: 3
  22. Classifier: Programming Language :: Python :: 3.4
  23. Classifier: Programming Language :: Python :: 3.5
  24. Classifier: Programming Language :: Python :: 3.6
  25. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
  26. ## Motivation
  27. When 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.
  28. Although 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.
  29. ## Limitations
  30. * **System resources (file-handles) are likely to be leaked!** This is due to the library authors reliance on a deterministic `__del__()` destructor.
  31. * The memory access is read-only by design.
  32. ## Overview
  33. [![Build Status](https://travis-ci.org/gitpython-developers/smmap.svg?branch=master)](https://travis-ci.org/gitpython-developers/smmap)
  34. [![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)
  35. [![Coverage Status](https://coveralls.io/repos/gitpython-developers/smmap/badge.png)](https://coveralls.io/r/gitpython-developers/smmap)
  36. [![Issue Stats](http://www.issuestats.com/github/gitpython-developers/smmap/badge/pr)](http://www.issuestats.com/github/gitpython-developers/smmap)
  37. [![Issue Stats](http://www.issuestats.com/github/gitpython-developers/smmap/badge/issue)](http://www.issuestats.com/github/gitpython-developers/smmap)
  38. Smmap 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.
  39. To 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.
  40. The interface also works around the missing offset parameter in python implementations up to python 2.5.
  41. Although 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.
  42. For 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.
  43. ## Prerequisites
  44. * Python 2.7 or 3.4+
  45. * OSX, Windows or Linux
  46. The package was tested on all of the previously mentioned configurations.
  47. ## Installing smmap
  48. [![Documentation Status](https://readthedocs.org/projects/smmap/badge/?version=latest)](https://readthedocs.org/projects/smmap/?badge=latest)
  49. Its easiest to install smmap using the [pip](http://www.pip-installer.org/en/latest) program:
  50. ```bash
  51. $ pip install smmap
  52. ```
  53. As the command will install smmap in your respective python distribution, you will most likely need root permissions to authorize the required changes.
  54. If you have downloaded the source archive, the package can be installed by running the `setup.py` script:
  55. ```bash
  56. $ python setup.py install
  57. ```
  58. It is advised to have a look at the **Usage Guide** for a brief introduction on the different database implementations.
  59. ## Homepage and Links
  60. The project is home on github at https://github.com/gitpython-developers/smmap .
  61. The latest source can be cloned from github as well:
  62. * git://github.com/gitpython-developers/smmap.git
  63. For support, please use the git-python mailing list:
  64. * http://groups.google.com/group/git-python
  65. Issues can be filed on github:
  66. * https://github.com/gitpython-developers/smmap/issues
  67. ## License Information
  68. *smmap* is licensed under the New BSD License.