rocksdb-ng 2.0.0__tar.gz

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.
Files changed (57) hide show
  1. rocksdb_ng-2.0.0/LICENSE +27 -0
  2. rocksdb_ng-2.0.0/MANIFEST.in +3 -0
  3. rocksdb_ng-2.0.0/PKG-INFO +82 -0
  4. rocksdb_ng-2.0.0/README.rst +53 -0
  5. rocksdb_ng-2.0.0/pyproject.toml +3 -0
  6. rocksdb_ng-2.0.0/rocksdb/__init__.py +1 -0
  7. rocksdb_ng-2.0.0/rocksdb/_rocksdb.cpp +83560 -0
  8. rocksdb_ng-2.0.0/rocksdb/_rocksdb.pyx +2826 -0
  9. rocksdb_ng-2.0.0/rocksdb/advanced_options.pxd +114 -0
  10. rocksdb_ng-2.0.0/rocksdb/backup.pxd +35 -0
  11. rocksdb_ng-2.0.0/rocksdb/cache.pxd +8 -0
  12. rocksdb_ng-2.0.0/rocksdb/compaction_filter.pxd +54 -0
  13. rocksdb_ng-2.0.0/rocksdb/comparator.pxd +23 -0
  14. rocksdb_ng-2.0.0/rocksdb/concurrent_task_limiter.pxd +11 -0
  15. rocksdb_ng-2.0.0/rocksdb/cpp/comparator_wrapper.hpp +63 -0
  16. rocksdb_ng-2.0.0/rocksdb/cpp/memtable_factories.hpp +15 -0
  17. rocksdb_ng-2.0.0/rocksdb/cpp/merge_operator_wrapper.hpp +132 -0
  18. rocksdb_ng-2.0.0/rocksdb/cpp/slice_transform_wrapper.hpp +109 -0
  19. rocksdb_ng-2.0.0/rocksdb/cpp/utils.hpp +8 -0
  20. rocksdb_ng-2.0.0/rocksdb/cpp/write_batch_iter_helper.hpp +65 -0
  21. rocksdb_ng-2.0.0/rocksdb/db.pxd +232 -0
  22. rocksdb_ng-2.0.0/rocksdb/env.pxd +5 -0
  23. rocksdb_ng-2.0.0/rocksdb/errors.py +23 -0
  24. rocksdb_ng-2.0.0/rocksdb/filter_policy.pxd +12 -0
  25. rocksdb_ng-2.0.0/rocksdb/interfaces.py +62 -0
  26. rocksdb_ng-2.0.0/rocksdb/iterator.pxd +16 -0
  27. rocksdb_ng-2.0.0/rocksdb/logger.pxd +5 -0
  28. rocksdb_ng-2.0.0/rocksdb/memtablerep.pxd +12 -0
  29. rocksdb_ng-2.0.0/rocksdb/merge_operator.pxd +46 -0
  30. rocksdb_ng-2.0.0/rocksdb/merge_operators.py +22 -0
  31. rocksdb_ng-2.0.0/rocksdb/options.pxd +278 -0
  32. rocksdb_ng-2.0.0/rocksdb/slice_.pxd +20 -0
  33. rocksdb_ng-2.0.0/rocksdb/slice_transform.pxd +43 -0
  34. rocksdb_ng-2.0.0/rocksdb/snapshot.pxd +3 -0
  35. rocksdb_ng-2.0.0/rocksdb/stackable_db.pxd +8 -0
  36. rocksdb_ng-2.0.0/rocksdb/statistics.pxd +44 -0
  37. rocksdb_ng-2.0.0/rocksdb/status.pxd +15 -0
  38. rocksdb_ng-2.0.0/rocksdb/std_memory.pxd +7 -0
  39. rocksdb_ng-2.0.0/rocksdb/table_factory.pxd +51 -0
  40. rocksdb_ng-2.0.0/rocksdb/table_properties.pxd +75 -0
  41. rocksdb_ng-2.0.0/rocksdb/tests/__init__.py +0 -0
  42. rocksdb_ng-2.0.0/rocksdb/tests/test_db.py +792 -0
  43. rocksdb_ng-2.0.0/rocksdb/tests/test_memtable.py +29 -0
  44. rocksdb_ng-2.0.0/rocksdb/tests/test_options.py +285 -0
  45. rocksdb_ng-2.0.0/rocksdb/tests/test_transaction_db.py +40 -0
  46. rocksdb_ng-2.0.0/rocksdb/tests/test_transactiondb_options.py +44 -0
  47. rocksdb_ng-2.0.0/rocksdb/transaction_db.pxd +63 -0
  48. rocksdb_ng-2.0.0/rocksdb/types.pxd +28 -0
  49. rocksdb_ng-2.0.0/rocksdb/universal_compaction.pxd +15 -0
  50. rocksdb_ng-2.0.0/rocksdb_ng.egg-info/PKG-INFO +82 -0
  51. rocksdb_ng-2.0.0/rocksdb_ng.egg-info/SOURCES.txt +56 -0
  52. rocksdb_ng-2.0.0/rocksdb_ng.egg-info/dependency_links.txt +1 -0
  53. rocksdb_ng-2.0.0/rocksdb_ng.egg-info/not-zip-safe +1 -0
  54. rocksdb_ng-2.0.0/rocksdb_ng.egg-info/requires.txt +6 -0
  55. rocksdb_ng-2.0.0/rocksdb_ng.egg-info/top_level.txt +1 -0
  56. rocksdb_ng-2.0.0/setup.cfg +47 -0
  57. rocksdb_ng-2.0.0/setup.py +66 -0
