sekejap 0.5.3__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 (108) hide show
  1. sekejap-0.5.3/.github/workflows/release.yml +113 -0
  2. sekejap-0.5.3/.gitignore +101 -0
  3. sekejap-0.5.3/.rust-analyzer.json +9 -0
  4. sekejap-0.5.3/Cargo.lock +3736 -0
  5. sekejap-0.5.3/Cargo.toml +92 -0
  6. sekejap-0.5.3/PKG-INFO +8 -0
  7. sekejap-0.5.3/README.md +212 -0
  8. sekejap-0.5.3/context7.json +4 -0
  9. sekejap-0.5.3/context7.md +94 -0
  10. sekejap-0.5.3/docs/api-reference.md +706 -0
  11. sekejap-0.5.3/docs/benchmark-results.md +36 -0
  12. sekejap-0.5.3/docs/interface-table.md +60 -0
  13. sekejap-0.5.3/docs/python-api.md +295 -0
  14. sekejap-0.5.3/docs/roadmap.md +164 -0
  15. sekejap-0.5.3/docs/sekejap-sql-examples.md +283 -0
  16. sekejap-0.5.3/docs/sekejap-sql.md +101 -0
  17. sekejap-0.5.3/docs/skill.md +456 -0
  18. sekejap-0.5.3/docs/temporal-index.md +287 -0
  19. sekejap-0.5.3/docs/user-guide.md +440 -0
  20. sekejap-0.5.3/examples/benchmark.rs +707 -0
  21. sekejap-0.5.3/llms-full.txt +449 -0
  22. sekejap-0.5.3/llms.txt +547 -0
  23. sekejap-0.5.3/pyproject.toml +21 -0
  24. sekejap-0.5.3/python/sekejap/__init__.py +5 -0
  25. sekejap-0.5.3/python/sekejap/__main__.py +156 -0
  26. sekejap-0.5.3/src/arena.rs +197 -0
  27. sekejap-0.5.3/src/collection_bitmap.rs +227 -0
  28. sekejap-0.5.3/src/db.rs +1832 -0
  29. sekejap-0.5.3/src/fulltext/mod.rs +98 -0
  30. sekejap-0.5.3/src/fulltext/seekstorm.rs +61 -0
  31. sekejap-0.5.3/src/fulltext/tantivy.rs +115 -0
  32. sekejap-0.5.3/src/geometry.rs +342 -0
  33. sekejap-0.5.3/src/hnsw/algo.rs +214 -0
  34. sekejap-0.5.3/src/hnsw/distance.rs +342 -0
  35. sekejap-0.5.3/src/hnsw/graph.rs +142 -0
  36. sekejap-0.5.3/src/hnsw/mod.rs +236 -0
  37. sekejap-0.5.3/src/hnsw/storage.rs +66 -0
  38. sekejap-0.5.3/src/index/hash_index.rs +172 -0
  39. sekejap-0.5.3/src/index/mod.rs +60 -0
  40. sekejap-0.5.3/src/index/range_index.rs +284 -0
  41. sekejap-0.5.3/src/index/time_index.rs +587 -0
  42. sekejap-0.5.3/src/lib.rs +35 -0
  43. sekejap-0.5.3/src/mmap_hash.rs +363 -0
  44. sekejap-0.5.3/src/sekejapql.rs +1562 -0
  45. sekejap-0.5.3/src/set.rs +2068 -0
  46. sekejap-0.5.3/src/sql/ast.rs +160 -0
  47. sekejap-0.5.3/src/sql/bind.rs +26 -0
  48. sekejap-0.5.3/src/sql/executor.rs +582 -0
  49. sekejap-0.5.3/src/sql/lowering.rs +755 -0
  50. sekejap-0.5.3/src/sql/mod.rs +15 -0
  51. sekejap-0.5.3/src/sql/parser.rs +864 -0
  52. sekejap-0.5.3/src/stores.rs +177 -0
  53. sekejap-0.5.3/src/txn/manager.rs +229 -0
  54. sekejap-0.5.3/src/txn/mod.rs +102 -0
  55. sekejap-0.5.3/src/txn/snapshot.rs +68 -0
  56. sekejap-0.5.3/src/txn/traits.rs +46 -0
  57. sekejap-0.5.3/src/txn/transaction.rs +123 -0
  58. sekejap-0.5.3/src/txn/version.rs +175 -0
  59. sekejap-0.5.3/src/types.rs +494 -0
  60. sekejap-0.5.3/src/wal/disk.rs +462 -0
  61. sekejap-0.5.3/src/wal/mod.rs +135 -0
  62. sekejap-0.5.3/src/wal/noop.rs +101 -0
  63. sekejap-0.5.3/src/wal/traits.rs +73 -0
  64. sekejap-0.5.3/tests/cases/m1_basic_node_ops/TC-1.1_create-node-with-entities/README.md +28 -0
  65. sekejap-0.5.3/tests/cases/m1_basic_node_ops/TC-1.1_create-node-with-entities/mod.rs +135 -0
  66. sekejap-0.5.3/tests/cases/m1_basic_node_ops/TC-1.2_upsert-ingestion-buffer/README.md +30 -0
  67. sekejap-0.5.3/tests/cases/m1_basic_node_ops/TC-1.2_upsert-ingestion-buffer/mod.rs +158 -0
  68. sekejap-0.5.3/tests/cases/m1_basic_node_ops/TC-1.3_spatial-index-registration/README.md +24 -0
  69. sekejap-0.5.3/tests/cases/m1_basic_node_ops/TC-1.3_spatial-index-registration/mod.rs +184 -0
  70. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.1_simple-node-promotion/README.md +27 -0
  71. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.1_simple-node-promotion/mod.rs +100 -0
  72. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.2_duplicate-detection/README.md +27 -0
  73. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.2_duplicate-detection/mod.rs +110 -0
  74. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.3_node-fusion/README.md +23 -0
  75. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.3_node-fusion/mod.rs +99 -0
  76. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.4_hierarchy-edge-creation/README.md +23 -0
  77. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.4_hierarchy-edge-creation/mod.rs +115 -0
  78. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.5_mvcc-snapshot-isolation/README.md +19 -0
  79. sekejap-0.5.3/tests/cases/m2_tier2_promotion/TC-2.5_mvcc-snapshot-isolation/mod.rs +104 -0
  80. sekejap-0.5.3/tests/cases/m3_multimodal_search/TC-3.1_vector-similarity/README.md +20 -0
  81. sekejap-0.5.3/tests/cases/m3_multimodal_search/TC-3.2_spatial-radius/README.md +17 -0
  82. sekejap-0.5.3/tests/cases/m3_multimodal_search/TC-3.3_time-window-filter/README.md +16 -0
  83. sekejap-0.5.3/tests/cases/m3_multimodal_search/TC-3.4_hybrid-vector-spatial-time/README.md +18 -0
  84. sekejap-0.5.3/tests/cases/m3_multimodal_search/TC-3.5_temporal-spatial-bucketing/README.md +18 -0
  85. sekejap-0.5.3/tests/cases/m4_root-cause-analysis/TC-4.1_backward-traversal/README.md +16 -0
  86. sekejap-0.5.3/tests/cases/m4_root-cause-analysis/TC-4.2_time-window-traversal/README.md +16 -0
  87. sekejap-0.5.3/tests/cases/m4_root-cause-analysis/TC-4.3_weight-threshold/README.md +16 -0
  88. sekejap-0.5.3/tests/cases/m4_root-cause-analysis/TC-4.4_evidence-attribution/README.md +20 -0
  89. sekejap-0.5.3/tests/cases/m4_root-cause-analysis/TC-4.5_solution-node-matching/README.md +17 -0
  90. sekejap-0.5.3/tests/cases/m4_root-cause-analysis/TC-4.6_full-rca-workflow/README.md +19 -0
  91. sekejap-0.5.3/tests/cases/m5_identity-payload-split/TC-5.1_blobstore-write/README.md +20 -0
  92. sekejap-0.5.3/tests/cases/m5_identity-payload-split/TC-5.2_blobstore-read/README.md +17 -0
  93. sekejap-0.5.3/tests/cases/m5_identity-payload-split/TC-5.3_nodeheader-payload-reference/README.md +17 -0
  94. sekejap-0.5.3/tests/cases/m5_identity-payload-split/TC-5.4_bptree-size-vs-payload/README.md +18 -0
  95. sekejap-0.5.3/tests/m10_index_metadata_health.rs +168 -0
  96. sekejap-0.5.3/tests/m11_geometry.rs +217 -0
  97. sekejap-0.5.3/tests/m1_basic_node_ops.rs +273 -0
  98. sekejap-0.5.3/tests/m2_tier2_promotion.rs +354 -0
  99. sekejap-0.5.3/tests/m3_multimodal_search.rs +396 -0
  100. sekejap-0.5.3/tests/m4_root_cause_analysis.rs +496 -0
  101. sekejap-0.5.3/tests/m5_identity_payload_split.rs +199 -0
  102. sekejap-0.5.3/tests/m6_improvements.rs +365 -0
  103. sekejap-0.5.3/tests/m7_scale.rs +300 -0
  104. sekejap-0.5.3/tests/m8_upsert_canonical_semantics.rs +116 -0
  105. sekejap-0.5.3/tests/m9_query_contract_extensions.rs +110 -0
  106. sekejap-0.5.3/tests/python_parity_test.py +145 -0
  107. sekejap-0.5.3/wrappers/python/Cargo.toml +56 -0
  108. sekejap-0.5.3/wrappers/python/src/lib.rs +430 -0
