cosmolkit 0.0.1__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,263 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "autocfg"
7
+ version = "1.5.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
10
+
11
+ [[package]]
12
+ name = "cfg-if"
13
+ version = "1.0.4"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
16
+
17
+ [[package]]
18
+ name = "cosmolkit-bio-core"
19
+ version = "0.0.1"
20
+
21
+ [[package]]
22
+ name = "cosmolkit-chem-core"
23
+ version = "0.0.1"
24
+ dependencies = [
25
+ "serde",
26
+ "serde_json",
27
+ ]
28
+
29
+ [[package]]
30
+ name = "cosmolkit-io"
31
+ version = "0.0.1"
32
+ dependencies = [
33
+ "cosmolkit-bio-core",
34
+ "cosmolkit-chem-core",
35
+ "serde",
36
+ "serde_json",
37
+ ]
38
+
39
+ [[package]]
40
+ name = "cosmolkit-py"
41
+ version = "0.0.1"
42
+ dependencies = [
43
+ "pyo3",
44
+ ]
45
+
46
+ [[package]]
47
+ name = "heck"
48
+ version = "0.5.0"
49
+ source = "registry+https://github.com/rust-lang/crates.io-index"
50
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
51
+
52
+ [[package]]
53
+ name = "indoc"
54
+ version = "2.0.7"
55
+ source = "registry+https://github.com/rust-lang/crates.io-index"
56
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
57
+ dependencies = [
58
+ "rustversion",
59
+ ]
60
+
61
+ [[package]]
62
+ name = "itoa"
63
+ version = "1.0.18"
64
+ source = "registry+https://github.com/rust-lang/crates.io-index"
65
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
66
+
67
+ [[package]]
68
+ name = "libc"
69
+ version = "0.2.186"
70
+ source = "registry+https://github.com/rust-lang/crates.io-index"
71
+ checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
72
+
73
+ [[package]]
74
+ name = "memchr"
75
+ version = "2.8.0"
76
+ source = "registry+https://github.com/rust-lang/crates.io-index"
77
+ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
78
+
79
+ [[package]]
80
+ name = "memoffset"
81
+ version = "0.9.1"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
84
+ dependencies = [
85
+ "autocfg",
86
+ ]
87
+
88
+ [[package]]
89
+ name = "once_cell"
90
+ version = "1.21.4"
91
+ source = "registry+https://github.com/rust-lang/crates.io-index"
92
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
93
+
94
+ [[package]]
95
+ name = "portable-atomic"
96
+ version = "1.13.1"
97
+ source = "registry+https://github.com/rust-lang/crates.io-index"
98
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
99
+
100
+ [[package]]
101
+ name = "proc-macro2"
102
+ version = "1.0.106"
103
+ source = "registry+https://github.com/rust-lang/crates.io-index"
104
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
105
+ dependencies = [
106
+ "unicode-ident",
107
+ ]
108
+
109
+ [[package]]
110
+ name = "pyo3"
111
+ version = "0.23.5"
112
+ source = "registry+https://github.com/rust-lang/crates.io-index"
113
+ checksum = "7778bffd85cf38175ac1f545509665d0b9b92a198ca7941f131f85f7a4f9a872"
114
+ dependencies = [
115
+ "cfg-if",
116
+ "indoc",
117
+ "libc",
118
+ "memoffset",
119
+ "once_cell",
120
+ "portable-atomic",
121
+ "pyo3-build-config",
122
+ "pyo3-ffi",
123
+ "pyo3-macros",
124
+ "unindent",
125
+ ]
126
+
127
+ [[package]]
128
+ name = "pyo3-build-config"
129
+ version = "0.23.5"
130
+ source = "registry+https://github.com/rust-lang/crates.io-index"
131
+ checksum = "94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb"
132
+ dependencies = [
133
+ "once_cell",
134
+ "target-lexicon",
135
+ ]
136
+
137
+ [[package]]
138
+ name = "pyo3-ffi"
139
+ version = "0.23.5"
140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
141
+ checksum = "e9f1b4c431c0bb1c8fb0a338709859eed0d030ff6daa34368d3b152a63dfdd8d"
142
+ dependencies = [
143
+ "libc",
144
+ "pyo3-build-config",
145
+ ]
146
+
147
+ [[package]]
148
+ name = "pyo3-macros"
149
+ version = "0.23.5"
150
+ source = "registry+https://github.com/rust-lang/crates.io-index"
151
+ checksum = "fbc2201328f63c4710f68abdf653c89d8dbc2858b88c5d88b0ff38a75288a9da"
152
+ dependencies = [
153
+ "proc-macro2",
154
+ "pyo3-macros-backend",
155
+ "quote",
156
+ "syn",
157
+ ]
158
+
159
+ [[package]]
160
+ name = "pyo3-macros-backend"
161
+ version = "0.23.5"
162
+ source = "registry+https://github.com/rust-lang/crates.io-index"
163
+ checksum = "fca6726ad0f3da9c9de093d6f116a93c1a38e417ed73bf138472cf4064f72028"
164
+ dependencies = [
165
+ "heck",
166
+ "proc-macro2",
167
+ "pyo3-build-config",
168
+ "quote",
169
+ "syn",
170
+ ]
171
+
172
+ [[package]]
173
+ name = "quote"
174
+ version = "1.0.45"
175
+ source = "registry+https://github.com/rust-lang/crates.io-index"
176
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
177
+ dependencies = [
178
+ "proc-macro2",
179
+ ]
180
+
181
+ [[package]]
182
+ name = "rustversion"
183
+ version = "1.0.22"
184
+ source = "registry+https://github.com/rust-lang/crates.io-index"
185
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
186
+
187
+ [[package]]
188
+ name = "serde"
189
+ version = "1.0.228"
190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
191
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
192
+ dependencies = [
193
+ "serde_core",
194
+ "serde_derive",
195
+ ]
196
+
197
+ [[package]]
198
+ name = "serde_core"
199
+ version = "1.0.228"
200
+ source = "registry+https://github.com/rust-lang/crates.io-index"
201
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
202
+ dependencies = [
203
+ "serde_derive",
204
+ ]
205
+
206
+ [[package]]
207
+ name = "serde_derive"
208
+ version = "1.0.228"
209
+ source = "registry+https://github.com/rust-lang/crates.io-index"
210
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
211
+ dependencies = [
212
+ "proc-macro2",
213
+ "quote",
214
+ "syn",
215
+ ]
216
+
217
+ [[package]]
218
+ name = "serde_json"
219
+ version = "1.0.149"
220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
221
+ checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
222
+ dependencies = [
223
+ "itoa",
224
+ "memchr",
225
+ "serde",
226
+ "serde_core",
227
+ "zmij",
228
+ ]
229
+
230
+ [[package]]
231
+ name = "syn"
232
+ version = "2.0.117"
233
+ source = "registry+https://github.com/rust-lang/crates.io-index"
234
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
235
+ dependencies = [
236
+ "proc-macro2",
237
+ "quote",
238
+ "unicode-ident",
239
+ ]
240
+
241
+ [[package]]
242
+ name = "target-lexicon"
243
+ version = "0.12.16"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
246
+
247
+ [[package]]
248
+ name = "unicode-ident"
249
+ version = "1.0.24"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
252
+
253
+ [[package]]
254
+ name = "unindent"
255
+ version = "0.2.4"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
258
+
259
+ [[package]]
260
+ name = "zmij"
261
+ version = "1.0.21"
262
+ source = "registry+https://github.com/rust-lang/crates.io-index"
263
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
@@ -0,0 +1,13 @@
1
+ [workspace]
2
+ members = ["python"]
3
+ resolver = "2"
4
+
5
+ [workspace.package]
6
+ edition = "2024"
7
+ license = "MIT"
8
+ version = "0.0.1"
9
+ authors = ["COSMolKit Contributors"]
10
+
11
+ [workspace.lints.clippy]
12
+ all = "warn"
13
+ pedantic = "warn"
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: cosmolkit
3
+ Version: 0.0.1
4
+ Classifier: Development Status :: 3 - Alpha
5
+ Classifier: Intended Audience :: Science/Research
6
+ Classifier: License :: OSI Approved :: MIT License
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3 :: Only
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Rust
15
+ Classifier: Topic :: Scientific/Engineering :: Chemistry
16
+ Summary: Python bindings for COSMolKit
17
+ Author: COSMolKit Contributors
18
+ License: MIT
19
+ Requires-Python: >=3.9
20
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
21
+ Project-URL: Homepage, https://github.com/cosmol-studio/COSMolKit
22
+ Project-URL: Issues, https://github.com/cosmol-studio/COSMolKit/issues
23
+ Project-URL: Repository, https://github.com/cosmol-studio/COSMolKit
24
+
25
+ # Python Bindings
26
+
27
+ This directory hosts PyO3-based Python bindings for COSMolKit.
28
+
29
+ Use the repository-level Python environment:
30
+ - `uv sync --group dev`
31
+ - `.venv/bin/python -m pip install -e python`
32
+
33
+ Current layout:
34
+ - `pyproject.toml` package metadata for the published Python distribution
35
+ - `native/` Rust extension module crate built with PyO3 + maturin
36
+ - no Python shim package; `cosmolkit` is provided directly by the compiled extension module
37
+
38
+ Current status:
39
+ - this is a placeholder package scaffold
40
+ - it does not bind `chem-core`, `io`, or `bio-core` yet
41
+ - the extension currently exposes only `placeholder()` and `rust_version()`
42
+
43
+ Local development:
44
+ - `uv sync --group dev`
45
+ - `.venv/bin/python -m pip install -e python`
46
+ - `.venv/bin/python -c "import cosmolkit; print(cosmolkit.placeholder())"`
47
+
48
+ Publishing:
49
+ - GitHub Actions workflow: `.github/workflows/python-publish.yml`
50
+ - expected PyPI secret: `PYPI_API_TOKEN`
51
+ - trigger: push a tag matching `python-v*`
52
+
@@ -0,0 +1,27 @@
1
+ # Python Bindings
2
+
3
+ This directory hosts PyO3-based Python bindings for COSMolKit.
4
+
5
+ Use the repository-level Python environment:
6
+ - `uv sync --group dev`
7
+ - `.venv/bin/python -m pip install -e python`
8
+
9
+ Current layout:
10
+ - `pyproject.toml` package metadata for the published Python distribution
11
+ - `native/` Rust extension module crate built with PyO3 + maturin
12
+ - no Python shim package; `cosmolkit` is provided directly by the compiled extension module
13
+
14
+ Current status:
15
+ - this is a placeholder package scaffold
16
+ - it does not bind `chem-core`, `io`, or `bio-core` yet
17
+ - the extension currently exposes only `placeholder()` and `rust_version()`
18
+
19
+ Local development:
20
+ - `uv sync --group dev`
21
+ - `.venv/bin/python -m pip install -e python`
22
+ - `.venv/bin/python -c "import cosmolkit; print(cosmolkit.placeholder())"`
23
+
24
+ Publishing:
25
+ - GitHub Actions workflow: `.github/workflows/python-publish.yml`
26
+ - expected PyPI secret: `PYPI_API_TOKEN`
27
+ - trigger: push a tag matching `python-v*`
@@ -0,0 +1,39 @@
1
+ [build-system]
2
+ requires = ["maturin>=1.7,<2.0"]
3
+ build-backend = "maturin"
4
+
5
+ [project]
6
+ name = "cosmolkit"
7
+ version = "0.0.1"
8
+ description = "Python bindings for COSMolKit"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = { text = "MIT" }
12
+ authors = [
13
+ { name = "COSMolKit Contributors" },
14
+ ]
15
+ classifiers = [
16
+ "Development Status :: 3 - Alpha",
17
+ "Intended Audience :: Science/Research",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: 3.9",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Rust",
27
+ "Topic :: Scientific/Engineering :: Chemistry",
28
+ ]
29
+ dependencies = []
30
+
31
+ [project.urls]
32
+ Homepage = "https://github.com/cosmol-studio/COSMolKit"
33
+ Repository = "https://github.com/cosmol-studio/COSMolKit"
34
+ Issues = "https://github.com/cosmol-studio/COSMolKit/issues"
35
+
36
+ [tool.maturin]
37
+ module-name = "cosmolkit"
38
+ features = ["pyo3/extension-module"]
39
+ manifest-path = "python/Cargo.toml"
@@ -0,0 +1,15 @@
1
+ [package]
2
+ name = "cosmolkit-py"
3
+ version.workspace = true
4
+ edition.workspace = true
5
+ license.workspace = true
6
+ authors.workspace = true
7
+ publish = false
8
+ readme = "README.md"
9
+
10
+ [lib]
11
+ name = "cosmolkit"
12
+ crate-type = ["cdylib"]
13
+
14
+ [dependencies]
15
+ pyo3 = { version = "0.23", features = ["abi3-py39"] }
@@ -0,0 +1,27 @@
1
+ # Python Bindings
2
+
3
+ This directory hosts PyO3-based Python bindings for COSMolKit.
4
+
5
+ Use the repository-level Python environment:
6
+ - `uv sync --group dev`
7
+ - `.venv/bin/python -m pip install -e python`
8
+
9
+ Current layout:
10
+ - `pyproject.toml` package metadata for the published Python distribution
11
+ - `native/` Rust extension module crate built with PyO3 + maturin
12
+ - no Python shim package; `cosmolkit` is provided directly by the compiled extension module
13
+
14
+ Current status:
15
+ - this is a placeholder package scaffold
16
+ - it does not bind `chem-core`, `io`, or `bio-core` yet
17
+ - the extension currently exposes only `placeholder()` and `rust_version()`
18
+
19
+ Local development:
20
+ - `uv sync --group dev`
21
+ - `.venv/bin/python -m pip install -e python`
22
+ - `.venv/bin/python -c "import cosmolkit; print(cosmolkit.placeholder())"`
23
+
24
+ Publishing:
25
+ - GitHub Actions workflow: `.github/workflows/python-publish.yml`
26
+ - expected PyPI secret: `PYPI_API_TOKEN`
27
+ - trigger: push a tag matching `python-v*`
@@ -0,0 +1,19 @@
1
+ use pyo3::prelude::*;
2
+
3
+ #[pyfunction]
4
+ fn placeholder() -> &'static str {
5
+ "COSMolKit PyO3 placeholder module"
6
+ }
7
+
8
+ #[pyfunction]
9
+ fn rust_version() -> &'static str {
10
+ env!("CARGO_PKG_VERSION")
11
+ }
12
+
13
+ #[pymodule]
14
+ fn cosmolkit(m: &Bound<'_, PyModule>) -> PyResult<()> {
15
+ m.add("__version__", env!("CARGO_PKG_VERSION"))?;
16
+ m.add_function(wrap_pyfunction!(placeholder, m)?)?;
17
+ m.add_function(wrap_pyfunction!(rust_version, m)?)?;
18
+ Ok(())
19
+ }