@@ -0,0 +1,27 @@
1
+ Copyright (c) 2014, Stephan Hofmockel
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice, this
11
+ list of conditions and the following disclaimer in the documentation and/or
12
+ other materials provided with the distribution.
13
+
14
+ * Neither the name of the author nor the names of its
15
+ contributors may be used to endorse or promote products derived from
16
+ this software without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,3 @@
1
+ include rocksdb/cpp/*.hpp
2
+ recursive-include rocksdb *.pxd
3
+ recursive-include rocksdb *.pyx
@@ -0,0 +1,82 @@
1
+ Metadata-Version: 2.4
2
+ Name: rocksdb-ng
3
+ Version: 2.0.0
4
+ Summary: Python bindings for RocksDB
5
+ Home-page: https://github.com/f321x/python-rocksdb
6
+ Author: Martina Ferrari
7
+ Author-email: tina@tina.pm
8
+ License: BSD 3-Clause License
9
+ Project-URL: Bug Reports, https://github.com/f321x/python-rocksdb/issues
10
+ Project-URL: Repository, https://github.com/f321x/python-rocksdb
11
+ Keywords: rocksdb bindings
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: BSD License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Database
21
+ Requires-Python: >=3.11
22
+ Description-Content-Type: text/x-rst
23
+ License-File: LICENSE
24
+ Provides-Extra: doc
25
+ Requires-Dist: sphinx<10,>=7.2; extra == "doc"
26
+ Provides-Extra: test
27
+ Requires-Dist: pytest>=8; extra == "test"
28
+ Dynamic: license-file
29
+
30
+ python-rocksdb
31
+ ==============
32
+
33
+ Python bindings for RocksDB.
34
+
35
+ See https://f321x.github.io/python-rocksdb/ for a more comprehensive install
36
+ and usage description.
37
+
38
+
39
+ Quick install
40
+ -------------
41
+
42
+ .. code-block:: bash
43
+
44
+ $ pip install rocksdb-ng
45
+
46
+ The distribution is published to PyPI as ``rocksdb-ng`` (the plain ``rocksdb``
47
+ name belongs to the upstream project this is forked from). The import name is
48
+ unchanged -- after installing you still ``import rocksdb``. Because it ships the
49
+ same top-level ``rocksdb`` package, it cannot be co-installed with the original
50
+ ``rocksdb`` distribution; uninstall that first (``pip uninstall rocksdb``).
51
+
52
+
53
+ Quick usage guide
54
+ -----------------
55
+
56
+ .. code-block:: python
57
+
58
+ >>> import rocksdb
59
+ >>> db = rocksdb.DB('test.db', rocksdb.Options(create_if_missing=True))
60
+ >>> db.put(b'a', b'data')
61
+ >>> print(db.get(b'a'))
62
+ b'data'
63
+
64
+
65
+ Acknowledgements
66
+ ----------------
67
+
68
+ This project attempts to collect the efforts put into different forks of the
69
+ `pyrocksdb`_ project that was originally written by `stephan-hof`_, as sadly
70
+ none seems to be actively maintained. In particular, the `python-rocksdb`_ fork
71
+ created by `twmht`_, but it also incorporates changes from other forks and
72
+ unfinished pull requests.
73
+
74
+ .. _python-rocksdb: https://github.com/twmht/python-rocksdb
75
+ .. _twmht: https://github.com/twmht
76
+ .. _pyrocksdb: https://github.com/stephan-hof/pyrocksdb
77
+ .. _stephan-hof: https://github.com/stephan-hof
78
+
79
+
80
+ Disclaimer
81
+ ----------
82
+ This python-rocksdb fork was developed mostly using LLM coding agents.
@@ -0,0 +1,53 @@
1
+ python-rocksdb
2
+ ==============
3
+
4
+ Python bindings for RocksDB.
5
+
6
+ See https://f321x.github.io/python-rocksdb/ for a more comprehensive install
7
+ and usage description.
8
+
9
+
10
+ Quick install
11
+ -------------
12
+
13
+ .. code-block:: bash
14
+
15
+ $ pip install rocksdb-ng
16
+
17
+ The distribution is published to PyPI as ``rocksdb-ng`` (the plain ``rocksdb``
18
+ name belongs to the upstream project this is forked from). The import name is
19
+ unchanged -- after installing you still ``import rocksdb``. Because it ships the
20
+ same top-level ``rocksdb`` package, it cannot be co-installed with the original
21
+ ``rocksdb`` distribution; uninstall that first (``pip uninstall rocksdb``).
22
+
23
+
24
+ Quick usage guide
25
+ -----------------
26
+
27
+ .. code-block:: python
28
+
29
+ >>> import rocksdb
30
+ >>> db = rocksdb.DB('test.db', rocksdb.Options(create_if_missing=True))
31
+ >>> db.put(b'a', b'data')
32
+ >>> print(db.get(b'a'))
33
+ b'data'
34
+
35
+
36
+ Acknowledgements
37
+ ----------------
38
+
39
+ This project attempts to collect the efforts put into different forks of the
40
+ `pyrocksdb`_ project that was originally written by `stephan-hof`_, as sadly
41
+ none seems to be actively maintained. In particular, the `python-rocksdb`_ fork
42
+ created by `twmht`_, but it also incorporates changes from other forks and
43
+ unfinished pull requests.
44
+
45
+ .. _python-rocksdb: https://github.com/twmht/python-rocksdb
46
+ .. _twmht: https://github.com/twmht
47
+ .. _pyrocksdb: https://github.com/stephan-hof/pyrocksdb
48
+ .. _stephan-hof: https://github.com/stephan-hof
49
+
50
+
51
+ Disclaimer
52
+ ----------
53
+ This python-rocksdb fork was developed mostly using LLM coding agents.
@@ -0,0 +1,3 @@
1
+ [build-system]
2
+ requires = ["setuptools>=80", "wheel>=0.47", "Cython>=3.2.5,<4", "pkgconfig"]
3
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1 @@
1
+ from ._rocksdb import *