syftbox-sdk 0.1.5__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 (75) hide show
  1. syftbox_sdk-0.1.5/.bumpversion.cfg +17 -0
  2. syftbox_sdk-0.1.5/.github/workflows/ci.yml +63 -0
  3. syftbox_sdk-0.1.5/.github/workflows/coverage.yml +74 -0
  4. syftbox_sdk-0.1.5/.github/workflows/release.yml +266 -0
  5. syftbox_sdk-0.1.5/.gitignore +216 -0
  6. syftbox_sdk-0.1.5/.gitmodules +4 -0
  7. syftbox_sdk-0.1.5/Cargo.toml +33 -0
  8. syftbox_sdk-0.1.5/LICENSE +201 -0
  9. syftbox_sdk-0.1.5/PKG-INFO +51 -0
  10. syftbox_sdk-0.1.5/README.md +33 -0
  11. syftbox_sdk-0.1.5/clippy.sh +8 -0
  12. syftbox_sdk-0.1.5/coverage.sh +114 -0
  13. syftbox_sdk-0.1.5/lint.sh +10 -0
  14. syftbox_sdk-0.1.5/pyproject.toml +29 -0
  15. syftbox_sdk-0.1.5/python/Cargo.lock +3152 -0
  16. syftbox_sdk-0.1.5/python/Cargo.toml +18 -0
  17. syftbox_sdk-0.1.5/python/README.md +33 -0
  18. syftbox_sdk-0.1.5/python/src/lib.rs +291 -0
  19. syftbox_sdk-0.1.5/src/lib.rs +23 -0
  20. syftbox_sdk-0.1.5/src/syft_url.rs +193 -0
  21. syftbox_sdk-0.1.5/src/syftbox/app.rs +217 -0
  22. syftbox_sdk-0.1.5/src/syftbox/auth.rs +215 -0
  23. syftbox_sdk-0.1.5/src/syftbox/config.rs +100 -0
  24. syftbox_sdk-0.1.5/src/syftbox/control.rs +350 -0
  25. syftbox_sdk-0.1.5/src/syftbox/endpoint.rs +401 -0
  26. syftbox_sdk-0.1.5/src/syftbox/mod.rs +48 -0
  27. syftbox_sdk-0.1.5/src/syftbox/rpc.rs +183 -0
  28. syftbox_sdk-0.1.5/src/syftbox/storage.rs +679 -0
  29. syftbox_sdk-0.1.5/src/syftbox/syc.rs +222 -0
  30. syftbox_sdk-0.1.5/src/syftbox/types.rs +315 -0
  31. syftbox_sdk-0.1.5/submodules.sh +6 -0
  32. syftbox_sdk-0.1.5/syft-crypto-core/Cargo.toml +57 -0
  33. syftbox_sdk-0.1.5/syft-crypto-core/protocol/.cargo/config.toml +3 -0
  34. syftbox_sdk-0.1.5/syft-crypto-core/protocol/Cargo.toml +41 -0
  35. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/datasite/bytes.rs +162 -0
  36. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/datasite/context.rs +247 -0
  37. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/datasite/crypto.rs +179 -0
  38. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/datasite/mod.rs +19 -0
  39. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/did_utils.rs +10 -0
  40. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/encryption/constant_time.rs +32 -0
  41. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/encryption/file_cipher.rs +45 -0
  42. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/encryption/key_wrap.rs +115 -0
  43. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/encryption/mod.rs +217 -0
  44. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/encryption/pqxdh.rs +210 -0
  45. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/encryption/tests.rs +198 -0
  46. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/envelope.rs +629 -0
  47. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/error.rs +172 -0
  48. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/identity.rs +57 -0
  49. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/keys.rs +419 -0
  50. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/lib.rs +17 -0
  51. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/serialization.rs +359 -0
  52. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/storage.rs +205 -0
  53. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/storage_unix.rs +93 -0
  54. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/storage_windows.rs +17 -0
  55. syftbox_sdk-0.1.5/syft-crypto-core/protocol/src/tests/envelope_tests.rs +147 -0
  56. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/datasite_bytes_test.rs +222 -0
  57. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/did_test.rs +75 -0
  58. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/encryption_test.rs +125 -0
  59. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/envelope_signing_test.rs +941 -0
  60. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/error_test.rs +60 -0
  61. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/file_encryption_test.rs +1492 -0
  62. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/key_gen_test.rs +180 -0
  63. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/keys_fingerprint_test.rs +98 -0
  64. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/keys_serialization_test.rs +106 -0
  65. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/keys_storage_test.rs +164 -0
  66. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/pqxdh_keys_test.rs +497 -0
  67. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/pqxdh_security_test.rs +411 -0
  68. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/pqxdh_test.rs +343 -0
  69. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/private_keys_test.rs +105 -0
  70. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/recovery_key_mnemonic_test.rs +288 -0
  71. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/syft_private_public_keys_test.rs +430 -0
  72. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/syft_recovery_key_test.rs +327 -0
  73. syftbox_sdk-0.1.5/syft-crypto-core/protocol/tests/x3dh_test.rs +176 -0
  74. syftbox_sdk-0.1.5/test.sh +45 -0
  75. syftbox_sdk-0.1.5/tests/syftbox_basic.rs +62 -0
