rust-sasa-python 0.7.1__tar.gz → 0.7.3__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.
@@ -160,12 +160,6 @@ dependencies = [
160
160
  "hashbrown",
161
161
  ]
162
162
 
163
- [[package]]
164
- name = "indoc"
165
- version = "2.0.5"
166
- source = "registry+https://github.com/rust-lang/crates.io-index"
167
- checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
168
-
169
163
  [[package]]
170
164
  name = "libc"
171
165
  version = "0.2.153"
@@ -188,15 +182,6 @@ dependencies = [
188
182
  "libc",
189
183
  ]
190
184
 
191
- [[package]]
192
- name = "memoffset"
193
- version = "0.9.1"
194
- source = "registry+https://github.com/rust-lang/crates.io-index"
195
- checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
196
- dependencies = [
197
- "autocfg",
198
- ]
199
-
200
185
  [[package]]
201
186
  name = "mimalloc"
202
187
  version = "0.1.48"
@@ -237,9 +222,9 @@ dependencies = [
237
222
 
238
223
  [[package]]
239
224
  name = "once_cell"
240
- version = "1.19.0"
225
+ version = "1.21.4"
241
226
  source = "registry+https://github.com/rust-lang/crates.io-index"
242
- checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
227
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
243
228
 
244
229
  [[package]]
245
230
  name = "paste"
@@ -310,36 +295,32 @@ checksum = "40e24eee682d89fb193496edf918a7f407d30175b2e785fe057e4392dfd182e0"
310
295
 
311
296
  [[package]]
312
297
  name = "pyo3"
313
- version = "0.25.1"
298
+ version = "0.29.3"
314
299
  source = "registry+https://github.com/rust-lang/crates.io-index"
315
- checksum = "8970a78afe0628a3e3430376fc5fd76b6b45c4d43360ffd6cdd40bdde72b682a"
300
+ checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655"
316
301
  dependencies = [
317
- "indoc",
318
302
  "libc",
319
- "memoffset",
320
303
  "once_cell",
321
304
  "portable-atomic",
322
305
  "pyo3-build-config",
323
306
  "pyo3-ffi",
324
307
  "pyo3-macros",
325
- "unindent",
326
308
  ]
327
309
 
328
310
  [[package]]
329
311
  name = "pyo3-build-config"
330
- version = "0.25.1"
312
+ version = "0.29.3"
331
313
  source = "registry+https://github.com/rust-lang/crates.io-index"
332
- checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598"
314
+ checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb"
333
315
  dependencies = [
334
- "once_cell",
335
316
  "target-lexicon",
336
317
  ]
337
318
 
338
319
  [[package]]
339
320
  name = "pyo3-ffi"
340
- version = "0.25.1"
321
+ version = "0.29.3"
341
322
  source = "registry+https://github.com/rust-lang/crates.io-index"
342
- checksum = "7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c"
323
+ checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330"
343
324
  dependencies = [
344
325
  "libc",
345
326
  "pyo3-build-config",
@@ -347,26 +328,25 @@ dependencies = [
347
328
 
348
329
  [[package]]
349
330
  name = "pyo3-macros"
350
- version = "0.25.1"
331
+ version = "0.29.3"
351
332
  source = "registry+https://github.com/rust-lang/crates.io-index"
352
- checksum = "a8725c0a622b374d6cb051d11a0983786448f7785336139c3c94f5aa6bef7e50"
333
+ checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6"
353
334
  dependencies = [
354
335
  "proc-macro2 1.0.95",
355
336
  "pyo3-macros-backend",
356
- "quote 1.0.36",
337
+ "quote 1.0.47",
357
338
  "syn",
358
339
  ]
359
340
 
360
341
  [[package]]
361
342
  name = "pyo3-macros-backend"
362
- version = "0.25.1"
343
+ version = "0.29.3"
363
344
  source = "registry+https://github.com/rust-lang/crates.io-index"
364
- checksum = "4109984c22491085343c05b0dbc54ddc405c3cf7b4374fc533f5c3313a572ccc"
345
+ checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3"
365
346
  dependencies = [
366
347
  "heck",
367
348
  "proc-macro2 1.0.95",
368
- "pyo3-build-config",
369
- "quote 1.0.36",
349
+ "quote 1.0.47",
370
350
  "syn",
371
351
  ]
372
352
 
@@ -381,9 +361,9 @@ dependencies = [
381
361
 
382
362
  [[package]]
383
363
  name = "quote"
384
- version = "1.0.36"
364
+ version = "1.0.47"
385
365
  source = "registry+https://github.com/rust-lang/crates.io-index"
386
- checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
366
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
387
367
  dependencies = [
388
368
  "proc-macro2 1.0.95",
389
369
  ]
@@ -436,9 +416,9 @@ dependencies = [
436
416
 
437
417
  [[package]]
438
418
  name = "rust-sasa"
439
- version = "0.9.1"
419
+ version = "0.9.2"
440
420
  source = "registry+https://github.com/rust-lang/crates.io-index"
441
- checksum = "c6f7a7e52e93d1869826869f1a3d9212ddf40b829c318d9fc9ee1466f1cb9bbe"
421
+ checksum = "f670125d1727b9c8d30dc66558a669b2278bb03a03b608282c5031147b860684"
442
422
  dependencies = [
443
423
  "fnv",
444
424
  "pdbtbx",
@@ -449,7 +429,7 @@ dependencies = [
449
429
 
450
430
  [[package]]
451
431
  name = "rust-sasa-python"
452
- version = "0.7.1"
432
+ version = "0.7.3"
453
433
  dependencies = [
454
434
  "mimalloc",
455
435
  "num-complex",
@@ -485,7 +465,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
485
465
  checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
486
466
  dependencies = [
487
467
  "proc-macro2 1.0.95",
488
- "quote 1.0.36",
468
+ "quote 1.0.47",
489
469
  "syn",
490
470
  ]
491
471
 
@@ -518,7 +498,7 @@ checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451"
518
498
  dependencies = [
519
499
  "heck",
520
500
  "proc-macro2 1.0.95",
521
- "quote 1.0.36",
501
+ "quote 1.0.47",
522
502
  "syn",
523
503
  ]
524
504
 
@@ -535,15 +515,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
535
515
  checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
536
516
  dependencies = [
537
517
  "proc-macro2 1.0.95",
538
- "quote 1.0.36",
518
+ "quote 1.0.47",
539
519
  "unicode-ident",
540
520
  ]
541
521
 
542
522
  [[package]]
543
523
  name = "target-lexicon"
544
- version = "0.13.2"
524
+ version = "0.13.5"
545
525
  source = "registry+https://github.com/rust-lang/crates.io-index"
546
- checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
526
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
547
527
 
548
528
  [[package]]
549
529
  name = "unicode-ident"
@@ -557,12 +537,6 @@ version = "0.1.0"
557
537
  source = "registry+https://github.com/rust-lang/crates.io-index"
558
538
  checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc"
559
539
 
560
- [[package]]
561
- name = "unindent"
562
- version = "0.2.3"
563
- source = "registry+https://github.com/rust-lang/crates.io-index"
564
- checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
565
-
566
540
  [[package]]
567
541
  name = "version_check"
568
542
  version = "0.9.5"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rust-sasa-python"
3
- version = "0.7.1"
3
+ version = "0.7.3"
4
4
  edition = "2024"
5
5
  readme = "README.md"
6
6
 
@@ -11,8 +11,8 @@ crate-type = ["cdylib"]
11
11
 
12
12
  [dependencies]
13
13
  pdbtbx = "0.12.0"
14
- pyo3 = "0.25.1"
15
- rust-sasa = "0.9.1"
14
+ pyo3 = "0.29.3"
15
+ rust-sasa = "0.9.2"
16
16
  mimalloc = "0.1.47"
17
17
  num-complex = "0.4.6"
18
18
  pulp = "0.22.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rust-sasa-python
3
- Version: 0.7.1
3
+ Version: 0.7.3
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -16,20 +16,27 @@ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
16
16
 
17
17
  # rust-sasa-python
18
18
 
19
- A high-performance **Python library** for computing SASA (Solvent Accessible Surface Area) using Rust as the backend. This library provides a clean, Pythonic interface to the fast RustSASA calculation engine.
19
+ A high-performance **Python library** for computing SASA (Solvent Accessible Surface Area) using Rust as the backend. This library provides a clean, Pythonic interface to the fast RustSASA calculation engine. If you use RustSASA in your research, please [cite it](https://github.com/maxall41/RustSASA#how-to-cite).
20
20
 
21
21
  ## Features
22
22
 
23
- - 🦀 **Powered by [RustSASA](https://github.com/maxall41/RustSASA)**: Leverages Rust's performance and safety.
24
- - ⚡️ **Ludicrous Speed**: **63X** faster than Biopython, **5X** faster than Freesasa.
25
- - 🐍 **Pythonic Interface**: Clean, intuitive API.
26
- - 🔧 **Configurable**: Customizable probe radius and sampling points.
27
- - 📁 **PDB and mmCIF SUPPORT**: Supports both PDB and mmCIF files.
23
+ - **Powered by [RustSASA](https://github.com/maxall41/RustSASA)**: Leverages Rust's performance and safety.
24
+ - **Ludicrous Speed**: **63X** faster than Biopython, **5X** faster than Freesasa.
25
+ - **Pythonic Interface**: Clean, intuitive API.
26
+ - **Configurable**: Customizable probe radius and sampling points.
27
+ - **PDB and mmCIF SUPPORT**: Supports both PDB and mmCIF files.
28
28
 
29
29
  ## Installation
30
30
 
31
- ```bash
31
+ ```shell
32
+ # PyPI
32
33
  pip install rust-sasa-python
34
+
35
+ # conda
36
+ conda install -c conda-forge rust-sasa-python
37
+
38
+ # mamba
39
+ mamba install -c conda-forge rust-sasa-python
33
40
  ```
34
41
 
35
42
  ## Quick Start
@@ -1,19 +1,26 @@
1
1
  # rust-sasa-python
2
2
 
3
- A high-performance **Python library** for computing SASA (Solvent Accessible Surface Area) using Rust as the backend. This library provides a clean, Pythonic interface to the fast RustSASA calculation engine.
3
+ A high-performance **Python library** for computing SASA (Solvent Accessible Surface Area) using Rust as the backend. This library provides a clean, Pythonic interface to the fast RustSASA calculation engine. If you use RustSASA in your research, please [cite it](https://github.com/maxall41/RustSASA#how-to-cite).
4
4
 
5
5
  ## Features
6
6
 
7
- - 🦀 **Powered by [RustSASA](https://github.com/maxall41/RustSASA)**: Leverages Rust's performance and safety.
8
- - ⚡️ **Ludicrous Speed**: **63X** faster than Biopython, **5X** faster than Freesasa.
9
- - 🐍 **Pythonic Interface**: Clean, intuitive API.
10
- - 🔧 **Configurable**: Customizable probe radius and sampling points.
11
- - 📁 **PDB and mmCIF SUPPORT**: Supports both PDB and mmCIF files.
7
+ - **Powered by [RustSASA](https://github.com/maxall41/RustSASA)**: Leverages Rust's performance and safety.
8
+ - **Ludicrous Speed**: **63X** faster than Biopython, **5X** faster than Freesasa.
9
+ - **Pythonic Interface**: Clean, intuitive API.
10
+ - **Configurable**: Customizable probe radius and sampling points.
11
+ - **PDB and mmCIF SUPPORT**: Supports both PDB and mmCIF files.
12
12
 
13
13
  ## Installation
14
14
 
15
- ```bash
15
+ ```shell
16
+ # PyPI
16
17
  pip install rust-sasa-python
18
+
19
+ # conda
20
+ conda install -c conda-forge rust-sasa-python
21
+
22
+ # mamba
23
+ mamba install -c conda-forge rust-sasa-python
17
24
  ```
18
25
 
19
26
  ## Quick Start
@@ -12,7 +12,7 @@ mod simd;
12
12
  #[global_allocator]
13
13
  static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
14
14
 
15
- #[pyclass]
15
+ #[pyclass(from_py_object)]
16
16
  #[derive(Clone)]
17
17
  pub struct Protein {
18
18
  #[pyo3(get)]
@@ -33,7 +33,7 @@ impl Protein {
33
33
  }
34
34
  }
35
35
 
36
- #[pyclass]
36
+ #[pyclass(from_py_object)]
37
37
  #[derive(Clone)]
38
38
  pub struct Residue {
39
39
  #[pyo3(get)]
@@ -56,7 +56,7 @@ impl Residue {
56
56
  }
57
57
  }
58
58
 
59
- #[pyclass]
59
+ #[pyclass(from_py_object)]
60
60
  #[derive(Clone)]
61
61
  pub struct Chain {
62
62
  #[pyo3(get)]
@@ -72,7 +72,7 @@ impl Chain {
72
72
  }
73
73
  }
74
74
 
75
- #[pyclass]
75
+ #[pyclass(from_py_object)]
76
76
  #[derive(Clone)]
77
77
  pub struct SASACalculator {
78
78
  pdb_path: String,