@@ -0,0 +1,113 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ publish-rust-library:
10
+ name: Publish Rust Library
11
+ runs-on: ubuntu-latest
12
+ environment:
13
+ name: release
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - name: Install Rust
17
+ uses: dtolnay/rust-toolchain@stable
18
+ - name: Publish sekejap to Crates.io
19
+ run: cargo publish -p sekejap --all-features
20
+ env:
21
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
22
+ RUSTFLAGS: "-C target-feature=+aes,+sse2"
23
+
24
+ publish-rust-cli:
25
+ name: Publish Rust CLI
26
+ runs-on: ubuntu-latest
27
+ needs: publish-rust-library
28
+ environment:
29
+ name: release
30
+ steps:
31
+ - uses: actions/checkout@v4
32
+ - name: Install Rust
33
+ uses: dtolnay/rust-toolchain@stable
34
+ - name: Publish sekejap-cli to Crates.io
35
+ run: cargo publish -p sekejap-cli
36
+ env:
37
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
38
+ RUSTFLAGS: "-C target-feature=+aes,+sse2"
39
+
40
+ build-python-wheels:
41
+ name: Build Python Wheels
42
+ runs-on: ${{ matrix.os }}
43
+ permissions:
44
+ id-token: write
45
+ strategy:
46
+ matrix:
47
+ include:
48
+ - os: ubuntu-latest
49
+ target: x86_64
50
+ - os: ubuntu-latest
51
+ target: aarch64
52
+ - os: windows-latest
53
+ target: x64
54
+ steps:
55
+ - uses: actions/checkout@v4
56
+ - name: Build wheels
57
+ uses: PyO3/maturin-action@v1
58
+ env:
59
+ PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
60
+ with:
61
+ target: ${{ matrix.target }}
62
+ args: --release --out dist -i python3.8 -i python3.9 -i python3.10 -i python3.11 -i python3.12 -i python3.13
63
+ working-directory: wrappers/python
64
+ - name: Upload wheel artifacts
65
+ uses: actions/upload-artifact@v4
66
+ with:
67
+ name: python-dist-${{ matrix.os }}-${{ matrix.target }}
68
+ path: wrappers/python/dist
69
+
70
+ build-python-sdist:
71
+ name: Build Python sdist
72
+ runs-on: ubuntu-latest
73
+ steps:
74
+ - uses: actions/checkout@v4
75
+ - name: Build sdist
76
+ uses: PyO3/maturin-action@v1
77
+ with:
78
+ command: sdist
79
+ args: --out dist
80
+ working-directory: wrappers/python
81
+ - name: Upload sdist artifact
82
+ uses: actions/upload-artifact@v4
83
+ with:
84
+ name: python-sdist
85
+ path: wrappers/python/dist
86
+
87
+ publish-python:
88
+ name: Publish Python Distributions
89
+ runs-on: ubuntu-latest
90
+ needs:
91
+ - build-python-wheels
92
+ - build-python-sdist
93
+ permissions:
94
+ id-token: write
95
+ environment:
96
+ name: release
97
+ steps:
98
+ - name: Download wheel artifacts
99
+ uses: actions/download-artifact@v4
100
+ with:
101
+ pattern: python-dist-*
102
+ path: wrappers/python/dist
103
+ merge-multiple: true
104
+ - name: Download sdist artifact
105
+ uses: actions/download-artifact@v4
106
+ with:
107
+ name: python-sdist
108
+ path: wrappers/python/dist
109
+ - name: Publish to PyPI via Trusted Publisher
110
+ uses: pypa/gh-action-pypi-publish@release/v1
111
+ with:
112
+ packages-dir: wrappers/python/dist
113
+ skip-existing: true
@@ -0,0 +1,101 @@
1
+ # ============================================
2
+ # Rust / Cargo
3
+ # ============================================
4
+ ./target
5
+ Cargo.lock
6
+ *.pdb
7
+ *.rlib
8
+ *.so
9
+ *.dylib
10
+ *.dll
11
+
12
+ # rust-analyzer
13
+ /rls
14
+
15
+ # ============================================
16
+ # Python / PyO3
17
+ # ============================================
18
+ *.pyc
19
+ *.pyo
20
+ __pycache__/
21
+ *.egg-info/
22
+ dist/
23
+ build/
24
+ .eggs/
25
+ *.whl
26
+ .pytest_cache/
27
+ .coverage
28
+ cover/
29
+ htmlcov/
30
+
31
+ # Python virtual environments
32
+ venv/
33
+ env/
34
+ ENV/
35
+ .venv/
36
+
37
+ # maturin develop
38
+ *.so
39
+ *.pyd
40
+
41
+ # ============================================
42
+ # IDE & Editors
43
+ # ============================================
44
+ .idea/
45
+ .vscode/
46
+ *.swp
47
+ *.swo
48
+ *~
49
+
50
+ # ============================================
51
+ # macOS
52
+ # ============================================
53
+ .DS_Store
54
+ .AppleDouble
55
+ .LSOverride
56
+
57
+ # ============================================
58
+ # Project Data (runtime data)
59
+ # ============================================
60
+ /data/
61
+ /data/*
62
+ !/data/.gitkeep
63
+ /blobs/
64
+ /fulltext/
65
+ *.db
66
+ *.wal
67
+ *.shm
68
+
69
+ # ============================================
70
+ # Temporary Files
71
+ # ============================================
72
+ *.tmp
73
+ *.log
74
+ *.bak
75
+ *~
76
+ .tmp/
77
+ temp/
78
+ result.md
79
+
80
+ # ============================================
81
+ # Testing
82
+ # ============================================
83
+ /coverage/
84
+ /cargo-test/
85
+ test-results/
86
+
87
+ # ============================================
88
+ # Secrets (never commit)
89
+ # ============================================
90
+ *.env
91
+ .env.local
92
+ *.pem
93
+ *.key
94
+ target/.rustc_info.json
95
+ target
96
+
97
+ /unused
98
+ /scenarios
99
+ bench_sekejap_db/
100
+ sekejap-benchmark/bench_sekejap_db/
101
+ sekejap-benchmark/bench_sqlite.db
@@ -0,0 +1,9 @@
1
+ {
2
+ "cargo": {
3
+ "features": ["vector", "spatial", "fulltext", "all"]
4
+ },
5
+ "check": {
6
+ "command": "check",
7
+ "features": ["all"]
8
+ }
9
+ }