raio-py 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.
@@ -0,0 +1,137 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "heck"
7
+ version = "0.5.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
10
+
11
+ [[package]]
12
+ name = "libc"
13
+ version = "0.2.189"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
16
+
17
+ [[package]]
18
+ name = "once_cell"
19
+ version = "1.21.4"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
22
+
23
+ [[package]]
24
+ name = "portable-atomic"
25
+ version = "1.14.0"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"
28
+
29
+ [[package]]
30
+ name = "proc-macro2"
31
+ version = "1.0.107"
32
+ source = "registry+https://github.com/rust-lang/crates.io-index"
33
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
34
+ dependencies = [
35
+ "unicode-ident",
36
+ ]
37
+
38
+ [[package]]
39
+ name = "pyo3"
40
+ version = "0.29.2"
41
+ source = "registry+https://github.com/rust-lang/crates.io-index"
42
+ checksum = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b"
43
+ dependencies = [
44
+ "libc",
45
+ "once_cell",
46
+ "portable-atomic",
47
+ "pyo3-build-config",
48
+ "pyo3-ffi",
49
+ "pyo3-macros",
50
+ ]
51
+
52
+ [[package]]
53
+ name = "pyo3-build-config"
54
+ version = "0.29.2"
55
+ source = "registry+https://github.com/rust-lang/crates.io-index"
56
+ checksum = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9"
57
+ dependencies = [
58
+ "target-lexicon",
59
+ ]
60
+
61
+ [[package]]
62
+ name = "pyo3-ffi"
63
+ version = "0.29.2"
64
+ source = "registry+https://github.com/rust-lang/crates.io-index"
65
+ checksum = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327"
66
+ dependencies = [
67
+ "libc",
68
+ "pyo3-build-config",
69
+ ]
70
+
71
+ [[package]]
72
+ name = "pyo3-macros"
73
+ version = "0.29.2"
74
+ source = "registry+https://github.com/rust-lang/crates.io-index"
75
+ checksum = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c"
76
+ dependencies = [
77
+ "proc-macro2",
78
+ "pyo3-macros-backend",
79
+ "quote",
80
+ "syn",
81
+ ]
82
+
83
+ [[package]]
84
+ name = "pyo3-macros-backend"
85
+ version = "0.29.2"
86
+ source = "registry+https://github.com/rust-lang/crates.io-index"
87
+ checksum = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952"
88
+ dependencies = [
89
+ "heck",
90
+ "proc-macro2",
91
+ "quote",
92
+ "syn",
93
+ ]
94
+
95
+ [[package]]
96
+ name = "quote"
97
+ version = "1.0.47"
98
+ source = "registry+https://github.com/rust-lang/crates.io-index"
99
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
100
+ dependencies = [
101
+ "proc-macro2",
102
+ ]
103
+
104
+ [[package]]
105
+ name = "raio-py"
106
+ version = "0.1.0"
107
+ dependencies = [
108
+ "pyo3",
109
+ "raio-rs",
110
+ ]
111
+
112
+ [[package]]
113
+ name = "raio-rs"
114
+ version = "0.1.0"
115
+
116
+ [[package]]
117
+ name = "syn"
118
+ version = "2.0.119"
119
+ source = "registry+https://github.com/rust-lang/crates.io-index"
120
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
121
+ dependencies = [
122
+ "proc-macro2",
123
+ "quote",
124
+ "unicode-ident",
125
+ ]
126
+
127
+ [[package]]
128
+ name = "target-lexicon"
129
+ version = "0.13.5"
130
+ source = "registry+https://github.com/rust-lang/crates.io-index"
131
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
132
+
133
+ [[package]]
134
+ name = "unicode-ident"
135
+ version = "1.0.24"
136
+ source = "registry+https://github.com/rust-lang/crates.io-index"
137
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
@@ -0,0 +1,9 @@
1
+ [workspace]
2
+ resolver = "3"
3
+ members = ["raio-rs", "raio-py"]
4
+
5
+ [workspace.package]
6
+ version = "0.1.0"
7
+ edition = "2024"
8
+ license = "Apache-2.0"
9
+ repository = "https://github.com/depetrol/raio"
raio_py-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: raio-py
3
+ Version: 0.1.0
4
+ Summary: A deterministic realtime async runtime
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
8
+
9
+ # raio
10
+
11
+ ## Developer Setup
12
+
13
+ ### Setup Pre-Commit
14
+
15
+ ```bash
16
+ pip install pre-commit
17
+ pre-commit install --hook-type commit-msg --hook-type pre-push
18
+ pre-commit run --all-files
19
+ ```
20
+
21
+ ### Build Project
22
+ #### Rust
23
+ ```bash
24
+ cargo build
25
+ cargo test
26
+ ```
27
+
28
+ #### Python
29
+ ```bash
30
+ cd raio-py
31
+ maturin develop
32
+ python -m pytest tests/
33
+ ```
34
+
35
+ ### Publish package
36
+
37
+ #### Cargo
38
+ ```bash
39
+ cargo publish -p raio-rs --dry-run
40
+ cargo publish -p raio-rs
41
+ ```
42
+
43
+ #### PyPI
44
+ ```bash
45
+ cd raio-py
46
+ maturin build --release
47
+ uv publish ../target/wheels/*
48
+ ```
49
+
@@ -0,0 +1,40 @@
1
+ # raio
2
+
3
+ ## Developer Setup
4
+
5
+ ### Setup Pre-Commit
6
+
7
+ ```bash
8
+ pip install pre-commit
9
+ pre-commit install --hook-type commit-msg --hook-type pre-push
10
+ pre-commit run --all-files
11
+ ```
12
+
13
+ ### Build Project
14
+ #### Rust
15
+ ```bash
16
+ cargo build
17
+ cargo test
18
+ ```
19
+
20
+ #### Python
21
+ ```bash
22
+ cd raio-py
23
+ maturin develop
24
+ python -m pytest tests/
25
+ ```
26
+
27
+ ### Publish package
28
+
29
+ #### Cargo
30
+ ```bash
31
+ cargo publish -p raio-rs --dry-run
32
+ cargo publish -p raio-rs
33
+ ```
34
+
35
+ #### PyPI
36
+ ```bash
37
+ cd raio-py
38
+ maturin build --release
39
+ uv publish ../target/wheels/*
40
+ ```
@@ -0,0 +1,19 @@
1
+ [build-system]
2
+ requires = ["maturin>=1.9,<2.0"]
3
+ build-backend = "maturin"
4
+
5
+ [project]
6
+ name = "raio-py"
7
+ description = "A deterministic realtime async runtime"
8
+ readme = "README.md"
9
+ requires-python = ">=3.9"
10
+ license = "Apache-2.0"
11
+ dynamic = ["version"]
12
+
13
+ [tool.maturin]
14
+ module-name = "raio"
15
+ features = ["extension-module"]
16
+ manifest-path = "raio-py/Cargo.toml"
17
+
18
+ [dependency-groups]
19
+ dev = ["pytest"]
@@ -0,0 +1,21 @@
1
+ [package]
2
+ name = "raio-py"
3
+ version.workspace = true
4
+ edition.workspace = true
5
+ license.workspace = true
6
+ repository.workspace = true
7
+ description = "A deterministic realtime async runtime"
8
+ publish = false
9
+
10
+ [lib]
11
+ name = "raio_py"
12
+ crate-type = ["cdylib"]
13
+ test = false
14
+ doctest = false
15
+
16
+ [dependencies]
17
+ raio-rs = { path = "../raio-rs" }
18
+ pyo3 = "0.29"
19
+
20
+ [features]
21
+ extension-module = ["pyo3/extension-module"]
@@ -0,0 +1 @@
1
+ def add(left: int, right: int) -> int: ...
@@ -0,0 +1,12 @@
1
+ use pyo3::prelude::*;
2
+
3
+ #[pyfunction]
4
+ fn add(left: u64, right: u64) -> u64 {
5
+ raio::add(left, right)
6
+ }
7
+
8
+ #[pymodule(name = "raio")]
9
+ fn raio_py(m: &Bound<'_, PyModule>) -> PyResult<()> {
10
+ m.add_function(wrap_pyfunction!(add, m)?)?;
11
+ Ok(())
12
+ }
@@ -0,0 +1,9 @@
1
+ import raio
2
+
3
+
4
+ def test_add():
5
+ assert raio.add(2, 3) == 5
6
+
7
+
8
+ def test_add_zero():
9
+ assert raio.add(0, 0) == 0
@@ -0,0 +1,15 @@
1
+ [package]
2
+ name = "raio-rs"
3
+ version.workspace = true
4
+ edition.workspace = true
5
+ license.workspace = true
6
+ repository.workspace = true
7
+ description = "A deterministic realtime async runtime"
8
+ readme = "README.md"
9
+ keywords = ["async", "runtime", "deterministic", "realtime", "asyncio"]
10
+ categories = ["asynchronous", "concurrency", "simulation", "realtime"]
11
+
12
+ [lib]
13
+ name = "raio"
14
+
15
+ [dependencies]
@@ -0,0 +1,40 @@
1
+ # raio
2
+
3
+ ## Developer Setup
4
+
5
+ ### Setup Pre-Commit
6
+
7
+ ```bash
8
+ pip install pre-commit
9
+ pre-commit install --hook-type commit-msg --hook-type pre-push
10
+ pre-commit run --all-files
11
+ ```
12
+
13
+ ### Build Project
14
+ #### Rust
15
+ ```bash
16
+ cargo build
17
+ cargo test
18
+ ```
19
+
20
+ #### Python
21
+ ```bash
22
+ cd raio-py
23
+ maturin develop
24
+ python -m pytest tests/
25
+ ```
26
+
27
+ ### Publish package
28
+
29
+ #### Cargo
30
+ ```bash
31
+ cargo publish -p raio-rs --dry-run
32
+ cargo publish -p raio-rs
33
+ ```
34
+
35
+ #### PyPI
36
+ ```bash
37
+ cd raio-py
38
+ maturin build --release
39
+ uv publish ../target/wheels/*
40
+ ```
@@ -0,0 +1,14 @@
1
+ pub fn add(left: u64, right: u64) -> u64 {
2
+ left + right
3
+ }
4
+
5
+ #[cfg(test)]
6
+ mod tests {
7
+ use super::*;
8
+
9
+ #[test]
10
+ fn it_works() {
11
+ let result = add(2, 2);
12
+ assert_eq!(result, 4);
13
+ }
14
+ }