rdbpython 0.2.1__cp39-cp39-macosx_11_0_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rdbpy/.dylibs/libbz2.1.0.8.dylib +0 -0
- rdbpy/.dylibs/liblz4.1.9.4.dylib +0 -0
- rdbpy/.dylibs/libsnappy.1.2.1.dylib +0 -0
- rdbpy/.dylibs/libz.1.3.1.dylib +0 -0
- rdbpy/.dylibs/libzstd.1.5.6.dylib +0 -0
- rdbpy/__init__.py +1 -0
- rdbpy/backup.pxd +35 -0
- rdbpy/cache.pxd +8 -0
- rdbpy/comparator.pxd +23 -0
- rdbpy/db.pxd +230 -0
- rdbpy/env.pxd +5 -0
- rdbpy/errors.py +26 -0
- rdbpy/filter_policy.pxd +39 -0
- rdbpy/include/rdb_include/comparator_wrapper.hpp +63 -0
- rdbpy/include/rdb_include/filter_policy_wrapper.hpp +89 -0
- rdbpy/include/rdb_include/memtable_factories.hpp +15 -0
- rdbpy/include/rdb_include/merge_operator_wrapper.hpp +132 -0
- rdbpy/include/rdb_include/slice_transform_wrapper.hpp +109 -0
- rdbpy/include/rdb_include/utils.hpp +8 -0
- rdbpy/include/rdb_include/write_batch_iter_helper.hpp +65 -0
- rdbpy/interfaces.py +77 -0
- rdbpy/iterator.pxd +16 -0
- rdbpy/lib_rocksdb.cpython-39-darwin.so +0 -0
- rdbpy/lib_rocksdb.pxd +768 -0
- rdbpy/lib_rocksdb.pyi +1465 -0
- rdbpy/lib_rocksdb.pyx +3221 -0
- rdbpy/lib_utils.py +52 -0
- rdbpy/logger.pxd +5 -0
- rdbpy/memtablerep.pxd +12 -0
- rdbpy/merge_operator.pxd +46 -0
- rdbpy/merge_operators.py +25 -0
- rdbpy/options.pxd +179 -0
- rdbpy/slice_.pxd +20 -0
- rdbpy/slice_transform.pxd +37 -0
- rdbpy/snapshot.pxd +3 -0
- rdbpy/status.pxd +15 -0
- rdbpy/std_memory.pxd +7 -0
- rdbpy/table_factory.pxd +50 -0
- rdbpy/transaction.pxd +154 -0
- rdbpy/universal_compaction.pxd +15 -0
- rdbpython-0.2.1.dist-info/METADATA +104 -0
- rdbpython-0.2.1.dist-info/RECORD +45 -0
- rdbpython-0.2.1.dist-info/WHEEL +5 -0
- rdbpython-0.2.1.dist-info/licenses/LICENSE.md +21 -0
- rdbpython-0.2.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rdbpython
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Python bindings for RocksDB with Cython
|
|
5
|
+
Author-email: Gor Arakelyan <gorarkln@gmail.com>
|
|
6
|
+
Maintainer-email: Gor Arakelyan <gorarkln@gmail.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://github.com/everyabc/rdbpy
|
|
9
|
+
Project-URL: Documentation, https://github.com/everyabc/rdbpy#readme
|
|
10
|
+
Project-URL: Repository, https://github.com/everyabc/rdbpy
|
|
11
|
+
Project-URL: Issues, https://github.com/everyabc/rdbpy/issues
|
|
12
|
+
Project-URL: PyPI, https://pypi.org/project/rdbpython/
|
|
13
|
+
Keywords: rocksdb,database,key-value,storage,embedded,cython
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
|
+
Classifier: Programming Language :: Cython
|
|
25
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
26
|
+
Classifier: Topic :: Database
|
|
27
|
+
Requires-Python: >=3.9
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE.md
|
|
30
|
+
Requires-Dist: attrs
|
|
31
|
+
Provides-Extra: dev
|
|
32
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
33
|
+
Requires-Dist: pre-commit>=3.0.0; extra == "dev"
|
|
34
|
+
Provides-Extra: test
|
|
35
|
+
Requires-Dist: pytest>=7.0.0; extra == "test"
|
|
36
|
+
Requires-Dist: pytest-cov>=4.0.0; extra == "test"
|
|
37
|
+
Requires-Dist: pytest-xdist>=3.0.0; extra == "test"
|
|
38
|
+
Requires-Dist: pytest-timeout>=2.1.0; extra == "test"
|
|
39
|
+
Requires-Dist: pytest-benchmark>=4.0.0; extra == "test"
|
|
40
|
+
Requires-Dist: hypothesis>=6.0.0; extra == "test"
|
|
41
|
+
Provides-Extra: cython
|
|
42
|
+
Requires-Dist: Cython>=3.0.0; extra == "cython"
|
|
43
|
+
Requires-Dist: setuptools>=68.0; extra == "cython"
|
|
44
|
+
Provides-Extra: all
|
|
45
|
+
Requires-Dist: rdbpy[cython,dev,test]; extra == "all"
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
|
|
48
|
+
# rdbpy
|
|
49
|
+
|
|
50
|
+
[](https://github.com/everyabc/rdbpy/actions/workflows/build.yml)
|
|
51
|
+
[](https://github.com/everyabc/rdbpy/actions/workflows/test.yml)
|
|
52
|
+
[](https://pypi.org/project/rdbpython/)
|
|
53
|
+
[](https://pypi.org/project/rdbpython/)
|
|
54
|
+
[](https://opensource.org/licenses/MIT)
|
|
55
|
+
|
|
56
|
+
Python bindings for RocksDB with Cython - **batteries included!**
|
|
57
|
+
|
|
58
|
+
**No RocksDB installation required** - everything is bundled in the wheel for Linux and macOS (Intel + Apple Silicon).
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
pip install rdbpython
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
That's it! No need to install RocksDB or any compression libraries manually.
|
|
67
|
+
|
|
68
|
+
## Usage
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
import rdbpy
|
|
72
|
+
|
|
73
|
+
# Open database
|
|
74
|
+
options = rdbpy.Options(create_if_missing=True)
|
|
75
|
+
db = rdbpy.DB('/path/to/db', options)
|
|
76
|
+
|
|
77
|
+
# Put/Get
|
|
78
|
+
db.put(b'key', b'value')
|
|
79
|
+
value = db.get(b'key')
|
|
80
|
+
|
|
81
|
+
# Iterate
|
|
82
|
+
it = db.iterkeys()
|
|
83
|
+
it.seek_to_first()
|
|
84
|
+
while it.valid():
|
|
85
|
+
print(it.key())
|
|
86
|
+
it.next()
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Development
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Setup
|
|
93
|
+
make install
|
|
94
|
+
|
|
95
|
+
# Build
|
|
96
|
+
make build
|
|
97
|
+
|
|
98
|
+
# Test
|
|
99
|
+
make test
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## License
|
|
103
|
+
|
|
104
|
+
MIT
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
rdbpy/interfaces.py,sha256=ICRiIqFb5j9GSCF7q_F4bIYQa8FlFVC14QjCHVisMR8,1248
|
|
2
|
+
rdbpy/slice_.pxd,sha256=tqdg2LA-STJx8LLd6CbBCHpCi5ITJrB-P3tBKCLxDXg,641
|
|
3
|
+
rdbpy/universal_compaction.pxd,sha256=NBXKz-4TvtdxXFKFKPm70e6QLxqQwo9upxDs9Pg8v_c,508
|
|
4
|
+
rdbpy/iterator.pxd,sha256=SvvkHXSQ7rJYugWqHo-XZRT75QPteDxy4mTsQB5_7Do,585
|
|
5
|
+
rdbpy/memtablerep.pxd,sha256=bC7Id8auMpzrBTYDbdEhHbxpXklb4JmOKc8iIw8rl1A,492
|
|
6
|
+
rdbpy/merge_operators.py,sha256=ZuH_25RijlOg3hZiL2wXCiiLpSSH-RJ_7zm7-2VszSA,742
|
|
7
|
+
rdbpy/lib_rocksdb.pyx,sha256=L7nT5p1_KaSd8Qgx8VVeVowO3dQEim5aM5ApdjHL0OE,107118
|
|
8
|
+
rdbpy/db.pxd,sha256=jUVEXIj9XbdEglaAeE3Xadcl3gAXNbh9yAAeK37BOHo,7688
|
|
9
|
+
rdbpy/status.pxd,sha256=8nCjpcCcFOhUJe5nTeMFuBxYRaXBkTz9pHj_H3D5-ik,555
|
|
10
|
+
rdbpy/__init__.py,sha256=hMAKIzPabtO-n-3IvD4pb68dhr56RUTODYM4cVjgZMU,27
|
|
11
|
+
rdbpy/comparator.pxd,sha256=JBC_ZjrwjZgmFMUPEwN7ssmnfVwpxlnurvgnSxUrWTk,732
|
|
12
|
+
rdbpy/options.pxd,sha256=7L9TMJSRN5A8DkHwxJ8CjHiHudLhqA_DvqzYq8212cE,6213
|
|
13
|
+
rdbpy/table_factory.pxd,sha256=Nd9szj-5m0AkdZYCjZmtq1XN0jmRZXWvIZu1Rc-KjlA,1580
|
|
14
|
+
rdbpy/cache.pxd,sha256=a44bn4k4xGeCIIYY7yRnPSHakXPAHfuirDmmexKeUoU,250
|
|
15
|
+
rdbpy/snapshot.pxd,sha256=kWTSR3V-D28eK39xgX6AFRPtE70_yThDAS1uVJ5woXg,94
|
|
16
|
+
rdbpy/env.pxd,sha256=c1fKpm65DPOotj5G5FrlvgWtremueyEsylPAKcS07Sw,144
|
|
17
|
+
rdbpy/slice_transform.pxd,sha256=k_UNEuGFSWC2wIb2xmN6R6EiyRIiNi20YhvhsIlKTIg,941
|
|
18
|
+
rdbpy/lib_rocksdb.pxd,sha256=2x9mEsoCHSjfHRe_b3U9L-JPKdFYd2nJzRi5R2JBDYg,25287
|
|
19
|
+
rdbpy/lib_utils.py,sha256=j6dNaH-FqmWS5I69F6XRazLOYPKQYnphmXRs4oRCnXw,1128
|
|
20
|
+
rdbpy/filter_policy.pxd,sha256=m0Fl-aZUVuYKjPRnJF8xzy9kpkXABiIWw1cFU0bt1MY,1123
|
|
21
|
+
rdbpy/backup.pxd,sha256=7UdbMygf2vBYI8bbRSmcflih8RSrJPXvPLRLxm_b7Mw,1194
|
|
22
|
+
rdbpy/errors.py,sha256=2Sz-mrFW3PNYqaJKFOEkiC8Zd1DuQfpOaibcgqXyONY,290
|
|
23
|
+
rdbpy/lib_rocksdb.pyi,sha256=pgcfU974AWEQ7P2zUcmAkVnJpooMm5dd0My5sS8_AOQ,48003
|
|
24
|
+
rdbpy/lib_rocksdb.cpython-39-darwin.so,sha256=XR9usprCdsIZpPTYZb6PjzyTMF52kgr2f-MmlHudzJo,8340352
|
|
25
|
+
rdbpy/transaction.pxd,sha256=DY9J26YHN5gA6txdtv2QvUTNMOs900w0LZPSthJPo4M,6062
|
|
26
|
+
rdbpy/merge_operator.pxd,sha256=qrlkwFBSrZRcHKXWRwnfERqlGgXBiak950Se1Y7-y3Y,1229
|
|
27
|
+
rdbpy/logger.pxd,sha256=7awZOUD_3MTnSiZbUgzSqg68gM3SN2Rct4-NjEYa_u4,148
|
|
28
|
+
rdbpy/std_memory.pxd,sha256=0B4TWqceeHf4YoTnXbamxSd12ZCpjrnFImRKroYhV3I,253
|
|
29
|
+
rdbpy/include/rdb_include/memtable_factories.hpp,sha256=JGKh-Peka7Yd0fArVIceyVM9Uq0h4PncOJSH9gF9b-g,364
|
|
30
|
+
rdbpy/include/rdb_include/merge_operator_wrapper.hpp,sha256=WLKMe9ERlindH6dCuMHnxxExM_lbfDMfci-VnDBIZvk,4161
|
|
31
|
+
rdbpy/include/rdb_include/write_batch_iter_helper.hpp,sha256=ntYRP1-58UBcSittBLdDXw48qdkNRMH7l5JvOkasGmE,1977
|
|
32
|
+
rdbpy/include/rdb_include/slice_transform_wrapper.hpp,sha256=L-bfPyqMBXf98jPCZWEKmcnRJxCF4j0fCO4HXqPtV6c,3124
|
|
33
|
+
rdbpy/include/rdb_include/comparator_wrapper.hpp,sha256=Q8vG4Uzx01lljYgX3XIp2_bMzYN7P8Xol48RiRsdIJU,1791
|
|
34
|
+
rdbpy/include/rdb_include/utils.hpp,sha256=3_ZWat7Cvb3HbT_NOfZKPb6QCkati-_9jb-ysPBEayI,145
|
|
35
|
+
rdbpy/include/rdb_include/filter_policy_wrapper.hpp,sha256=SJ_c6-pnuB8shoSh6_WPoyaY3uPVW_Pai_ePGlZiO3E,2593
|
|
36
|
+
rdbpy/.dylibs/libsnappy.1.2.1.dylib,sha256=2kLrw5SVmIxXABGHOkKSLB8DbYn8b-dpAmIlEXLj_fY,94512
|
|
37
|
+
rdbpy/.dylibs/liblz4.1.9.4.dylib,sha256=IuqyS-3KLn9UrvMOget2_i4s9DTdiSkjjrdHKUYuEb0,197600
|
|
38
|
+
rdbpy/.dylibs/libbz2.1.0.8.dylib,sha256=RPnh3QdS9x0o_8DTOcnGAxScDelYqLmWv2fZZxe7zxk,120784
|
|
39
|
+
rdbpy/.dylibs/libz.1.3.1.dylib,sha256=wkATlx5GBEvcLS_PzEFEpYQU79hNGyH8by7ZarNzMDs,140944
|
|
40
|
+
rdbpy/.dylibs/libzstd.1.5.6.dylib,sha256=bNRZkwu_z0obeMCHrTCOfP0PVzOzh4w_vWvD-6uLWMw,740176
|
|
41
|
+
rdbpython-0.2.1.dist-info/RECORD,,
|
|
42
|
+
rdbpython-0.2.1.dist-info/WHEEL,sha256=XDdnntmiCRXNVLdY5WCtwp2KApIYJ413gXaKlPbYNQ4,107
|
|
43
|
+
rdbpython-0.2.1.dist-info/top_level.txt,sha256=FOMxp08s5FdyjRBXFutB6YDucQcMnK3w0t5XkdSs-zg,6
|
|
44
|
+
rdbpython-0.2.1.dist-info/METADATA,sha256=Ahrg5dS6jBSWXUDZRz8oZT2pF3eAMTg2Ug8byfBKUyw,3361
|
|
45
|
+
rdbpython-0.2.1.dist-info/licenses/LICENSE.md,sha256=Wh9IlfbyVT76XgTDgVBb8tcAN1sKHU7qtusDtlt74Ok,1082
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Gor Arakelyan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rdbpy
|