xpeek 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 (46) hide show
  1. xpeek-0.1.0/.github/workflows/ci.yml +35 -0
  2. xpeek-0.1.0/.github/workflows/release.yml +162 -0
  3. xpeek-0.1.0/.gitignore +6 -0
  4. xpeek-0.1.0/Cargo.lock +1320 -0
  5. xpeek-0.1.0/Cargo.toml +50 -0
  6. xpeek-0.1.0/LICENSE +21 -0
  7. xpeek-0.1.0/PKG-INFO +136 -0
  8. xpeek-0.1.0/README.md +115 -0
  9. xpeek-0.1.0/SKILL.md +33 -0
  10. xpeek-0.1.0/assets/bench-speed-dark.svg +100 -0
  11. xpeek-0.1.0/assets/bench-speed-light.svg +100 -0
  12. xpeek-0.1.0/assets/hero-dark.svg +33 -0
  13. xpeek-0.1.0/assets/hero-light.svg +33 -0
  14. xpeek-0.1.0/assets/social-preview.png +0 -0
  15. xpeek-0.1.0/benchmarks/README.md +20 -0
  16. xpeek-0.1.0/benchmarks/results.json +119 -0
  17. xpeek-0.1.0/benchmarks/run_benchmarks.py +345 -0
  18. xpeek-0.1.0/examples/after.safetensors +0 -0
  19. xpeek-0.1.0/examples/before.safetensors +0 -0
  20. xpeek-0.1.0/pyproject.toml +37 -0
  21. xpeek-0.1.0/scripts/install.ps1 +27 -0
  22. xpeek-0.1.0/scripts/install.sh +50 -0
  23. xpeek-0.1.0/src/agent.rs +467 -0
  24. xpeek-0.1.0/src/diff.rs +302 -0
  25. xpeek-0.1.0/src/formats/columnar.rs +891 -0
  26. xpeek-0.1.0/src/formats/gguf.rs +335 -0
  27. xpeek-0.1.0/src/formats/mod.rs +661 -0
  28. xpeek-0.1.0/src/formats/numpy.rs +503 -0
  29. xpeek-0.1.0/src/formats/onnx.rs +1355 -0
  30. xpeek-0.1.0/src/formats/pickle.rs +1419 -0
  31. xpeek-0.1.0/src/formats/pytorch.rs +879 -0
  32. xpeek-0.1.0/src/formats/safetensors.rs +440 -0
  33. xpeek-0.1.0/src/formats/tabular.rs +404 -0
  34. xpeek-0.1.0/src/git.rs +141 -0
  35. xpeek-0.1.0/src/ir.rs +423 -0
  36. xpeek-0.1.0/src/lib.rs +8 -0
  37. xpeek-0.1.0/src/main.rs +415 -0
  38. xpeek-0.1.0/src/mcp.rs +336 -0
  39. xpeek-0.1.0/src/render.rs +861 -0
  40. xpeek-0.1.0/src/stats.rs +403 -0
  41. xpeek-0.1.0/tests/agent_mcp.rs +195 -0
  42. xpeek-0.1.0/tests/columnar.rs +229 -0
  43. xpeek-0.1.0/tests/integration.rs +460 -0
  44. xpeek-0.1.0/tests/onnx.rs +419 -0
  45. xpeek-0.1.0/tests/pytorch_pickle.rs +739 -0
  46. xpeek-0.1.0/tests/ux_features.rs +239 -0
