faery 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.
- faery-0.1.0/.github/workflows/build_wheels.yml +80 -0
- faery-0.1.0/.gitignore +3 -0
- faery-0.1.0/Cargo.lock +496 -0
- faery-0.1.0/Cargo.toml +23 -0
- faery-0.1.0/LICENSE +7 -0
- faery-0.1.0/PKG-INFO +46 -0
- faery-0.1.0/README.md +32 -0
- faery-0.1.0/flatbuffers/events.fbs +14 -0
- faery-0.1.0/flatbuffers/frame.fbs +23 -0
- faery-0.1.0/flatbuffers/imus.fbs +21 -0
- faery-0.1.0/flatbuffers/ioheader.fbs +17 -0
- faery-0.1.0/flatbuffers/triggers.fbs +25 -0
- faery-0.1.0/pyproject.toml +35 -0
- faery-0.1.0/python/faery/__init__.py +43 -0
- faery-0.1.0/python/faery/aedat.pyi +20 -0
- faery-0.1.0/python/faery/dat.pyi +28 -0
- faery-0.1.0/python/faery/decoder.py +293 -0
- faery-0.1.0/python/faery/event_stream.pyi +23 -0
- faery-0.1.0/python/faery/evt.pyi +27 -0
- faery-0.1.0/python/faery/stream.py +166 -0
- faery-0.1.0/src/aedat/decoder.rs +434 -0
- faery-0.1.0/src/aedat/events_generated.rs +379 -0
- faery-0.1.0/src/aedat/frame_generated.rs +450 -0
- faery-0.1.0/src/aedat/imus_generated.rs +458 -0
- faery-0.1.0/src/aedat/ioheader_generated.rs +322 -0
- faery-0.1.0/src/aedat/mod.rs +541 -0
- faery-0.1.0/src/aedat/triggers_generated.rs +422 -0
- faery-0.1.0/src/dat/decoder.rs +234 -0
- faery-0.1.0/src/dat/mod.rs +190 -0
- faery-0.1.0/src/event_stream/decoder.rs +480 -0
- faery-0.1.0/src/event_stream/mod.rs +458 -0
- faery-0.1.0/src/evt/decoder.rs +379 -0
- faery-0.1.0/src/evt/mod.rs +244 -0
- faery-0.1.0/src/lib.rs +33 -0
- faery-0.1.0/src/utilities.rs +149 -0
- faery-0.1.0/test.py +380 -0
- faery-0.1.0/tests/.DS_Store +0 -0
- faery-0.1.0/tests/atis.es +0 -0
- faery-0.1.0/tests/color.es +0 -0
- faery-0.1.0/tests/davis346.aedat4 +0 -0
- faery-0.1.0/tests/dvs.es +0 -0
- faery-0.1.0/tests/evt2.raw +0 -0
- faery-0.1.0/tests/evt3.raw +0 -0
- faery-0.1.0/tests/gen4.dat +0 -0
- faery-0.1.0/tests/generic.es +0 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
name: Build
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
release:
|
|
7
|
+
types:
|
|
8
|
+
- published
|
|
9
|
+
|
|
10
|
+
env:
|
|
11
|
+
CIBW_ARCHS_MACOS: x86_64 arm64
|
|
12
|
+
CIBW_BEFORE_ALL_LINUX: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=stable --profile=minimal -y
|
|
13
|
+
CIBW_ENVIRONMENT_LINUX: 'PATH="$HOME/.cargo/bin:$PATH"'
|
|
14
|
+
CIBW_SKIP: cp36-* cp37-* pp* *i686
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build_wheels:
|
|
18
|
+
name: Build wheels on ${{ matrix.os }}
|
|
19
|
+
runs-on: ${{ matrix.os }}
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v3
|
|
25
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
26
|
+
- run: rustup target add aarch64-apple-darwin
|
|
27
|
+
if: startsWith(matrix.os, 'macos')
|
|
28
|
+
- run: rustup target add i686-pc-windows-msvc
|
|
29
|
+
if: startsWith(matrix.os, 'windows')
|
|
30
|
+
- uses: pypa/cibuildwheel@v2.16.2
|
|
31
|
+
- uses: actions/upload-artifact@v3
|
|
32
|
+
with:
|
|
33
|
+
name: wheelhouse
|
|
34
|
+
path: ./wheelhouse/*.whl
|
|
35
|
+
import_library:
|
|
36
|
+
name: Import library on ${{ matrix.os }} with Python ${{ matrix.python }}
|
|
37
|
+
runs-on: ${{ matrix.os }}
|
|
38
|
+
needs: [build_wheels]
|
|
39
|
+
strategy:
|
|
40
|
+
matrix:
|
|
41
|
+
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
42
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
43
|
+
steps:
|
|
44
|
+
- uses: actions/setup-python@v4
|
|
45
|
+
with:
|
|
46
|
+
python-version: ${{ matrix.python }}
|
|
47
|
+
- uses: actions/download-artifact@v3
|
|
48
|
+
with:
|
|
49
|
+
name: wheelhouse
|
|
50
|
+
path: wheelhouse
|
|
51
|
+
- run: python -m pip install --find-links wheelhouse faery
|
|
52
|
+
- run: python test.py
|
|
53
|
+
build_sdist:
|
|
54
|
+
name: Build source distribution
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
steps:
|
|
57
|
+
- uses: actions/checkout@v3
|
|
58
|
+
- run: pipx run build --sdist
|
|
59
|
+
- uses: actions/upload-artifact@v3
|
|
60
|
+
with:
|
|
61
|
+
name: dist
|
|
62
|
+
path: dist/*.tar.gz
|
|
63
|
+
upload_pypi:
|
|
64
|
+
name: Upload wheels and sidst to PyPI
|
|
65
|
+
runs-on: ubuntu-latest
|
|
66
|
+
needs: [build_wheels, import_library, build_sdist]
|
|
67
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
68
|
+
steps:
|
|
69
|
+
- uses: actions/download-artifact@v3
|
|
70
|
+
with:
|
|
71
|
+
name: wheelhouse
|
|
72
|
+
path: wheelhouse
|
|
73
|
+
- uses: actions/download-artifact@v3
|
|
74
|
+
with:
|
|
75
|
+
name: dist
|
|
76
|
+
path: dist
|
|
77
|
+
- run: mv wheelhouse/* dist/
|
|
78
|
+
- uses: pypa/gh-action-pypi-publish@v1.8.10
|
|
79
|
+
with:
|
|
80
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
faery-0.1.0/.gitignore
ADDED
faery-0.1.0/Cargo.lock
ADDED
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.1.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bitflags"
|
|
13
|
+
version = "1.3.2"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "cc"
|
|
19
|
+
version = "1.0.83"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
|
|
22
|
+
dependencies = [
|
|
23
|
+
"jobserver",
|
|
24
|
+
"libc",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[[package]]
|
|
28
|
+
name = "cfg-if"
|
|
29
|
+
version = "1.0.0"
|
|
30
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
31
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
32
|
+
|
|
33
|
+
[[package]]
|
|
34
|
+
name = "flatbuffers"
|
|
35
|
+
version = "22.12.6"
|
|
36
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
37
|
+
checksum = "5ae1bfc84d904f75e7ef6f8796b020c606a9e8e271e2004c0a74f7edeedba45f"
|
|
38
|
+
dependencies = [
|
|
39
|
+
"bitflags",
|
|
40
|
+
"rustc_version",
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
[[package]]
|
|
44
|
+
name = "heck"
|
|
45
|
+
version = "0.4.1"
|
|
46
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
47
|
+
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
|
48
|
+
|
|
49
|
+
[[package]]
|
|
50
|
+
name = "indoc"
|
|
51
|
+
version = "2.0.4"
|
|
52
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
53
|
+
checksum = "1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8"
|
|
54
|
+
|
|
55
|
+
[[package]]
|
|
56
|
+
name = "jobserver"
|
|
57
|
+
version = "0.1.27"
|
|
58
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
59
|
+
checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d"
|
|
60
|
+
dependencies = [
|
|
61
|
+
"libc",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[[package]]
|
|
65
|
+
name = "libc"
|
|
66
|
+
version = "0.2.151"
|
|
67
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
68
|
+
checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4"
|
|
69
|
+
|
|
70
|
+
[[package]]
|
|
71
|
+
name = "lock_api"
|
|
72
|
+
version = "0.4.11"
|
|
73
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
74
|
+
checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
|
|
75
|
+
dependencies = [
|
|
76
|
+
"autocfg",
|
|
77
|
+
"scopeguard",
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
[[package]]
|
|
81
|
+
name = "lz4"
|
|
82
|
+
version = "1.24.0"
|
|
83
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
84
|
+
checksum = "7e9e2dd86df36ce760a60f6ff6ad526f7ba1f14ba0356f8254fb6905e6494df1"
|
|
85
|
+
dependencies = [
|
|
86
|
+
"libc",
|
|
87
|
+
"lz4-sys",
|
|
88
|
+
]
|
|
89
|
+
|
|
90
|
+
[[package]]
|
|
91
|
+
name = "lz4-sys"
|
|
92
|
+
version = "1.9.4"
|
|
93
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
94
|
+
checksum = "57d27b317e207b10f69f5e75494119e391a96f48861ae870d1da6edac98ca900"
|
|
95
|
+
dependencies = [
|
|
96
|
+
"cc",
|
|
97
|
+
"libc",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "matrixmultiply"
|
|
102
|
+
version = "0.3.8"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "7574c1cf36da4798ab73da5b215bbf444f50718207754cb522201d78d1cd0ff2"
|
|
105
|
+
dependencies = [
|
|
106
|
+
"autocfg",
|
|
107
|
+
"rawpointer",
|
|
108
|
+
]
|
|
109
|
+
|
|
110
|
+
[[package]]
|
|
111
|
+
name = "memoffset"
|
|
112
|
+
version = "0.9.0"
|
|
113
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
114
|
+
checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
|
|
115
|
+
dependencies = [
|
|
116
|
+
"autocfg",
|
|
117
|
+
]
|
|
118
|
+
|
|
119
|
+
[[package]]
|
|
120
|
+
name = "ndarray"
|
|
121
|
+
version = "0.15.6"
|
|
122
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
123
|
+
checksum = "adb12d4e967ec485a5f71c6311fe28158e9d6f4bc4a447b474184d0f91a8fa32"
|
|
124
|
+
dependencies = [
|
|
125
|
+
"matrixmultiply",
|
|
126
|
+
"num-complex",
|
|
127
|
+
"num-integer",
|
|
128
|
+
"num-traits",
|
|
129
|
+
"rawpointer",
|
|
130
|
+
]
|
|
131
|
+
|
|
132
|
+
[[package]]
|
|
133
|
+
name = "neuromorphic-types"
|
|
134
|
+
version = "0.4.0"
|
|
135
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
136
|
+
checksum = "2ae9a302788a6d1758106d19192a20e4e65366545c34892b7e0bacc26009a84e"
|
|
137
|
+
|
|
138
|
+
[[package]]
|
|
139
|
+
name = "num-complex"
|
|
140
|
+
version = "0.4.4"
|
|
141
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
142
|
+
checksum = "1ba157ca0885411de85d6ca030ba7e2a83a28636056c7c699b07c8b6f7383214"
|
|
143
|
+
dependencies = [
|
|
144
|
+
"num-traits",
|
|
145
|
+
]
|
|
146
|
+
|
|
147
|
+
[[package]]
|
|
148
|
+
name = "num-integer"
|
|
149
|
+
version = "0.1.45"
|
|
150
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
151
|
+
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
|
|
152
|
+
dependencies = [
|
|
153
|
+
"autocfg",
|
|
154
|
+
"num-traits",
|
|
155
|
+
]
|
|
156
|
+
|
|
157
|
+
[[package]]
|
|
158
|
+
name = "num-traits"
|
|
159
|
+
version = "0.2.17"
|
|
160
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
161
|
+
checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c"
|
|
162
|
+
dependencies = [
|
|
163
|
+
"autocfg",
|
|
164
|
+
]
|
|
165
|
+
|
|
166
|
+
[[package]]
|
|
167
|
+
name = "numpy"
|
|
168
|
+
version = "0.20.0"
|
|
169
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
170
|
+
checksum = "bef41cbb417ea83b30525259e30ccef6af39b31c240bda578889494c5392d331"
|
|
171
|
+
dependencies = [
|
|
172
|
+
"libc",
|
|
173
|
+
"ndarray",
|
|
174
|
+
"num-complex",
|
|
175
|
+
"num-integer",
|
|
176
|
+
"num-traits",
|
|
177
|
+
"pyo3",
|
|
178
|
+
"rustc-hash",
|
|
179
|
+
]
|
|
180
|
+
|
|
181
|
+
[[package]]
|
|
182
|
+
name = "once_cell"
|
|
183
|
+
version = "1.19.0"
|
|
184
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
185
|
+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "parking_lot"
|
|
189
|
+
version = "0.12.1"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"lock_api",
|
|
194
|
+
"parking_lot_core",
|
|
195
|
+
]
|
|
196
|
+
|
|
197
|
+
[[package]]
|
|
198
|
+
name = "parking_lot_core"
|
|
199
|
+
version = "0.9.9"
|
|
200
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
201
|
+
checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
|
|
202
|
+
dependencies = [
|
|
203
|
+
"cfg-if",
|
|
204
|
+
"libc",
|
|
205
|
+
"redox_syscall",
|
|
206
|
+
"smallvec",
|
|
207
|
+
"windows-targets",
|
|
208
|
+
]
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "pkg-config"
|
|
212
|
+
version = "0.3.28"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "69d3587f8a9e599cc7ec2c00e331f71c4e69a5f9a4b8a6efd5b07466b9736f9a"
|
|
215
|
+
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "proc-macro2"
|
|
218
|
+
version = "1.0.74"
|
|
219
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
+
checksum = "2de98502f212cfcea8d0bb305bd0f49d7ebdd75b64ba0a68f937d888f4e0d6db"
|
|
221
|
+
dependencies = [
|
|
222
|
+
"unicode-ident",
|
|
223
|
+
]
|
|
224
|
+
|
|
225
|
+
[[package]]
|
|
226
|
+
name = "pyo3"
|
|
227
|
+
version = "0.20.1"
|
|
228
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
229
|
+
checksum = "e82ad98ce1991c9c70c3464ba4187337b9c45fcbbb060d46dca15f0c075e14e2"
|
|
230
|
+
dependencies = [
|
|
231
|
+
"cfg-if",
|
|
232
|
+
"indoc",
|
|
233
|
+
"libc",
|
|
234
|
+
"memoffset",
|
|
235
|
+
"parking_lot",
|
|
236
|
+
"pyo3-build-config",
|
|
237
|
+
"pyo3-ffi",
|
|
238
|
+
"pyo3-macros",
|
|
239
|
+
"unindent",
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
[[package]]
|
|
243
|
+
name = "pyo3-build-config"
|
|
244
|
+
version = "0.20.1"
|
|
245
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
+
checksum = "5503d0b3aee2c7a8dbb389cd87cd9649f675d4c7f60ca33699a3e3859d81a891"
|
|
247
|
+
dependencies = [
|
|
248
|
+
"once_cell",
|
|
249
|
+
"target-lexicon",
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
[[package]]
|
|
253
|
+
name = "pyo3-ffi"
|
|
254
|
+
version = "0.20.1"
|
|
255
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
256
|
+
checksum = "18a79e8d80486a00d11c0dcb27cd2aa17c022cc95c677b461f01797226ba8f41"
|
|
257
|
+
dependencies = [
|
|
258
|
+
"libc",
|
|
259
|
+
"pyo3-build-config",
|
|
260
|
+
]
|
|
261
|
+
|
|
262
|
+
[[package]]
|
|
263
|
+
name = "pyo3-macros"
|
|
264
|
+
version = "0.20.1"
|
|
265
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
266
|
+
checksum = "1f4b0dc7eaa578604fab11c8c7ff8934c71249c61d4def8e272c76ed879f03d4"
|
|
267
|
+
dependencies = [
|
|
268
|
+
"proc-macro2",
|
|
269
|
+
"pyo3-macros-backend",
|
|
270
|
+
"quote",
|
|
271
|
+
"syn",
|
|
272
|
+
]
|
|
273
|
+
|
|
274
|
+
[[package]]
|
|
275
|
+
name = "pyo3-macros-backend"
|
|
276
|
+
version = "0.20.1"
|
|
277
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
278
|
+
checksum = "816a4f709e29ddab2e3cdfe94600d554c5556cad0ddfeea95c47b580c3247fa4"
|
|
279
|
+
dependencies = [
|
|
280
|
+
"heck",
|
|
281
|
+
"proc-macro2",
|
|
282
|
+
"quote",
|
|
283
|
+
"syn",
|
|
284
|
+
]
|
|
285
|
+
|
|
286
|
+
[[package]]
|
|
287
|
+
name = "python"
|
|
288
|
+
version = "0.1.0"
|
|
289
|
+
dependencies = [
|
|
290
|
+
"flatbuffers",
|
|
291
|
+
"lz4",
|
|
292
|
+
"ndarray",
|
|
293
|
+
"neuromorphic-types",
|
|
294
|
+
"numpy",
|
|
295
|
+
"pyo3",
|
|
296
|
+
"roxmltree",
|
|
297
|
+
"thiserror",
|
|
298
|
+
"zstd",
|
|
299
|
+
]
|
|
300
|
+
|
|
301
|
+
[[package]]
|
|
302
|
+
name = "quote"
|
|
303
|
+
version = "1.0.35"
|
|
304
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
305
|
+
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
|
|
306
|
+
dependencies = [
|
|
307
|
+
"proc-macro2",
|
|
308
|
+
]
|
|
309
|
+
|
|
310
|
+
[[package]]
|
|
311
|
+
name = "rawpointer"
|
|
312
|
+
version = "0.2.1"
|
|
313
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
314
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
315
|
+
|
|
316
|
+
[[package]]
|
|
317
|
+
name = "redox_syscall"
|
|
318
|
+
version = "0.4.1"
|
|
319
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
320
|
+
checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa"
|
|
321
|
+
dependencies = [
|
|
322
|
+
"bitflags",
|
|
323
|
+
]
|
|
324
|
+
|
|
325
|
+
[[package]]
|
|
326
|
+
name = "roxmltree"
|
|
327
|
+
version = "0.19.0"
|
|
328
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
329
|
+
checksum = "3cd14fd5e3b777a7422cca79358c57a8f6e3a703d9ac187448d0daf220c2407f"
|
|
330
|
+
|
|
331
|
+
[[package]]
|
|
332
|
+
name = "rustc-hash"
|
|
333
|
+
version = "1.1.0"
|
|
334
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
335
|
+
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
|
336
|
+
|
|
337
|
+
[[package]]
|
|
338
|
+
name = "rustc_version"
|
|
339
|
+
version = "0.4.0"
|
|
340
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
341
|
+
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
|
|
342
|
+
dependencies = [
|
|
343
|
+
"semver",
|
|
344
|
+
]
|
|
345
|
+
|
|
346
|
+
[[package]]
|
|
347
|
+
name = "scopeguard"
|
|
348
|
+
version = "1.2.0"
|
|
349
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
350
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
351
|
+
|
|
352
|
+
[[package]]
|
|
353
|
+
name = "semver"
|
|
354
|
+
version = "1.0.20"
|
|
355
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
356
|
+
checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090"
|
|
357
|
+
|
|
358
|
+
[[package]]
|
|
359
|
+
name = "smallvec"
|
|
360
|
+
version = "1.11.2"
|
|
361
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
362
|
+
checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970"
|
|
363
|
+
|
|
364
|
+
[[package]]
|
|
365
|
+
name = "syn"
|
|
366
|
+
version = "2.0.46"
|
|
367
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
368
|
+
checksum = "89456b690ff72fddcecf231caedbe615c59480c93358a93dfae7fc29e3ebbf0e"
|
|
369
|
+
dependencies = [
|
|
370
|
+
"proc-macro2",
|
|
371
|
+
"quote",
|
|
372
|
+
"unicode-ident",
|
|
373
|
+
]
|
|
374
|
+
|
|
375
|
+
[[package]]
|
|
376
|
+
name = "target-lexicon"
|
|
377
|
+
version = "0.12.12"
|
|
378
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
379
|
+
checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a"
|
|
380
|
+
|
|
381
|
+
[[package]]
|
|
382
|
+
name = "thiserror"
|
|
383
|
+
version = "1.0.56"
|
|
384
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
385
|
+
checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad"
|
|
386
|
+
dependencies = [
|
|
387
|
+
"thiserror-impl",
|
|
388
|
+
]
|
|
389
|
+
|
|
390
|
+
[[package]]
|
|
391
|
+
name = "thiserror-impl"
|
|
392
|
+
version = "1.0.56"
|
|
393
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
394
|
+
checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471"
|
|
395
|
+
dependencies = [
|
|
396
|
+
"proc-macro2",
|
|
397
|
+
"quote",
|
|
398
|
+
"syn",
|
|
399
|
+
]
|
|
400
|
+
|
|
401
|
+
[[package]]
|
|
402
|
+
name = "unicode-ident"
|
|
403
|
+
version = "1.0.12"
|
|
404
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
405
|
+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
|
406
|
+
|
|
407
|
+
[[package]]
|
|
408
|
+
name = "unindent"
|
|
409
|
+
version = "0.2.3"
|
|
410
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
411
|
+
checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
|
|
412
|
+
|
|
413
|
+
[[package]]
|
|
414
|
+
name = "windows-targets"
|
|
415
|
+
version = "0.48.5"
|
|
416
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
417
|
+
checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
|
|
418
|
+
dependencies = [
|
|
419
|
+
"windows_aarch64_gnullvm",
|
|
420
|
+
"windows_aarch64_msvc",
|
|
421
|
+
"windows_i686_gnu",
|
|
422
|
+
"windows_i686_msvc",
|
|
423
|
+
"windows_x86_64_gnu",
|
|
424
|
+
"windows_x86_64_gnullvm",
|
|
425
|
+
"windows_x86_64_msvc",
|
|
426
|
+
]
|
|
427
|
+
|
|
428
|
+
[[package]]
|
|
429
|
+
name = "windows_aarch64_gnullvm"
|
|
430
|
+
version = "0.48.5"
|
|
431
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
432
|
+
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
|
|
433
|
+
|
|
434
|
+
[[package]]
|
|
435
|
+
name = "windows_aarch64_msvc"
|
|
436
|
+
version = "0.48.5"
|
|
437
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
438
|
+
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
|
|
439
|
+
|
|
440
|
+
[[package]]
|
|
441
|
+
name = "windows_i686_gnu"
|
|
442
|
+
version = "0.48.5"
|
|
443
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
444
|
+
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
|
|
445
|
+
|
|
446
|
+
[[package]]
|
|
447
|
+
name = "windows_i686_msvc"
|
|
448
|
+
version = "0.48.5"
|
|
449
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
450
|
+
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
|
|
451
|
+
|
|
452
|
+
[[package]]
|
|
453
|
+
name = "windows_x86_64_gnu"
|
|
454
|
+
version = "0.48.5"
|
|
455
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
456
|
+
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
|
|
457
|
+
|
|
458
|
+
[[package]]
|
|
459
|
+
name = "windows_x86_64_gnullvm"
|
|
460
|
+
version = "0.48.5"
|
|
461
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
462
|
+
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
|
|
463
|
+
|
|
464
|
+
[[package]]
|
|
465
|
+
name = "windows_x86_64_msvc"
|
|
466
|
+
version = "0.48.5"
|
|
467
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
468
|
+
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
|
|
469
|
+
|
|
470
|
+
[[package]]
|
|
471
|
+
name = "zstd"
|
|
472
|
+
version = "0.13.0"
|
|
473
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
474
|
+
checksum = "bffb3309596d527cfcba7dfc6ed6052f1d39dfbd7c867aa2e865e4a449c10110"
|
|
475
|
+
dependencies = [
|
|
476
|
+
"zstd-safe",
|
|
477
|
+
]
|
|
478
|
+
|
|
479
|
+
[[package]]
|
|
480
|
+
name = "zstd-safe"
|
|
481
|
+
version = "7.0.0"
|
|
482
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
483
|
+
checksum = "43747c7422e2924c11144d5229878b98180ef8b06cca4ab5af37afc8a8d8ea3e"
|
|
484
|
+
dependencies = [
|
|
485
|
+
"zstd-sys",
|
|
486
|
+
]
|
|
487
|
+
|
|
488
|
+
[[package]]
|
|
489
|
+
name = "zstd-sys"
|
|
490
|
+
version = "2.0.9+zstd.1.5.5"
|
|
491
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
492
|
+
checksum = "9e16efa8a874a0481a574084d34cc26fdb3b99627480f785888deb6386506656"
|
|
493
|
+
dependencies = [
|
|
494
|
+
"cc",
|
|
495
|
+
"pkg-config",
|
|
496
|
+
]
|
faery-0.1.0/Cargo.toml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "python"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
|
|
6
|
+
[lib]
|
|
7
|
+
name = "faery"
|
|
8
|
+
crate-type = ["cdylib"]
|
|
9
|
+
|
|
10
|
+
[dependencies]
|
|
11
|
+
flatbuffers = "22.10.26"
|
|
12
|
+
lz4 = "1.24.0"
|
|
13
|
+
ndarray = "0.15.6"
|
|
14
|
+
neuromorphic-types = "0.4.0"
|
|
15
|
+
numpy = "0.20.0"
|
|
16
|
+
pyo3 = {version = "0.20.1", features = ["extension-module"]}
|
|
17
|
+
roxmltree = "0.19.0"
|
|
18
|
+
thiserror = "1.0"
|
|
19
|
+
zstd = "0.13.0"
|
|
20
|
+
|
|
21
|
+
[profile.release]
|
|
22
|
+
lto = "fat"
|
|
23
|
+
codegen-units = 1
|
faery-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) 2024 International Centre for Neuromorphic Systems
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
faery-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: faery
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Requires-Dist: numpy >=1.24
|
|
5
|
+
License-File: LICENSE
|
|
6
|
+
Summary: Flexible AER librarY
|
|
7
|
+
Author: International Centre for Neuromorphic Systems, Alexandre Marcireau
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
10
|
+
Project-URL: homepage, https://github.com/neuromorphicsystems/faery/
|
|
11
|
+
Project-URL: repository, https://github.com/neuromorphicsystems/faery/
|
|
12
|
+
Project-URL: documentation, https://github.com/neuromorphicsystems/faery/
|
|
13
|
+
|
|
14
|
+
## Contribute
|
|
15
|
+
|
|
16
|
+
Local build (first run).
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
python3 -m venv .venv
|
|
20
|
+
source .venv/bin/activate
|
|
21
|
+
pip install --upgrade pip
|
|
22
|
+
pip install maturin numpy
|
|
23
|
+
maturin develop # or maturin develop --release to build with optimizations
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Local build (subsequent runs).
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
cd python
|
|
30
|
+
source .venv/bin/activate
|
|
31
|
+
maturin develop # or maturin develop --release to build with optimizations
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
After changing any of the files in _framebuffers_.
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
flatc --rust -o src/aedat/ flatbuffers/*.fbs
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Before pushing new code, run the following to lint and format it.
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
cd python
|
|
44
|
+
isort .; black .; pyright .
|
|
45
|
+
```
|
|
46
|
+
|
faery-0.1.0/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
## Contribute
|
|
2
|
+
|
|
3
|
+
Local build (first run).
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
python3 -m venv .venv
|
|
7
|
+
source .venv/bin/activate
|
|
8
|
+
pip install --upgrade pip
|
|
9
|
+
pip install maturin numpy
|
|
10
|
+
maturin develop # or maturin develop --release to build with optimizations
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Local build (subsequent runs).
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
cd python
|
|
17
|
+
source .venv/bin/activate
|
|
18
|
+
maturin develop # or maturin develop --release to build with optimizations
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After changing any of the files in _framebuffers_.
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
flatc --rust -o src/aedat/ flatbuffers/*.fbs
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Before pushing new code, run the following to lint and format it.
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
cd python
|
|
31
|
+
isort .; black .; pyright .
|
|
32
|
+
```
|