Scalable persistent object containers
Project description
BTrees: scalable persistent components
This package contains a set of persistent object containers built around a modified BTree data structure. The trees are optimized for use inside ZODB’s “optimistic concurrency” paradigm, and include explicit resolution of conflicts detected by that mechanism.
Please see the Sphinx documentation for further information.
BTrees Changelog
4.5.0 (2018-04-23)
Add support for Python 3.6 and 3.7.
Drop support for Python 3.3.
Raise an ImportError consistently on Python 3 if the C extension for BTrees is used but the persistent C extension is not available. Previously this could result in an odd AttributeError. See https://github.com/zopefoundation/BTrees/pull/55
Fix the possibility of a rare crash in the C extension when deallocating items. See https://github.com/zopefoundation/BTrees/issues/75
Respect the PURE_PYTHON environment variable at runtime even if the C extensions are available. See https://github.com/zopefoundation/BTrees/issues/78
Always attempt to build the C extensions, but make their success optional.
Fix a DeprecationWarning that could come from I and L objects in Python 2 in pure-Python mode. See https://github.com/zopefoundation/BTrees/issues/79
4.4.1 (2017-01-24)
Fixed a packaging bug that caused extra files to be included (some of which caused problems in some platforms).
4.4.0 (2017-01-11)
Allow None as a special key (sorted smaller than all others).
This is a bit of a return to BTrees 3 behavior in that Nones are allowed as keys again. Other objects with default ordering are still not allowed as keys.
4.3.2 (2017-01-05)
Make the CPython implementation consistent with the pure-Python implementation and only check object keys for default comparison when setting keys. In Python 2 this makes it possible to remove keys that were added using a less restrictive version of BTrees. (In Python 3 keys that are unorderable still cannot be removed.) Likewise, all versions can unpickle trees that already had such keys. See: https://github.com/zopefoundation/BTrees/issues/53 and https://github.com/zopefoundation/BTrees/issues/51
Make the Python implementation consistent with the CPython implementation and check object key identity before checking equality and performing comparisons. This can allow fixing trees that have keys that now have broken comparison functions. See https://github.com/zopefoundation/BTrees/issues/50
Make the CPython implementation consistent with the pure-Python implementation and no longer raise TypeError for an object key (in object-keyed trees) with default comparison on __getitem__, get or in operations. Instead, the results will be a KeyError, the default value, and False, respectively. Previously, CPython raised a TypeError in those cases, while the Python implementation behaved as specified.
Likewise, non-integer keys in integer-keyed trees will raise KeyError, return the default and return False, respectively, in both implementations. Previously, pure-Python raised a KeyError, returned the default, and raised a TypeError, while CPython raised TypeError in all three cases.
4.3.1 (2016-05-16)
Packaging: fix password used to automate wheel creation on Travis.
4.3.0 (2016-05-10)
Fix unexpected OverflowError when passing 64bit values to long keys / values on Win64. See: https://github.com/zopefoundation/BTrees/issues/32
When testing PURE_PYTHON environments under tox, avoid poisoning the user’s global wheel cache.
Ensure that the pure-Python implementation, used on PyPy and when a C compiler isn’t available for CPython, pickles identically to the C version. Unpickling will choose the best available implementation. This change prevents interoperability problems and database corruption if both implementations are in use. While it is no longer possible to pickle a Python implementation and have it unpickle to the Python implementation if the C implementation is available, existing Python pickles will still unpickle to the Python implementation (until pickled again). See: https://github.com/zopefoundation/BTrees/issues/19
Avoid creating invalid objects when unpickling empty BTrees in a pure-Python environment.
Drop support for Python 2.6 and 3.2.
4.2.0 (2015-11-13)
Add support for Python 3.5.
4.1.4 (2015-06-02)
Ensure that pure-Python Bucket and Set objects have a human readable __repr__ like the C versions.
4.1.3 (2015-05-19)
Fix _p_changed when removing items from small pure-Python BTrees/TreeSets and when adding items to small pure-Python Sets. See: https://github.com/zopefoundation/BTrees/issues/13
4.1.2 (2015-04-07)
Suppress testing 64-bit values in OLBTrees on 32 bit machines. See: https://github.com/zopefoundation/BTrees/issues/9
Fix _p_changed when adding items to small pure-Python BTrees/TreeSets. See: https://github.com/zopefoundation/BTrees/issues/11
4.1.1 (2014-12-27)
Accomodate long values in pure-Python OLBTrees.
4.1.0 (2014-12-26)
Add support for PyPy and PyPy3.
Add support for Python 3.4.
BTree subclasses can define max_leaf_size or max_internal_size to control maximum sizes for Bucket/Set and BTree/TreeSet nodes.
Detect integer overflow on 32-bit machines correctly under Python 3.
Update pure-Python and C trees / sets to accept explicit None to indicate max / min value for minKey, maxKey. (PR #3)
Update pure-Python trees / sets to accept explicit None to indicate open ranges for keys, values, items. (PR #3)
4.0.8 (2013-05-25)
Fix value-based comparison for objects under Py3k: addresses invalid merges of [OLI]OBTrees/OBuckets.
Ensure that pure-Python implementation of OOBTree.byValue matches semantics (reversed-sort) of C implementation.
4.0.7 (2013-05-22)
Issue #2: compilation error on 32-bit mode of OS/X.
Test PURE_PYTHON environment variable support: if set, the C extensions will not be built, imported, or tested.
4.0.6 (2013-05-14)
Changed the ZODB extra to require only the real ZODB package, rather than the ZODB3 metapackage: depending on the version used, the metapackage could pull in stale versions of this package and persistent.
Fixed Python version check in setup.py.
4.0.5 (2013-01-15)
Fit the repr of bucket objects, which could contain garbage characters.
4.0.4 (2013-01-12)
Emulate the (private) iterators used by the C extension modules from pure Python. This change is “cosmetic” only: it prevents the ZCML zope.app.security:permission.zcml from failing. The emulated classes are not functional, and should be considered implementation details.
Accomodate buildout to the fact that we no longer bundle a copy of ‘persistent.h’.
Fix test failures on Windows: no longer rely on overflows from sys.maxint.
4.0.3 (2013-01-04)
Added setup_requires==['persistent'].
4.0.2 (2013-01-03)
Updated Trove classifiers.
Added explicit support for Python 3.2, Python 3.3, and PyPy. Note that the C extensions are not (yet) available on PyPy.
Python reference implementations now tested separately from the C verions on all platforms.
100% unit test coverage.
4.0.1 (2012-10-21)
Provide local fallback for persistent C header inclusion if the persistent distribution isn’t installed. This makes the winbot happy.
4.0.0 (2012-10-20)
Platform Changes
Dropped support for Python < 2.6.
Factored BTrees as a separate distribution.
Testing Changes
All covered platforms tested under tox.
Added support for continuous integration using tox and jenkins.
Added setup.py dev alias (installs nose and coverage).
Dropped dependency on zope.testing / zope.testrunner: tests now run with setup.py test.
Documentation Changes
Added API reference, generated via Spinx’ autodoc.
Added Sphinx documentation based on ZODB Guide (snippets are exercised via ‘tox’).
Added setup.py docs alias (installs Sphinx and repoze.sphinx.autointerface).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for BTrees-4.5.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df8a059fc7c43ae34c47806be00021432988efdc8b24e8422fa6a785c9c78150 |
|
MD5 | 5eda6eb787608d44bff97a369ff29112 |
|
BLAKE2b-256 | fdb5442e806c288a336c02f40c57dc2e36474b0a04813c68e5274e05a484ebf0 |
Hashes for BTrees-4.5.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a80c5f14eac095502b5ba6adfdbea7a891dc5d761efeef75d11c2dbed7a9e5f0 |
|
MD5 | b6293c10278096ebf904e4d5f4ffda66 |
|
BLAKE2b-256 | 0f136fc63c9efeefd844154bbeb7c88385aac5befcec3eb5bc5ef30dbbd53d5b |
Hashes for BTrees-4.5.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81039fb3060434036776da02b38b4b0872589377a873f432dad20f0c44f47f3c |
|
MD5 | 75913322a04656a7676e53275332d6fa |
|
BLAKE2b-256 | 77ffd4020bd20b59655ae480376ef00a3b015e0f6c5a89a4b74663d9a39b1c4e |
Hashes for BTrees-4.5.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71235ac01a2f7989bce49f9bb9c0b43e5f19a3dbc2df51ad646950ee541b99a8 |
|
MD5 | 9c5ba63a07a0f2a996da0c10527b7b36 |
|
BLAKE2b-256 | 7027760496467b6af21661fe32ceec8f18f35edfc42f4824c5fc881d2a25fb40 |
Hashes for BTrees-4.5.0-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fcf0a87057c2558e5456aba6094ba3cf8a3641484608dbe86e7573d23e98b91 |
|
MD5 | 24d49798c49f737888bbd7f3b49af5ed |
|
BLAKE2b-256 | eafb07c43be320d5d354a3722a3a0349d74f1800b162f5841b36547132382986 |
Hashes for BTrees-4.5.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 895e5d173dd77989d8b9b9649e01a2509c6553ca3820c15f058e129fcbdab88c |
|
MD5 | b1ed6daf41a7f72c4abd77c025e18ba1 |
|
BLAKE2b-256 | 42608314afe46f1669683d298e2621d2fba99cd49ffc461c12c1788392832fee |
Hashes for BTrees-4.5.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4996f282254bc30ab3855df4b757a675d043edf069368ac8e9ac1fadcaebb89b |
|
MD5 | b502962011f0bbd125d03df87e1d801c |
|
BLAKE2b-256 | 9cf77e31e880d960be4687f22104773e8af5eaf2637cc88bfc0becfe5ce7deab |
Hashes for BTrees-4.5.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 399090e43c9ebf525a5cdced8fac18da3243cd78382333eae431ef3b2a6ae219 |
|
MD5 | f20bd84c5e034ed3a33211d78cdb1b55 |
|
BLAKE2b-256 | 3341394ffde30ebc2e17c87d533134ae14a9f7f05c379e362995f2b553066eff |
Hashes for BTrees-4.5.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f9dc2e73c46df0ece533bf432c1d54816eb94d3c7cd14e05c53a78addf61898 |
|
MD5 | 69b5978916ee07b7182829d5443d271c |
|
BLAKE2b-256 | 8a70ab18b92647f71e51b67a47826cfcd922cb87df70f94cca222f3a3143a1f4 |
Hashes for BTrees-4.5.0-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b47db60a25cea6af29869e0a923705df71079137a99c9061008768c399ec4cd4 |
|
MD5 | 8742f7d952d50d77e62a861abc669472 |
|
BLAKE2b-256 | 19ddde011efdb72ac31914b4397e2402d4270ed7aac1e1ff4422aaeda7afffb9 |
Hashes for BTrees-4.5.0-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4986f7ea25013e0370d88a4699490f83da92745705001b3d619de7d9600edc66 |
|
MD5 | 165599259523688c3a51bc652e6c0779 |
|
BLAKE2b-256 | bfeeb4a17a00b4a95dbfcd1590c4851d38cdfa13d36271a83d37ef3321c89a57 |
Hashes for BTrees-4.5.0-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 888c016774630b7be2339888df1d0e7c91e1e0139e1b9ec80309feb1fc6fd9ec |
|
MD5 | 989b4eae22e30b4c644c31b43dddd7dd |
|
BLAKE2b-256 | 71ccbefdc74749e9c0f263dbc8656cc4c4cc631118e1c26cc79773d3994b3717 |
Hashes for BTrees-4.5.0-cp34-cp34m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b100e41ad3a0d16b8f07794af14acaf92b87ff5f4f1d942dc50f3f8105b2e67 |
|
MD5 | 23fe5beede061fd81f58a1bdd852d806 |
|
BLAKE2b-256 | a0ede7e6dc162f8fc6a5bb94c4a9502e64588e6915832c32a50f91368bf79f84 |
Hashes for BTrees-4.5.0-cp34-cp34m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8bf40f9f3078d373e71042198fefdd0588775df5f5e5a97525f2c32d0653c43 |
|
MD5 | 7076be509eb055760017925daf937812 |
|
BLAKE2b-256 | 0fe8bb865436a23f35a5e9c1e992fb54975333c11cb0e9c5ef23fe719249a953 |
Hashes for BTrees-4.5.0-cp34-cp34m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64d655824d654d54021d65795e7c9d6f5d21a2427199c7dc0a25d259801f90f1 |
|
MD5 | 26c4dbbbb97ec3a3e9086c07ee6484c7 |
|
BLAKE2b-256 | ad3d92bd977f17f6363c626bbbcf92fdad488161b4806cd76d9425e74c3f71c6 |
Hashes for BTrees-4.5.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e1831187360b78cc05d906e17944bef21583a1541506a26af3b6f25baaab208 |
|
MD5 | 17e486812e8ead7505873ce962a88b73 |
|
BLAKE2b-256 | bb676c59c3806483a53dbf5f359123a18a1767d244bd4d5195e2a185d00cc4ea |
Hashes for BTrees-4.5.0-cp27-cp27mu-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37e1529d3bd3257fa6b724383fef1a3420b16e2e3ce7d97b32cd7a8d5d3020af |
|
MD5 | aa92dc5af43df96a1a53c14723ee8c40 |
|
BLAKE2b-256 | 10f9465e708fe2d020804515ab9f9bad985f9aaa897bb393605270ad056ffc03 |
Hashes for BTrees-4.5.0-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acfdd66a3db6753cec1a06345fbef27b4cc592e269dfc162fa1f881230d1addc |
|
MD5 | 39ed1f8fd0d23bc668f5274bb29d130b |
|
BLAKE2b-256 | 2a396f38624b9dc0ab6c4700eb296bcfe4627435b7e1d52a4aa5d70ad1c712b9 |
Hashes for BTrees-4.5.0-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c77eed4ae3e182de559296893ae00b8da3201d51c51751787b53b34ac3b1a79 |
|
MD5 | 43e050480c83d76daae0210170be8d3c |
|
BLAKE2b-256 | 3c3e9f7606ff73c6f4b20647b56f6539114acaad962942ea27ae489dd6be16dc |
Hashes for BTrees-4.5.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 147d3fd20c18200223c6c56316f352668858046afbd834dae464b7f73bedd53a |
|
MD5 | 69bd7537180de6b98548c8a9286cdaf2 |
|
BLAKE2b-256 | e4d7e60fb3647e3b30ce0a6a880ee6bdf117bc7de751259a11fdf539723d074b |
Hashes for BTrees-4.5.0-cp27-cp27m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b00572984986159db187a9d6cec3bcf48362d4162e72f53a3df362c53254c54 |
|
MD5 | 1c359cf50a4c4739c2391c2981274318 |
|
BLAKE2b-256 | 6e04aeaf04ffdb0f4d69c9d2c605e8347244c4fa97ba955ed5d605efabf59ea8 |
Hashes for BTrees-4.5.0-cp27-cp27m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 241cc088bc81c3977b7deb9b2f2239b82da814676affe6248d6df51744bc94fe |
|
MD5 | 199b2ef8e2c8cb9e6a01563531e9b1f4 |
|
BLAKE2b-256 | 75e9ffd26c777fcc38195d43efa29d4a680a6b170381c3cb0747fcd5422936a7 |