@@ -0,0 +1,35 @@
1
+ name: ci
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ strategy:
11
+ fail-fast: false
12
+ matrix:
13
+ os: [ubuntu-latest, macos-latest, windows-latest]
14
+ runs-on: ${{ matrix.os }}
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: dtolnay/rust-toolchain@stable
18
+ with:
19
+ components: rustfmt, clippy
20
+ - name: Check formatting
21
+ run: cargo fmt --all -- --check
22
+ - name: Check clippy
23
+ run: cargo clippy --all-targets -- -D warnings
24
+ - name: Run tests
25
+ run: cargo test
26
+ - name: Audit C dependencies (Linux)
27
+ if: runner.os == 'Linux'
28
+ shell: bash
29
+ run: |
30
+ if cargo tree --edges normal | grep -E "(openssl-sys|libz-sys|lz4-sys|bzip2-sys|lzma-sys|hdf5-sys|blosc-src|openjpeg-sys)"; then
31
+ echo "Banned system C dependency detected in cargo tree"
32
+ exit 1
33
+ fi
34
+ - name: Smoke test binary
35
+ run: cargo run -- --version && cargo run -- help --json
@@ -0,0 +1,162 @@
1
+ name: release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: write
11
+ id-token: write
12
+
13
+ jobs:
14
+ build-binaries:
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ include:
19
+ - target: x86_64-unknown-linux-gnu
20
+ os: ubuntu-latest
21
+ ext: ""
22
+ archive: tgz
23
+ - target: aarch64-unknown-linux-gnu
24
+ os: ubuntu-24.04-arm
25
+ ext: ""
26
+ archive: tgz
27
+ - target: x86_64-apple-darwin
28
+ os: macos-15-intel
29
+ ext: ""
30
+ archive: tgz
31
+ - target: aarch64-apple-darwin
32
+ os: macos-latest
33
+ ext: ""
34
+ archive: tgz
35
+ - target: x86_64-pc-windows-msvc
36
+ os: windows-latest
37
+ ext: ".exe"
38
+ archive: zip
39
+ runs-on: ${{ matrix.os }}
40
+ steps:
41
+ - uses: actions/checkout@v4
42
+ - uses: dtolnay/rust-toolchain@stable
43
+ with:
44
+ targets: ${{ matrix.target }}
45
+ - name: Build release binary
46
+ run: cargo build --release --locked --target ${{ matrix.target }}
47
+ - name: Package archive (Unix)
48
+ if: matrix.archive == 'tgz'
49
+ shell: bash
50
+ run: |
51
+ mkdir -p dist
52
+ tar -czf "dist/xpeek-${{ matrix.target }}.tgz" -C "target/${{ matrix.target }}/release" "xpeek${{ matrix.ext }}"
53
+ sha256sum "dist/xpeek-${{ matrix.target }}.tgz" > "dist/xpeek-${{ matrix.target }}.tgz.sha256"
54
+ - name: Package archive (Windows)
55
+ if: matrix.archive == 'zip'
56
+ shell: pwsh
57
+ run: |
58
+ New-Item -ItemType Directory -Force -Path dist | Out-Null
59
+ Compress-Archive -Path "target/${{ matrix.target }}/release/xpeek.exe" -DestinationPath "dist/xpeek-${{ matrix.target }}.zip"
60
+ $h = (Get-FileHash "dist/xpeek-${{ matrix.target }}.zip" -Algorithm SHA256).Hash.ToLower()
61
+ "$h xpeek-${{ matrix.target }}.zip" | Out-File -Encoding ascii "dist/xpeek-${{ matrix.target }}.zip.sha256"
62
+ - uses: actions/upload-artifact@v4
63
+ with:
64
+ name: bin-${{ matrix.target }}
65
+ path: dist/*
66
+
67
+ build-wheels:
68
+ strategy:
69
+ fail-fast: false
70
+ matrix:
71
+ include:
72
+ - os: ubuntu-latest
73
+ target: x86_64
74
+ manylinux: 2_28
75
+ args: --release --out dist
76
+ - os: ubuntu-24.04-arm
77
+ target: aarch64
78
+ manylinux: 2_28
79
+ args: --release --out dist
80
+ - os: macos-15-intel
81
+ target: x86_64
82
+ manylinux: ""
83
+ args: --release --out dist
84
+ - os: macos-latest
85
+ target: aarch64
86
+ manylinux: ""
87
+ args: --release --out dist
88
+ - os: windows-latest
89
+ target: x64
90
+ manylinux: ""
91
+ args: --release --out dist
92
+ runs-on: ${{ matrix.os }}
93
+ steps:
94
+ - uses: actions/checkout@v4
95
+ - uses: actions/setup-python@v5
96
+ with:
97
+ python-version: "3.12"
98
+ - uses: PyO3/maturin-action@v1
99
+ with:
100
+ target: ${{ matrix.target }}
101
+ manylinux: ${{ matrix.manylinux }}
102
+ args: ${{ matrix.args }}
103
+ - uses: actions/upload-artifact@v4
104
+ with:
105
+ name: wheel-${{ matrix.os }}-${{ matrix.target }}
106
+ path: dist/*.whl
107
+
108
+ sdist:
109
+ runs-on: ubuntu-latest
110
+ steps:
111
+ - uses: actions/checkout@v4
112
+ - uses: PyO3/maturin-action@v1
113
+ with:
114
+ command: sdist
115
+ args: --out dist
116
+ - uses: actions/upload-artifact@v4
117
+ with:
118
+ name: sdist
119
+ path: dist/*.tar.gz
120
+
121
+ publish-github-release:
122
+ if: startsWith(github.ref, 'refs/tags/v')
123
+ needs: [build-binaries]
124
+ runs-on: ubuntu-latest
125
+ steps:
126
+ - uses: actions/download-artifact@v4
127
+ with:
128
+ pattern: bin-*
129
+ path: release-assets
130
+ merge-multiple: true
131
+ - name: Combine checksums
132
+ run: |
133
+ cd release-assets
134
+ cat *.sha256 > SHA256SUMS.txt
135
+ rm -f *.sha256
136
+ - name: Create GitHub Release
137
+ env:
138
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
139
+ run: |
140
+ gh release create "${GITHUB_REF_NAME}" release-assets/* \
141
+ --repo "${GITHUB_REPOSITORY}" \
142
+ --title "xpeek ${GITHUB_REF_NAME}" \
143
+ --generate-notes
144
+
145
+ publish-pypi:
146
+ if: startsWith(github.ref, 'refs/tags/v')
147
+ needs: [build-wheels, sdist]
148
+ runs-on: ubuntu-latest
149
+ environment:
150
+ name: pypi
151
+ url: https://pypi.org/p/xpeek
152
+ steps:
153
+ - uses: actions/download-artifact@v4
154
+ with:
155
+ pattern: wheel-*
156
+ path: dist
157
+ merge-multiple: true
158
+ - uses: actions/download-artifact@v4
159
+ with:
160
+ name: sdist
161
+ path: dist
162
+ - uses: pypa/gh-action-pypi-publish@release/v1
xpeek-0.1.0/.gitignore ADDED
@@ -0,0 +1,6 @@
1
+ /target
2
+ /dist
3
+ *.egg-info
4
+ .venv
5
+ __pycache__
6
+ .DS_Store