mongojet 0.1.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 (41) hide show
  1. mongojet-0.1.0/.github/workflows/CI.yml +130 -0
  2. mongojet-0.1.0/.gitignore +76 -0
  3. mongojet-0.1.0/.rustfmt.toml +2 -0
  4. mongojet-0.1.0/Cargo.lock +2073 -0
  5. mongojet-0.1.0/Cargo.toml +22 -0
  6. mongojet-0.1.0/LICENSE.txt +201 -0
  7. mongojet-0.1.0/PKG-INFO +35 -0
  8. mongojet-0.1.0/README.md +4 -0
  9. mongojet-0.1.0/pyproject.toml +55 -0
  10. mongojet-0.1.0/python/mongojet/__init__.py +56 -0
  11. mongojet-0.1.0/python/mongojet/_client.py +88 -0
  12. mongojet-0.1.0/python/mongojet/_codec.py +104 -0
  13. mongojet-0.1.0/python/mongojet/_collection.py +639 -0
  14. mongojet-0.1.0/python/mongojet/_cursor.py +47 -0
  15. mongojet-0.1.0/python/mongojet/_database.py +205 -0
  16. mongojet-0.1.0/python/mongojet/_gridfs.py +85 -0
  17. mongojet-0.1.0/python/mongojet/_helpers.py +118 -0
  18. mongojet-0.1.0/python/mongojet/_session.py +49 -0
  19. mongojet-0.1.0/python/mongojet/_types.py +473 -0
  20. mongojet-0.1.0/requirements-dev.txt +9 -0
  21. mongojet-0.1.0/src/client.rs +110 -0
  22. mongojet-0.1.0/src/collection.rs +1446 -0
  23. mongojet-0.1.0/src/conv.rs +32 -0
  24. mongojet-0.1.0/src/cursor.rs +190 -0
  25. mongojet-0.1.0/src/database.rs +388 -0
  26. mongojet-0.1.0/src/document.rs +142 -0
  27. mongojet-0.1.0/src/error.rs +149 -0
  28. mongojet-0.1.0/src/gridfs.rs +139 -0
  29. mongojet-0.1.0/src/lib.rs +59 -0
  30. mongojet-0.1.0/src/options.rs +815 -0
  31. mongojet-0.1.0/src/result.rs +177 -0
  32. mongojet-0.1.0/src/runtime.rs +20 -0
  33. mongojet-0.1.0/src/session.rs +78 -0
  34. mongojet-0.1.0/tests/__init__.py +0 -0
  35. mongojet-0.1.0/tests/conftest.py +17 -0
  36. mongojet-0.1.0/tests/test_data_modification.py +248 -0
  37. mongojet-0.1.0/tests/test_data_querying.py +174 -0
  38. mongojet-0.1.0/tests/test_database.py +58 -0
  39. mongojet-0.1.0/tests/test_gridfs.py +35 -0
  40. mongojet-0.1.0/tests/test_indexes.py +203 -0
  41. mongojet-0.1.0/tests/test_sessions.py +24 -0
