Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyO3/pyo3
/ functions
Functions
4,885 in github.com/PyO3/pyo3
⨍
Functions
4,885
◇
Types & classes
1,305
↳
Endpoints
2
Method
from
(err: CustomError)
tests/test_exceptions.rs:54
Method
from_argument_type
The type hint of the Rust type used as a function argument If self_type is set, self_type will replace Self in the given type
pyo3-macros-backend/src/py_expr.rs:114
Method
from_arguments
Without `#[pyo3(signature)]` or `#[args]` - just take the Rust function arguments as positional.
pyo3-macros-backend/src/pyfunction/signature.rs:569
Method
from_arguments_and_attribute
( mut arguments: Vec<FnArg<'a>>, attribute: SignatureAttribute, )
pyo3-macros-backend/src/pyfunction/signature.rs:434
Method
from_async_iter_next_return_type
The type hint of the Rust type used as the output type of `__anext__` If self_type is set, self_type will replace Self in the given type
pyo3-macros-backend/src/py_expr.rs:135
Method
from_attrs
Parses #[pyo3(from_python_with = "func")]
pyo3-macros-backend/src/pyfunction.rs:60
Method
from_attrs
(attrs: &[Attribute])
pyo3-macros-backend/src/derive_attributes.rs:62
Method
from_attrs
(attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/pyimpl.rs:59
Method
from_attrs
(attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/konst.rs:64
Method
from_borrowed_non_null
(_py: Python<'_>, ptr: NonNull<ffi::PyObject>)
src/instance.rs:2040
Method
from_borrowed_ptr
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:414
Method
from_borrowed_ptr_or_err
( py: Python<'py>, ptr: *mut ffi::PyObject, )
src/instance.rs:444
Method
from_borrowed_ptr_or_opt
( py: Python<'py>, ptr: *mut ffi::PyObject, )
src/instance.rs:427
Method
from_borrowed_type_ptr
( py: Python<'_>, p: *mut ffi::PyTypeObject, )
src/types/typeobject.rs:54
Method
from_build_env
( implementation: PythonImplementation, version: PythonVersion, stable_abi_version: Op
pyo3-build-config/src/impl_.rs:1127
Method
from_bytes
Creates a new Python string object from bytes. Returns PyMemoryError if out of memory. Returns [PyUnicodeDecodeError] if the slice is not a valid UTF
src/types/string.rs:196
Method
from_cargo_dep_env
()
pyo3-build-config/src/impl_.rs:691
Method
from_cargo_features
Constructs the ABI to target for an interpreter of `version` from the enabled cargo features. The stable ABI and its minimum version are selected fro
pyo3-build-config/src/impl_.rs:1105
Method
from_code
Creates and loads a module named `module_name`, containing the Python code passed to `code` and pretending to live at `file_name`. If `file_name` is
src/types/module.rs:186
Function
from_complex
()
src/conversions/num_complex.rs:226
Method
from_complex_bound
Creates a new Python `PyComplex` object from `num_complex`'s [`Complex`].
src/conversions/num_complex.rs:110
Function
from_complex_err
()
src/conversions/num_complex.rs:243
Method
from_doubles
Creates a new `PyComplex` from the given real and imaginary values.
src/types/complex.rs:57
Method
from_encoded_object
Attempts to create a Python string from a Python [bytes-like object]. The `encoding` and `errors` parameters are optional: - If `encoding` is `None`,
src/types/string.rs:236
Method
from_env
Grabs the PyO3 cross-compile variables from the environment. Registers the build script to rerun if any of the variables changes.
pyo3-build-config/src/impl_.rs:1795
Method
from_fmt
( py: Python<'py>, args: fmt::Arguments<'_>, )
src/types/string.rs:259
Method
from_format
Determines the `ElementType` from a Python `struct` module format string. See <https://docs.python.org/3/library/struct.html#format-strings> for more
src/buffer.rs:123
Method
from_from_py_object
The type hint of a `FromPyObject` implementation as a function argument If self_type is set, self_type will replace Self in the given type
pyo3-macros-backend/src/py_expr.rs:93
Method
from_inner
(inner: PyErrStateInner)
src/err/err_state.rs:67
Method
from_interpreter
( interpreter: impl AsRef<Path>, abi3_version: Option<StableAbiVersion>, abi3t_version
pyo3-build-config/src/impl_.rs:419
Method
from_into_py_object
The type hint of a `IntoPyObject` implementation as a function argument If self_type is set, self_type will replace Self in the given type
pyo3-macros-backend/src/py_expr.rs:100
Method
from_into_py_object_maybe_ref
The type hint of a `IntoPyObject` implementation used by a field getter If self_type is set, self_type will replace Self in the given type
pyo3-macros-backend/src/py_expr.rs:107
Method
from_iter_next_return_type
The type hint of the Rust type used as the output type of `__next__` If self_type is set, self_type will replace Self in the given type
pyo3-macros-backend/src/py_expr.rs:128
Method
from_method_def
(def: PyMethodDef)
src/impl_/pyfunction.rs:25
Method
from_name
(name: &str)
pyo3-macros-backend/src/pymethod.rs:84
Method
from_non_null
(py: Python<'py>, ptr: NonNull<ffi::PyObject>)
src/instance.rs:1211
Method
from_normalized_ffi_tuple
( py: Python<'_>, ptype: *mut ffi::PyObject, pvalue: *mut ffi::PyObject, ptrac
src/err/err_state.rs:256
Method
from_object
Builds an iterator for an iterable Python object; the equivalent of calling `iter(obj)` in Python. Usually it is more convenient to write [`obj.try_i
src/types/iterator.rs:56
Method
from_owned_ptr
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:347
Method
from_owned_ptr_or_err
( py: Python<'py>, ptr: *mut ffi::PyObject, )
src/instance.rs:375
Method
from_owned_ptr_or_opt
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:360
Method
from_owned_ptr_unchecked
Constructs a new `Bound<'py, PyAny>` from a pointer without checking for null. # Safety - `ptr` must be a valid pointer to a Python object - `ptr` m
src/instance.rs:394
Method
from_panic_payload
(payload: Box<dyn Any + Send + 'static>)
src/panic.rs:24
Method
from_path
(path: impl AsRef<Path>)
pyo3-build-config/src/impl_.rs:678
Method
from_ptr
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:1143
Method
from_ptr
Creates a new Python byte string object from a raw pointer and length. Panics if out of memory. # Safety This function dereferences the raw pointer
src/types/bytes.rs:186
Method
from_ptr_or_err
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:1180
Method
from_ptr_or_opt
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:1161
Method
from_ptr_unchecked
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:1199
Function
from_py_float_type_error
()
src/conversions/num_bigint.rs:713
Function
from_py_with_default
( #[pyo3(from_py_with = <Bound<'_, _> as PyAnyMethods>::len)] len: usize, )
tests/test_pyfunction.rs:271
Function
from_py_with_no_value
(#[pyo3(from_py_with)] _param: String)
tests/ui/invalid_argument_attributes.rs:8
Function
from_py_with_option
(#[pyo3(from_py_with = optional_int)] int: Option<i32>)
tests/test_pyfunction.rs:266
Function
from_py_with_repeated
(#[pyo3(from_py_with = func, from_py_with = func)] _param: String)
tests/ui/invalid_argument_attributes.rs:19
Function
from_py_with_required
( obj: Option<&'a Bound<'py, PyAny>>, arg_name: &str, extractor: fn(&'a Bound<'py, PyAny>) -> PyRe
src/impl_/extract_argument.rs:425
Function
from_py_with_string
(#[pyo3("from_py_with")] _param: String)
tests/ui/invalid_argument_attributes.rs:12
Function
from_py_with_value_not_found
(#[pyo3(from_py_with = func)] _param: String)
tests/ui/invalid_argument_attributes.rs:16
Function
from_py_with_with_default
Alternative to [`extract_argument`] used when the argument has a `#[pyo3(from_py_with)]` annotation and also a default value.
src/impl_/extract_argument.rs:437
Method
from_pyo3_config_file_env
Import an externally-provided config file. The `abi3` features, if set, may apply an `abi3` constraint to the Python version.
pyo3-build-config/src/impl_.rs:653
Function
from_python_inherited_magic
()
src/conversions/num_complex.rs:284
Function
from_python_magic
()
src/conversions/num_complex.rs:250
Function
from_python_noncallable_descriptor_magic
()
src/conversions/num_complex.rs:322
Function
from_python_nondescriptor_magic
()
src/conversions/num_complex.rs:347
Method
from_raw
Conversion from the C enum.
src/pyclass.rs:52
Method
from_reader
(reader: impl Read)
pyo3-build-config/src/impl_.rs:697
Method
from_return_type
The type hint of the Rust type used as a function output type If self_type is set, self_type will replace Self in the given type
pyo3-macros-backend/src/py_expr.rs:121
Method
from_sequence
(seq: &Bound<'py, PyAny>)
src/types/dict.rs:70
Method
from_sequence
Creates a new frozendict from the sequence given. The sequence must consist of `(PyObject, PyObject)`. This is equivalent to `dict([("a", 1), ("b", 2
src/types/frozendict.rs:77
Method
from_signature
Determine default calling convention from an argument signature. Different other slots (tp_call, tp_new) can have other requirements and are set manu
pyo3-macros-backend/src/method.rs:565
Method
from_soabi
(soabi: &str)
pyo3-build-config/src/impl_.rs:1559
Method
from_stable_abi
Constructs the ABI to target for an interpreter of `version`, given the stable ABI kind and minimum Python version to target, if any. Callers decide
pyo3-build-config/src/impl_.rs:1064
Method
from_state
(state: PyErrState)
src/err/mod.rs:649
Method
from_str
(value: &str)
pyo3-build-config/src/impl_.rs:1029
Method
from_str
Parses a hard-coded Python interpreter version string (e.g. 3.9.0a4+).
src/version.rs:31
Method
from_sysconfigdata
Generate from parsed sysconfigdata file Use [`parse_sysconfigdata`] to generate a hash map of configuration values which may be used to build an [`In
pyo3-build-config/src/impl_.rs:590
Method
from_timestamp
Construct a `datetime.date` from a POSIX timestamp This is equivalent to `datetime.date.fromtimestamp`
src/types/datetime.rs:257
Method
from_type
The type hint of the Rust type `PyTypeCheck` trait. If self_type is set, self_type will replace Self in the given type
pyo3-macros-backend/src/py_expr.rs:142
Method
from_type
Constructs a new PyErr from the given Python type and arguments. `ty` is the exception type; usually one of the standard exceptions like `exceptions:
src/err/mod.rs:150
Method
from_value
Creates a new PyErr. If `obj` is a Python exception object, the PyErr will contain that object. If `obj` is a Python exception type object, this is
src/err/mod.rs:190
Function
frozen_py_field_get
()
tests/test_getter_setter.rs:265
Method
full
Constructs a new full slice that is equivalent to `::`.
src/types/slice.rs:99
Method
full_name
(&self)
src/impl_/extract_argument.rs:553
Method
func
(&mut self, py: Python<'_>)
src/marker.rs:989
Method
func_a
(&self)
tests/ui/invalid_pymethods_duplicates.rs:31
Method
func_b
(&self)
tests/ui/invalid_pymethods_duplicates.rs:34
Function
function_stubs_with_variable_length
()
pyo3-introspection/src/stubs.rs:823
Function
function_stubs_without_variable_length
()
pyo3-introspection/src/stubs.rs:869
Function
function_with_args_after_args_sep
~^ ERROR: `*args` not allowed after `*`
tests/ui/invalid_pyfunction_signatures.rs:31
Function
function_with_args_after_kwargs
~^ ERROR: `*args` not allowed after `**kwargs`
tests/ui/invalid_pyfunction_signatures.rs:43
Function
function_with_args_sep_after_args_sep
~^ ERROR: `*` not allowed after `*`
tests/ui/invalid_pyfunction_signatures.rs:38
Function
function_with_both_args_and_signature
(x: i32)
tests/ui/invalid_pyfunction_signatures.rs:24
Function
function_with_custom_conversion
( #[pyo3(from_py_with = datetime_to_timestamp)] timestamp: i64, )
tests/test_pyfunction.rs:213
Function
function_with_incorrect_argument_names
~^ ERROR: expected argument from function definition `y` but got argument `x`
tests/ui/invalid_pyfunction_signatures.rs:17
Function
function_with_kwargs_after_kwargs
~^ ERROR: `**kwargs_b` not allowed after `**kwargs_a`
tests/ui/invalid_pyfunction_signatures.rs:51
Function
function_with_multiple_custom_warnings
()
tests/test_pyfunction.rs:794
Function
function_with_multiple_warnings
()
tests/test_pyfunction.rs:779
Function
function_with_name
()
tests/test_module.rs:59
Function
function_with_one_argument_empty_signature
~^ ERROR: missing signature entry for argument `_x`
tests/ui/invalid_pyfunction_signatures.rs:7
Function
function_with_one_entry_signature_no_args
~^ ERROR: signature entry does not have a corresponding function argument
tests/ui/invalid_pyfunction_signatures.rs:12
Function
function_with_optional_args
(args: Option<Bound<'_, PyTuple>>)
tests/ui/invalid_pyfunctions.rs:22
← previous
next →
2,501–2,600 of 4,885, ranked by callers