mitdx 1.0.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.
@@ -0,0 +1,116 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ tags:
9
+ - "*"
10
+ pull_request:
11
+ workflow_dispatch:
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ linux:
18
+ runs-on: ubuntu-latest
19
+ strategy:
20
+ matrix:
21
+ target: [x86_64, aarch64]
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.10"
27
+ - name: Build wheels
28
+ uses: PyO3/maturin-action@v1
29
+ with:
30
+ target: ${{ matrix.target }}
31
+ args: --release --out dist --find-interpreter
32
+ sccache: "true"
33
+ manylinux: auto
34
+ - name: Upload wheels
35
+ uses: actions/upload-artifact@v4
36
+ with:
37
+ name: wheels-linux-${{ matrix.target }}
38
+ path: dist
39
+
40
+ windows:
41
+ runs-on: windows-latest
42
+ strategy:
43
+ matrix:
44
+ target: [x64]
45
+ steps:
46
+ - uses: actions/checkout@v4
47
+ - uses: actions/setup-python@v5
48
+ with:
49
+ python-version: "3.10"
50
+ architecture: ${{ matrix.target }}
51
+ - name: Build wheels
52
+ uses: PyO3/maturin-action@v1
53
+ with:
54
+ target: ${{ matrix.target }}
55
+ args: --release --out dist --find-interpreter
56
+ sccache: "true"
57
+ - name: Upload wheels
58
+ uses: actions/upload-artifact@v4
59
+ with:
60
+ name: wheels-windows-${{ matrix.target }}
61
+ path: dist
62
+
63
+ macos:
64
+ runs-on: macos-latest
65
+ strategy:
66
+ matrix:
67
+ target: [x86_64, aarch64]
68
+ steps:
69
+ - uses: actions/checkout@v4
70
+ - uses: actions/setup-python@v5
71
+ with:
72
+ python-version: "3.10"
73
+ - name: Build wheels
74
+ uses: PyO3/maturin-action@v1
75
+ with:
76
+ target: ${{ matrix.target }}
77
+ args: --release --out dist --find-interpreter
78
+ sccache: "true"
79
+ - name: Upload wheels
80
+ uses: actions/upload-artifact@v4
81
+ with:
82
+ name: wheels-macos-${{ matrix.target }}
83
+ path: dist
84
+
85
+ sdist:
86
+ runs-on: ubuntu-latest
87
+ steps:
88
+ - uses: actions/checkout@v4
89
+ - name: Build sdist
90
+ uses: PyO3/maturin-action@v1
91
+ with:
92
+ command: sdist
93
+ args: --out dist
94
+ - name: Upload sdist
95
+ uses: actions/upload-artifact@v4
96
+ with:
97
+ name: wheels-sdist
98
+ path: dist
99
+
100
+ release:
101
+ name: Release
102
+ runs-on: ubuntu-latest
103
+ if: "startsWith(github.ref, 'refs/tags/')"
104
+ needs: [linux, windows, macos, sdist]
105
+ permissions:
106
+ id-token: write
107
+ steps:
108
+ - uses: actions/download-artifact@v4
109
+ with:
110
+ pattern: wheels-*
111
+ merge-multiple: true
112
+ - name: Publish to PyPI
113
+ uses: PyO3/maturin-action@v1
114
+ with:
115
+ command: upload
116
+ args: --non-interactive --skip-existing *
mitdx-1.0.0/.gitignore ADDED
@@ -0,0 +1,72 @@
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
mitdx-1.0.0/Cargo.lock ADDED
@@ -0,0 +1,251 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "adler2"
7
+ version = "2.0.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
10
+
11
+ [[package]]
12
+ name = "autocfg"
13
+ version = "1.5.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
16
+
17
+ [[package]]
18
+ name = "bytemuck"
19
+ version = "1.25.0"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec"
22
+ dependencies = [
23
+ "bytemuck_derive",
24
+ ]
25
+
26
+ [[package]]
27
+ name = "bytemuck_derive"
28
+ version = "1.10.2"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "f9abbd1bc6865053c427f7198e6af43bfdedc55ab791faed4fbd361d789575ff"
31
+ dependencies = [
32
+ "proc-macro2",
33
+ "quote",
34
+ "syn",
35
+ ]
36
+
37
+ [[package]]
38
+ name = "cfg-if"
39
+ version = "1.0.4"
40
+ source = "registry+https://github.com/rust-lang/crates.io-index"
41
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
42
+
43
+ [[package]]
44
+ name = "crc32fast"
45
+ version = "1.5.0"
46
+ source = "registry+https://github.com/rust-lang/crates.io-index"
47
+ checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
48
+ dependencies = [
49
+ "cfg-if",
50
+ ]
51
+
52
+ [[package]]
53
+ name = "flate2"
54
+ version = "1.1.9"
55
+ source = "registry+https://github.com/rust-lang/crates.io-index"
56
+ checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
57
+ dependencies = [
58
+ "crc32fast",
59
+ "miniz_oxide",
60
+ ]
61
+
62
+ [[package]]
63
+ name = "heck"
64
+ version = "0.5.0"
65
+ source = "registry+https://github.com/rust-lang/crates.io-index"
66
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
67
+
68
+ [[package]]
69
+ name = "indoc"
70
+ version = "2.0.7"
71
+ source = "registry+https://github.com/rust-lang/crates.io-index"
72
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
73
+ dependencies = [
74
+ "rustversion",
75
+ ]
76
+
77
+ [[package]]
78
+ name = "libc"
79
+ version = "0.2.186"
80
+ source = "registry+https://github.com/rust-lang/crates.io-index"
81
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
82
+
83
+ [[package]]
84
+ name = "memmap2"
85
+ version = "0.9.10"
86
+ source = "registry+https://github.com/rust-lang/crates.io-index"
87
+ checksum = "714098028fe011992e1c3962653c96b2d578c4b4bce9036e15ff220319b1e0e3"
88
+ dependencies = [
89
+ "libc",
90
+ ]
91
+
92
+ [[package]]
93
+ name = "memoffset"
94
+ version = "0.9.1"
95
+ source = "registry+https://github.com/rust-lang/crates.io-index"
96
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
97
+ dependencies = [
98
+ "autocfg",
99
+ ]
100
+
101
+ [[package]]
102
+ name = "miniz_oxide"
103
+ version = "0.8.9"
104
+ source = "registry+https://github.com/rust-lang/crates.io-index"
105
+ checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
106
+ dependencies = [
107
+ "adler2",
108
+ "simd-adler32",
109
+ ]
110
+
111
+ [[package]]
112
+ name = "mitdx"
113
+ version = "1.0.0"
114
+ dependencies = [
115
+ "bytemuck",
116
+ "flate2",
117
+ "memmap2",
118
+ "pyo3",
119
+ ]
120
+
121
+ [[package]]
122
+ name = "once_cell"
123
+ version = "1.21.4"
124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
125
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
126
+
127
+ [[package]]
128
+ name = "portable-atomic"
129
+ version = "1.13.1"
130
+ source = "registry+https://github.com/rust-lang/crates.io-index"
131
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
132
+
133
+ [[package]]
134
+ name = "proc-macro2"
135
+ version = "1.0.106"
136
+ source = "registry+https://github.com/rust-lang/crates.io-index"
137
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
138
+ dependencies = [
139
+ "unicode-ident",
140
+ ]
141
+
142
+ [[package]]
143
+ name = "pyo3"
144
+ version = "0.27.2"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
147
+ dependencies = [
148
+ "indoc",
149
+ "libc",
150
+ "memoffset",
151
+ "once_cell",
152
+ "portable-atomic",
153
+ "pyo3-build-config",
154
+ "pyo3-ffi",
155
+ "pyo3-macros",
156
+ "unindent",
157
+ ]
158
+
159
+ [[package]]
160
+ name = "pyo3-build-config"
161
+ version = "0.27.2"
162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
163
+ checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
164
+ dependencies = [
165
+ "target-lexicon",
166
+ ]
167
+
168
+ [[package]]
169
+ name = "pyo3-ffi"
170
+ version = "0.27.2"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
173
+ dependencies = [
174
+ "libc",
175
+ "pyo3-build-config",
176
+ ]
177
+
178
+ [[package]]
179
+ name = "pyo3-macros"
180
+ version = "0.27.2"
181
+ source = "registry+https://github.com/rust-lang/crates.io-index"
182
+ checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
183
+ dependencies = [
184
+ "proc-macro2",
185
+ "pyo3-macros-backend",
186
+ "quote",
187
+ "syn",
188
+ ]
189
+
190
+ [[package]]
191
+ name = "pyo3-macros-backend"
192
+ version = "0.27.2"
193
+ source = "registry+https://github.com/rust-lang/crates.io-index"
194
+ checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
195
+ dependencies = [
196
+ "heck",
197
+ "proc-macro2",
198
+ "pyo3-build-config",
199
+ "quote",
200
+ "syn",
201
+ ]
202
+
203
+ [[package]]
204
+ name = "quote"
205
+ version = "1.0.45"
206
+ source = "registry+https://github.com/rust-lang/crates.io-index"
207
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
208
+ dependencies = [
209
+ "proc-macro2",
210
+ ]
211
+
212
+ [[package]]
213
+ name = "rustversion"
214
+ version = "1.0.22"
215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
216
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
217
+
218
+ [[package]]
219
+ name = "simd-adler32"
220
+ version = "0.3.9"
221
+ source = "registry+https://github.com/rust-lang/crates.io-index"
222
+ checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
223
+
224
+ [[package]]
225
+ name = "syn"
226
+ version = "2.0.117"
227
+ source = "registry+https://github.com/rust-lang/crates.io-index"
228
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
229
+ dependencies = [
230
+ "proc-macro2",
231
+ "quote",
232
+ "unicode-ident",
233
+ ]
234
+
235
+ [[package]]
236
+ name = "target-lexicon"
237
+ version = "0.13.5"
238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
239
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
240
+
241
+ [[package]]
242
+ name = "unicode-ident"
243
+ version = "1.0.24"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
246
+
247
+ [[package]]
248
+ name = "unindent"
249
+ version = "0.2.4"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
mitdx-1.0.0/Cargo.toml ADDED
@@ -0,0 +1,16 @@
1
+ [package]
2
+ name = "mitdx"
3
+ version = "1.0.0"
4
+ edition = "2021"
5
+ description = "High-performance TDX market data reader for Python, powered by Rust"
6
+ readme = "README.md"
7
+
8
+ [lib]
9
+ name = "_core"
10
+ crate-type = ["cdylib"]
11
+
12
+ [dependencies]
13
+ pyo3 = { version = "0.27.0", features = ["extension-module"] }
14
+ memmap2 = "0.9"
15
+ bytemuck = { version = "1", features = ["derive"] }
16
+ flate2 = "1.0"