Random Test

This commit is contained in:
brotoskyj
2025-10-20 15:52:34 -04:00
parent 8f1bbb2040
commit 63a0da47a4
7 changed files with 1521 additions and 2 deletions
Generated
+1488
View File
File diff suppressed because it is too large Load Diff
+6 -1
View File
@@ -7,4 +7,9 @@ edition = "2024"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
pyo3 = "0.27.0" pyo3 = { version = "0.27.0", features = ["extension-module"] }
reqwest = "0.12.24"
serde = "1.0.228"
[package.metadata.maturin]
generate-abi-stubs = true
+4
View File
@@ -0,0 +1,4 @@
from typing import Dict, List, Optional
def pull_policy_exec_histories(self, type: List[str], checkpoint: str, policy: List[str]) -> str:
"""Retrieve execution history logs."""
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
cargo clean
maturin build
python3 -m pip uninstall airlock_libs --break-system-packages
python3 -m pip install target/wheels/airlock_libs-0.1.0-cp313-cp313-manylinux_2_34_x86_64.whl --break-system-packages
+3
View File
@@ -0,0 +1,3 @@
import airlock_libs
airlock_libs.pull_policy_exec_histories()
+4 -1
View File
@@ -1,8 +1,11 @@
use pyo3::prelude::*; use pyo3::prelude::*;
mod chunkinator; mod chunkinator;
mod services;
#[pymodule] #[pymodule]
fn python_ext(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> { fn airlock_libs(py: Python<'_>, m: &Bound<'_, PyModule>) -> PyResult<()> {
m.add_function(wrap_pyfunction!(double, py)?)?; m.add_function(wrap_pyfunction!(double, py)?)?;
m.add_function(wrap_pyfunction!(services::pull_policy_exec_histories, py)?)?;
m.add_function(wrap_pyfunction!(services::api, py)?)?;
Ok(()) Ok(())
} }
#[pyfunction] #[pyfunction]
+11
View File
@@ -0,0 +1,11 @@
use pyo3::prelude::*;
#[pyfunction]
pub fn pull_policy_exec_histories() {
println!("Hello World from Rust!");
}
#[pyfunction]
pub fn api(x: String) {
println!("{}", x);
}