@ -1,3 +1,12 @@
// Copyright (c) 2022-2025 Niko Bonnieure, Par le Peuple, NextGraph.org developers
// All rights reserved.
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE2 or http://www.apache.org/licenses/LICENSE-2.0>
// or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>,
// at your option. All files in the project carrying such
// notice may not be copied, modified, or distributed except
// according to those terms.
use pyo3 ::exceptions ::PyTypeError ;
use pyo3 ::exceptions ::PyTypeError ;
use pyo3 ::prelude ::* ;
use pyo3 ::prelude ::* ;
use pythonize ::{ depythonize , pythonize } ;
use pythonize ::{ depythonize , pythonize } ;
@ -86,12 +95,6 @@ fn wallet_open_with_mnemonic_words(
} )
} )
}
}
#[ derive(Debug, Serialize, Deserialize, PartialEq) ]
struct Sample {
foo : u64 ,
bar : Option < usize > ,
}
#[ pyfunction ]
#[ pyfunction ]
#[ pyo3(signature = (session_id, sparql, nuri=None)) ]
#[ pyo3(signature = (session_id, sparql, nuri=None)) ]
fn doc_sparql_update (
fn doc_sparql_update (
@ -134,7 +137,7 @@ fn disconnect_and_close<'a>(
}
}
#[ pymodule ]
#[ pymodule ]
fn nextgraph ( m : & Bound < ' _ , PyModule > ) -> PyResult < ( ) > {
fn nextgraphpy ( m : & Bound < ' _ , PyModule > ) -> PyResult < ( ) > {
m . add_function ( wrap_pyfunction ! ( wallet_open_with_mnemonic_words , m ) ? ) ? ;
m . add_function ( wrap_pyfunction ! ( wallet_open_with_mnemonic_words , m ) ? ) ? ;
m . add_function ( wrap_pyfunction ! ( doc_sparql_update , m ) ? ) ? ;
m . add_function ( wrap_pyfunction ! ( doc_sparql_update , m ) ? ) ? ;
m . add_function ( wrap_pyfunction ! ( disconnect_and_close , m ) ? ) ? ;
m . add_function ( wrap_pyfunction ! ( disconnect_and_close , m ) ? ) ? ;