@@ -0,0 +1,130 @@
1
+ # This file is autogenerated by maturin v1.5.0
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ - master
13
+ tags:
14
+ - '*'
15
+ pull_request:
16
+ workflow_dispatch:
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ linux:
23
+ runs-on: ubuntu-latest
24
+ strategy:
25
+ fail-fast: false
26
+ matrix:
27
+ target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
28
+ steps:
29
+ - uses: actions/checkout@v4
30
+ - uses: actions/setup-python@v5
31
+ with:
32
+ python-version: '3.10'
33
+ - name: Build wheels
34
+ if: matrix.target != 'aarch64'
35
+ uses: PyO3/maturin-action@v1
36
+ with:
37
+ target: ${{ matrix.target }}
38
+ args: --release --out dist --find-interpreter
39
+ sccache: 'true'
40
+ manylinux: auto
41
+ - name: Build wheels aarch64 # https://github.com/PyO3/maturin-action/issues/222
42
+ if: matrix.target == 'aarch64'
43
+ uses: PyO3/maturin-action@v1
44
+ with:
45
+ target: aarch64
46
+ args: --release --out dist --find-interpreter
47
+ sccache: 'true'
48
+ manylinux: manylinux_2_28
49
+ - name: Upload wheels
50
+ uses: actions/upload-artifact@v4
51
+ with:
52
+ name: wheels-linux-${{ matrix.target }}
53
+ path: dist
54
+
55
+ windows:
56
+ runs-on: windows-latest
57
+ strategy:
58
+ fail-fast: false
59
+ matrix:
60
+ target: [x64, x86]
61
+ steps:
62
+ - uses: actions/checkout@v4
63
+ - uses: actions/setup-python@v5
64
+ with:
65
+ python-version: '3.10'
66
+ architecture: ${{ matrix.target }}
67
+ - name: Build wheels
68
+ uses: PyO3/maturin-action@v1
69
+ with:
70
+ target: ${{ matrix.target }}
71
+ args: --release --out dist --find-interpreter
72
+ sccache: 'true'
73
+ - name: Upload wheels
74
+ uses: actions/upload-artifact@v4
75
+ with:
76
+ name: wheels-windows-${{ matrix.target }}
77
+ path: dist
78
+
79
+ macos:
80
+ runs-on: macos-latest
81
+ strategy:
82
+ fail-fast: false
83
+ matrix:
84
+ target: [x86_64, aarch64]
85
+ steps:
86
+ - uses: actions/checkout@v4
87
+ - uses: actions/setup-python@v5
88
+ with:
89
+ python-version: '3.10'
90
+ - name: Build wheels
91
+ uses: PyO3/maturin-action@v1
92
+ with:
93
+ target: ${{ matrix.target }}
94
+ args: --release --out dist --find-interpreter
95
+ sccache: 'true'
96
+ - name: Upload wheels
97
+ uses: actions/upload-artifact@v4
98
+ with:
99
+ name: wheels-macos-${{ matrix.target }}
100
+ path: dist
101
+
102
+ sdist:
103
+ runs-on: ubuntu-latest
104
+ steps:
105
+ - uses: actions/checkout@v4
106
+ - name: Build sdist
107
+ uses: PyO3/maturin-action@v1
108
+ with:
109
+ command: sdist
110
+ args: --out dist
111
+ - name: Upload sdist
112
+ uses: actions/upload-artifact@v4
113
+ with:
114
+ name: wheels-sdist
115
+ path: dist
116
+
117
+ release:
118
+ name: Release
119
+ runs-on: ubuntu-latest
120
+ if: "startsWith(github.ref, 'refs/tags/v')"
121
+ needs: [linux, windows, macos, sdist]
122
+ steps:
123
+ - uses: actions/download-artifact@v4
124
+ - name: Publish to PyPI
125
+ uses: PyO3/maturin-action@v1
126
+ env:
127
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
128
+ with:
129
+ command: upload
130
+ args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,76 @@
1
+ /target
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ .pytest_cache/
6
+ *.py[cod]
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ # Distribution / packaging
12
+ .Python
13
+ .venv/
14
+ env/
15
+ bin/
16
+ build/
17
+ develop-eggs/
18
+ dist/
19
+ eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ include/
26
+ man/
27
+ venv/
28
+ *.egg-info/
29
+ .installed.cfg
30
+ *.egg
31
+
32
+ # Installer logs
33
+ pip-log.txt
34
+ pip-delete-this-directory.txt
35
+ pip-selfcheck.json
36
+
37
+ # Unit test / coverage reports
38
+ htmlcov/
39
+ .tox/
40
+ .coverage
41
+ .cache
42
+ nosetests.xml
43
+ coverage.xml
44
+
45
+ # Translations
46
+ *.mo
47
+
48
+ # Mr Developer
49
+ .mr.developer.cfg
50
+ .project
51
+ .pydevproject
52
+
53
+ # Rope
54
+ .ropeproject
55
+
56
+ # Django stuff:
57
+ *.log
58
+ *.pot
59
+
60
+ .DS_Store
61
+
62
+ # Sphinx documentation
63
+ docs/_build/
64
+
65
+ # PyCharm
66
+ .idea/
67
+
68
+ # VSCode
69
+ .vscode/
70
+
71
+ # Pyenv
72
+ .python-version
73
+
74
+ test_scripts/
75
+ build.Dockerfile
76
+ build.sh
@@ -0,0 +1,2 @@
1
+ max_width = 99
2
+ #use_small_heuristics = "Max"