MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / main

Function main

examples/hello.rs:3–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1use cpython::{PyDict, PyResult, Python};
2
3fn main() {
4 let gil = Python::acquire_gil();
5 hello(gil.python()).unwrap();
6}
7
8fn hello(py: Python) -> PyResult<()> {
9 let sys = py.import("sys")?;

Callers

nothing calls this directly

Calls 2

helloFunction · 0.85
pythonMethod · 0.80

Tested by

no test coverage detected