@@ -0,0 +1,17 @@
1
+ [bumpversion]
2
+ current_version = 0.1.5
3
+ commit = true
4
+ tag = false
5
+ message = chore: bump version to {new_version}
6
+
7
+ [bumpversion:file:Cargo.toml]
8
+ search = version = "{current_version}"
9
+ replace = version = "{new_version}"
10
+
11
+ [bumpversion:file:python/Cargo.toml]
12
+ search = version = "{current_version}"
13
+ replace = version = "{new_version}"
14
+
15
+ [bumpversion:file:python/pyproject.toml]
16
+ search = version = "{current_version}"
17
+ replace = version = "{new_version}"
@@ -0,0 +1,63 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main, develop]
6
+ # Optionally, allow manual trigger for debugging
7
+ workflow_dispatch:
8
+
9
+ env:
10
+ CARGO_TERM_COLOR: always
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ test:
18
+ runs-on: ${{ matrix.os }}
19
+ strategy:
20
+ matrix:
21
+ os: [ubuntu-latest, macos-latest, windows-latest]
22
+
23
+ steps:
24
+ - name: Checkout code
25
+ uses: actions/checkout@v4
26
+ with:
27
+ submodules: recursive
28
+
29
+ - name: Install protoc
30
+ uses: arduino/setup-protoc@v2
31
+ with:
32
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
33
+
34
+ - name: Setup Rust
35
+ uses: dtolnay/rust-toolchain@master
36
+ with:
37
+ toolchain: 1.91.0
38
+ components: rustfmt, clippy
39
+
40
+ - name: Show Rust versions
41
+ run: |
42
+ rustc --version
43
+ cargo --version
44
+ rustfmt --version
45
+
46
+ - name: Cache Rust dependencies and build artifacts
47
+ uses: Swatinem/rust-cache@v2
48
+ with:
49
+ workspaces: ". -> target"
50
+
51
+ - name: Check formatting
52
+ if: matrix.os != 'windows-latest'
53
+ run: cargo fmt --all -- --check
54
+
55
+ - name: Run clippy (all targets)
56
+ if: matrix.os != 'windows-latest'
57
+ run: cargo clippy --all-targets --all-features --no-deps -- -D warnings
58
+
59
+ - name: Run tests
60
+ run: cargo test --all-features --verbose
61
+
62
+ - name: Build
63
+ run: cargo build --all-features --verbose
@@ -0,0 +1,74 @@
1
+ name: Coverage
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 2 * * *' # Nightly at 02:00 UTC
6
+ workflow_dispatch:
7
+
8
+ env:
9
+ CARGO_TERM_COLOR: always
10
+
11
+ jobs:
12
+ coverage:
13
+ name: Generate Coverage Report
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v4
18
+
19
+ - name: Install protoc
20
+ uses: arduino/setup-protoc@v2
21
+ with:
22
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
23
+
24
+ - name: Setup Rust
25
+ uses: dtolnay/rust-toolchain@master
26
+ with:
27
+ toolchain: 1.91.0
28
+
29
+ - name: Show Rust versions
30
+ run: |
31
+ rustc --version
32
+ cargo --version
33
+
34
+ - name: Install required components
35
+ run: |
36
+ rustup component add rustfmt
37
+ rustup component add clippy
38
+ rustup component add llvm-tools-preview
39
+
40
+ - name: Install cargo-llvm-cov
41
+ run: cargo install cargo-llvm-cov --locked
42
+
43
+ - name: Cache cargo registry
44
+ uses: actions/cache@v4
45
+ with:
46
+ path: ~/.cargo/registry
47
+ key: ${{ runner.os }}-coverage-cargo-registry-${{ hashFiles('Cargo.lock') }}
48
+
49
+ - name: Cache cargo index
50
+ uses: actions/cache@v4
51
+ with:
52
+ path: ~/.cargo/git
53
+ key: ${{ runner.os }}-coverage-cargo-index-${{ hashFiles('Cargo.lock') }}
54
+
55
+ - name: Cache cargo build
56
+ uses: actions/cache@v4
57
+ with:
58
+ path: target
59
+ key: ${{ runner.os }}-coverage-cargo-build-${{ hashFiles('Cargo.lock') }}
60
+
61
+ - name: Run coverage script (full clean)
62
+ run: ./coverage.sh --full-clean
63
+
64
+ - name: Upload HTML report
65
+ uses: actions/upload-artifact@v4
66
+ with:
67
+ name: coverage-html
68
+ path: target/llvm-cov/html
69
+
70
+ - name: Upload LCOV file
71
+ uses: actions/upload-artifact@v4
72
+ with:
73
+ name: coverage-lcov
74
+ path: target/coverage/lcov.info
@@ -0,0 +1,266 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ part:
7
+ description: "Version part to bump"
8
+ required: false
9
+ type: choice
10
+ default: patch
11
+ options:
12
+ - patch
13
+ - minor
14
+ - major
15
+ skip_bump:
16
+ description: "Skip version bump (build/publish current version)"
17
+ required: false
18
+ type: boolean
19
+ default: false
20
+
21
+ permissions:
22
+ contents: write
23
+ packages: write
24
+
25
+ env:
26
+ CARGO_TERM_COLOR: always
27
+
28
+ jobs:
29
+ bump:
30
+ name: Bump version
31
+ runs-on: ubuntu-latest
32
+ outputs:
33
+ version: ${{ steps.out.outputs.version }}
34
+ steps:
35
+ - uses: actions/checkout@v4
36
+ with:
37
+ fetch-depth: 0
38
+ submodules: recursive
39
+ token: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }}
40
+
41
+ - uses: actions/setup-python@v5
42
+ with:
43
+ python-version: "3.13"
44
+
45
+ - name: Install bump2version
46
+ run: pip install --upgrade bump2version
47
+
48
+ - name: Configure git user
49
+ run: |
50
+ git config user.name "github-actions[bot]"
51
+ git config user.email "github-actions[bot]@users.noreply.github.com"
52
+
53
+ - name: Bump or reuse version
54
+ env:
55
+ PART: ${{ inputs.part }}
56
+ SKIP_BUMP: ${{ inputs.skip_bump }}
57
+ run: |
58
+ if [ "$SKIP_BUMP" = "true" ]; then
59
+ echo "Skipping bump; using current version"
60
+ else
61
+ bump2version "$PART"
62
+ fi
63
+
64
+ - name: Push changes
65
+ run: git push origin HEAD
66
+
67
+ - name: Output version
68
+ id: out
69
+ run: |
70
+ VERSION=$(grep '^version = ' Cargo.toml | head -1 | cut -d'"' -f2)
71
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
72
+
73
+ test:
74
+ name: Tests
75
+ needs: bump
76
+ runs-on: ubuntu-latest
77
+ steps:
78
+ - uses: actions/checkout@v4
79
+ with:
80
+ ref: main
81
+ submodules: recursive
82
+ fetch-depth: 0
83
+
84
+ - name: Install protoc
85
+ uses: arduino/setup-protoc@v2
86
+ with:
87
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
88
+
89
+ - name: Setup Rust
90
+ uses: dtolnay/rust-toolchain@master
91
+ with:
92
+ toolchain: 1.91.0
93
+ components: rustfmt, clippy
94
+
95
+ - uses: Swatinem/rust-cache@v2
96
+ with:
97
+ workspaces: ". -> target"
98
+
99
+ - name: Check formatting
100
+ run: cargo fmt --all -- --check
101
+
102
+ - name: Run clippy
103
+ run: cargo clippy --all-targets --all-features --no-deps -- -D warnings
104
+
105
+ - name: Run tests
106
+ run: cargo test --all-features --verbose
107
+
108
+ build-wheels:
109
+ name: Build Python wheels
110
+ needs: bump
111
+ runs-on: ${{ matrix.os }}
112
+ strategy:
113
+ fail-fast: false
114
+ matrix:
115
+ include:
116
+ - os: ubuntu-latest
117
+ target: x86_64-unknown-linux-gnu
118
+ manylinux: auto
119
+ py-interpreter: "python3.13"
120
+ - os: ubuntu-24.04-arm
121
+ target: aarch64-unknown-linux-gnu
122
+ manylinux: auto
123
+ py-interpreter: "python3.13"
124
+ - os: macos-latest
125
+ target: aarch64-apple-darwin
126
+ manylinux: off
127
+ py-interpreter: "python3.13"
128
+ - os: macos-15-intel
129
+ target: x86_64-apple-darwin
130
+ manylinux: off
131
+ py-interpreter: "python3.13"
132
+ - os: windows-latest
133
+ target: x86_64-pc-windows-msvc
134
+ manylinux: off
135
+ py-interpreter: "python3.13"
136
+
137
+ steps:
138
+ - uses: actions/checkout@v4
139
+ with:
140
+ ref: main
141
+ submodules: recursive
142
+ fetch-depth: 0
143
+
144
+ - name: Install protoc
145
+ uses: arduino/setup-protoc@v2
146
+ with:
147
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
148
+
149
+ - name: Setup Python 3.12
150
+ uses: actions/setup-python@v5
151
+ with:
152
+ python-version: "3.13"
153
+
154
+ - name: Set up Rust
155
+ uses: dtolnay/rust-toolchain@master
156
+ with:
157
+ toolchain: 1.91.0
158
+ targets: ${{ matrix.target }}
159
+
160
+ - name: Build wheels
161
+ uses: PyO3/maturin-action@v1
162
+ with:
163
+ working-directory: python
164
+ target: ${{ matrix.target }}
165
+ args: --release --out dist --interpreter ${{ matrix.py-interpreter }}
166
+ sccache: "true"
167
+ manylinux: ${{ matrix.manylinux }}
168
+ before-script-linux: |
169
+ PROTOC_VERSION="28.3"
170
+ ARCH="$(uname -m)"
171
+ if [ "$ARCH" = "aarch64" ]; then
172
+ PROTOC_ARCH="aarch_64"
173
+ else
174
+ PROTOC_ARCH="$ARCH"
175
+ fi
176
+ curl -LO "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip"
177
+ unzip -q protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip -d /usr/local
178
+ rm protoc-${PROTOC_VERSION}-linux-${PROTOC_ARCH}.zip
179
+ protoc --version
180
+
181
+ - name: Upload wheels
182
+ uses: actions/upload-artifact@v4
183
+ with:
184
+ name: wheels-${{ matrix.target }}-${{ github.run_attempt }}
185
+ path: python/dist/*.whl
186
+
187
+ build-sdist:
188
+ name: Build sdist
189
+ needs: bump
190
+ runs-on: ubuntu-latest
191
+ steps:
192
+ - uses: actions/checkout@v4
193
+ with:
194
+ ref: main
195
+ submodules: recursive
196
+ fetch-depth: 0
197
+
198
+ - name: Install protoc
199
+ uses: arduino/setup-protoc@v2
200
+ with:
201
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
202
+
203
+ - name: Build sdist
204
+ uses: PyO3/maturin-action@v1
205
+ with:
206
+ working-directory: python
207
+ command: sdist
208
+ args: --out dist
209
+
210
+ - name: Upload sdist
211
+ uses: actions/upload-artifact@v4
212
+ with:
213
+ name: sdist-${{ github.run_attempt }}
214
+ path: python/dist/*.tar.gz
215
+
216
+ publish-crate:
217
+ name: Publish crate
218
+ needs: [bump, test]
219
+ runs-on: ubuntu-latest
220
+ steps:
221
+ - uses: actions/checkout@v4
222
+ with:
223
+ ref: main
224
+ submodules: recursive
225
+ fetch-depth: 0
226
+
227
+ - name: Install protoc
228
+ uses: arduino/setup-protoc@v2
229
+ with:
230
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
231
+
232
+ - name: Install Rust
233
+ uses: dtolnay/rust-toolchain@master
234
+ with:
235
+ toolchain: 1.91.0
236
+
237
+ - name: Publish to crates.io
238
+ env:
239
+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
240
+ run: cargo publish --package syftbox-sdk
241
+
242
+ publish-pypi:
243
+ name: Publish PyPI
244
+ needs: [bump, build-wheels, build-sdist, test]
245
+ runs-on: ubuntu-latest
246
+ permissions:
247
+ id-token: write
248
+ steps:
249
+ - name: Download wheel artifacts
250
+ uses: actions/download-artifact@v4
251
+ with:
252
+ path: dist
253
+ pattern: wheels-*
254
+ merge-multiple: true
255
+
256
+ - name: Download sdist
257
+ uses: actions/download-artifact@v4
258
+ with:
259
+ path: dist
260
+ name: sdist-${{ github.run_attempt }}
261
+
262
+ - name: Publish to PyPI
263
+ uses: pypa/gh-action-pypi-publish@release/v1
264
+ with:
265
+ packages-dir: dist/
266
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,216 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+ #poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ #pdm.lock
116
+ #pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ #pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # SageMath parsed files
135
+ *.sage.py
136
+
137
+ # Environments
138
+ .env
139
+ .envrc
140
+ .venv
141
+ env/
142
+ venv/
143
+ ENV/
144
+ env.bak/
145
+ venv.bak/
146
+
147
+ # Spyder project settings
148
+ .spyderproject
149
+ .spyproject
150
+
151
+ # Rope project settings
152
+ .ropeproject
153
+
154
+ # mkdocs documentation
155
+ /site
156
+
157
+ # mypy
158
+ .mypy_cache/
159
+ .dmypy.json
160
+ dmypy.json
161
+
162
+ # Pyre type checker
163
+ .pyre/
164
+
165
+ # pytype static type analyzer
166
+ .pytype/
167
+
168
+ # Cython debug symbols
169
+ cython_debug/
170
+
171
+ # PyCharm
172
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
173
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
174
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
175
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
176
+ #.idea/
177
+
178
+ # Abstra
179
+ # Abstra is an AI-powered process automation framework.
180
+ # Ignore directories containing user credentials, local state, and settings.
181
+ # Learn more at https://abstra.io/docs
182
+ .abstra/
183
+
184
+ # Visual Studio Code
185
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
186
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
187
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
188
+ # you could uncomment the following to ignore the entire vscode folder
189
+ # .vscode/
190
+
191
+ # Ruff stuff:
192
+ .ruff_cache/
193
+
194
+ # PyPI configuration file
195
+ .pypirc
196
+
197
+ # Cursor
198
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
199
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
200
+ # refer to https://docs.cursor.com/context/ignore-files
201
+ .cursorignore
202
+ .cursorindexingignore
203
+
204
+ # Marimo
205
+ marimo/_static/
206
+ marimo/_lsp/
207
+ __marimo__/
208
+
209
+ .nextflow/*
210
+ data/*
211
+ work/*
212
+ results/*
213
+ submission/results/*
214
+
215
+ **/.claude/*
216
+ Cargo.lock
@@ -0,0 +1,4 @@
1
+ [submodule "syft-crypto-core"]
2
+ path = syft-crypto-core
3
+ url = https://github.com/OpenMined/syft-crypto-core.git
4
+
@@ -0,0 +1,33 @@
1
+ [package]
2
+ name = "syftbox-sdk"
3
+ version = "0.1.5"
4
+ edition = "2021"
5
+ license = "Apache-2.0"
6
+ description = "Reusable SyftBox client, storage, and RPC helpers"
7
+ repository = "https://github.com/OpenMined/syftbox-sdk"
8
+
9
+ [features]
10
+ default = ["crypto", "process", "auth"]
11
+ crypto = []
12
+ process = []
13
+ auth = ["reqwest", "tokio"]
14
+ test-plaintext = []
15
+
16
+ [dependencies]
17
+ anyhow = "1.0"
18
+ serde = { version = "1.0", features = ["derive"] }
19
+ serde_json = "1.0"
20
+ dirs = "5.0"
21
+ walkdir = "2.4"
22
+ thiserror = "1.0"
23
+ tracing = "0.1"
24
+ tokio = { version = "1.40", features = ["macros", "rt"], optional = true }
25
+ reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "json"], optional = true }
26
+ base64 = "0.22"
27
+ chrono = { version = "0.4", features = ["serde"] }
28
+ uuid = { version = "1.10", features = ["v4"] }
29
+
30
+ syft-crypto-protocol = { path = "./syft-crypto-core/protocol", version = "0.1.0-beta.5" }
31
+
32
+ [dev-dependencies]
33
+ tempfile = "3.12"