libmdbx 0.1.1__tar.gz → 0.2.1__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 (36) hide show
  1. {libmdbx-0.1.1 → libmdbx-0.2.1}/PKG-INFO +36 -5
  2. libmdbx-0.2.1/README.md +44 -0
  3. {libmdbx-0.1.1 → libmdbx-0.2.1}/mdbx/__init__.py +1 -1
  4. {libmdbx-0.1.1 → libmdbx-0.2.1}/mdbx/mdbx.py +751 -506
  5. {libmdbx-0.1.1 → libmdbx-0.2.1}/pyproject.toml +1 -1
  6. libmdbx-0.1.1/README.md +0 -13
  7. {libmdbx-0.1.1 → libmdbx-0.2.1}/LICENSE +0 -0
  8. {libmdbx-0.1.1 → libmdbx-0.2.1}/build_mdbx.py +0 -0
  9. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/CMakeLists.txt +0 -0
  10. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/ChangeLog.md +0 -0
  11. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/GNUmakefile +0 -0
  12. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/LICENSE +0 -0
  13. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/Makefile +0 -0
  14. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/README.md +0 -0
  15. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/VERSION.txt +0 -0
  16. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/cmake/compiler.cmake +0 -0
  17. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/cmake/profile.cmake +0 -0
  18. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/cmake/utils.cmake +0 -0
  19. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/config.h.in +0 -0
  20. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/man1/mdbx_chk.1 +0 -0
  21. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/man1/mdbx_copy.1 +0 -0
  22. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/man1/mdbx_drop.1 +0 -0
  23. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/man1/mdbx_dump.1 +0 -0
  24. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/man1/mdbx_load.1 +0 -0
  25. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/man1/mdbx_stat.1 +0 -0
  26. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx.c +0 -0
  27. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx.c++ +0 -0
  28. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx.h +0 -0
  29. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx.h++ +0 -0
  30. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx_chk.c +0 -0
  31. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx_copy.c +0 -0
  32. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx_drop.c +0 -0
  33. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx_dump.c +0 -0
  34. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx_load.c +0 -0
  35. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/mdbx_stat.c +0 -0
  36. {libmdbx-0.1.1 → libmdbx-0.2.1}/libmdbx/dist/ntdll.def +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: libmdbx
3
- Version: 0.1.1
3
+ Version: 0.2.1
4
4
  Summary: The python bindings to libmdbx.
5
5
  Home-page: https://github.com/wtdcode/mdbx-py
6
6
  Keywords: mdbx,libmdbx,kvdb,bindings
@@ -17,9 +17,7 @@ Description-Content-Type: text/markdown
17
17
 
18
18
  # Python bindings for libmdbx
19
19
 
20
- This revives the python bindings for libmdbx.
21
-
22
- Originally forked from [libmdbx](https://github.com/erthink/libmdbx/tree/python-bindings) with a few bugs fixed.
20
+ Python bindings for libmdbx.
23
21
 
24
22
  Try it with
25
23
 
@@ -27,4 +25,37 @@ Try it with
27
25
  pip install libmdbx
28
26
  ```
29
27
 
30
- Contributions and feedbacks are highly welcome. I'm developing a few more pythonic features and adding support for cursors iterating dupsort databases.
28
+ Contributions and feedbacks are highly welcome.
29
+
30
+ ## Usage
31
+
32
+ A quick sample to read all values from the default database:
33
+
34
+ ```python
35
+ with Env(...) as env:
36
+ with env.ro_transaction() as txn:
37
+ with txn.cursor() as cur:
38
+ for k, v in cur.iter():
39
+ ...
40
+ ```
41
+
42
+ ## Manual build
43
+
44
+ Clone the repo
45
+
46
+ ```bash
47
+ git clone https://github.com/wtdcode/mdbx-py
48
+ git submodule update --init --recursive
49
+ ```
50
+
51
+ Install via poetry
52
+
53
+ ```bash
54
+ poetry install
55
+ ```
56
+
57
+ That's it!
58
+
59
+ ## Credits
60
+
61
+ Forked from [libmdbx](https://github.com/erthink/libmdbx/tree/python-bindings)
@@ -0,0 +1,44 @@
1
+ # Python bindings for libmdbx
2
+
3
+ Python bindings for libmdbx.
4
+
5
+ Try it with
6
+
7
+ ```bash
8
+ pip install libmdbx
9
+ ```
10
+
11
+ Contributions and feedbacks are highly welcome.
12
+
13
+ ## Usage
14
+
15
+ A quick sample to read all values from the default database:
16
+
17
+ ```python
18
+ with Env(...) as env:
19
+ with env.ro_transaction() as txn:
20
+ with txn.cursor() as cur:
21
+ for k, v in cur.iter():
22
+ ...
23
+ ```
24
+
25
+ ## Manual build
26
+
27
+ Clone the repo
28
+
29
+ ```bash
30
+ git clone https://github.com/wtdcode/mdbx-py
31
+ git submodule update --init --recursive
32
+ ```
33
+
34
+ Install via poetry
35
+
36
+ ```bash
37
+ poetry install
38
+ ```
39
+
40
+ That's it!
41
+
42
+ ## Credits
43
+
44
+ Forked from [libmdbx](https://github.com/erthink/libmdbx/tree/python-bindings)
@@ -1,4 +1,4 @@
1
1
  from .mdbx import Env, Geometry, MDBXTXNFlags, MDBXError, \
2
- MDBXOption, Cursor, MDBXCursorOp, MDBXDBFlags, \
2
+ MDBXOption, Cursor, MDBXCursorOp, MDBXDBFlags, MDBXEnvFlags, \
3
3
  MDBXStat, MDBXErrorExc, MDBXEnvinfo, MDBXCopyMode, \
4
4
  get_version_info, get_build_info