MCPcopy Create free account

hub / github.com/PyO3/pyo3 / functions

Functions4,885 in github.com/PyO3/pyo3

Methodfrom
(err: CustomError)
tests/test_exceptions.rs:54
Methodfrom_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
Methodfrom_arguments
Without `#[pyo3(signature)]` or `#[args]` - just take the Rust function arguments as positional.
pyo3-macros-backend/src/pyfunction/signature.rs:569
Methodfrom_arguments_and_attribute
( mut arguments: Vec<FnArg<'a>>, attribute: SignatureAttribute, )
pyo3-macros-backend/src/pyfunction/signature.rs:434
Methodfrom_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
Methodfrom_attrs
Parses #[pyo3(from_python_with = "func")]
pyo3-macros-backend/src/pyfunction.rs:60
Methodfrom_attrs
(attrs: &[Attribute])
pyo3-macros-backend/src/derive_attributes.rs:62
Methodfrom_attrs
(attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/pyimpl.rs:59
Methodfrom_attrs
(attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/konst.rs:64
Methodfrom_borrowed_non_null
(_py: Python<'_>, ptr: NonNull<ffi::PyObject>)
src/instance.rs:2040
Methodfrom_borrowed_ptr
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:414
Methodfrom_borrowed_ptr_or_err
( py: Python<'py>, ptr: *mut ffi::PyObject, )
src/instance.rs:444
Methodfrom_borrowed_ptr_or_opt
( py: Python<'py>, ptr: *mut ffi::PyObject, )
src/instance.rs:427
Methodfrom_borrowed_type_ptr
( py: Python<'_>, p: *mut ffi::PyTypeObject, )
src/types/typeobject.rs:54
Methodfrom_build_env
( implementation: PythonImplementation, version: PythonVersion, stable_abi_version: Op
pyo3-build-config/src/impl_.rs:1127
Methodfrom_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
Methodfrom_cargo_dep_env
()
pyo3-build-config/src/impl_.rs:691
Methodfrom_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
Methodfrom_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
Functionfrom_complex
()
src/conversions/num_complex.rs:226
Methodfrom_complex_bound
Creates a new Python `PyComplex` object from `num_complex`'s [`Complex`].
src/conversions/num_complex.rs:110
Functionfrom_complex_err
()
src/conversions/num_complex.rs:243
Methodfrom_doubles
Creates a new `PyComplex` from the given real and imaginary values.
src/types/complex.rs:57
Methodfrom_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
Methodfrom_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
Methodfrom_fmt
( py: Python<'py>, args: fmt::Arguments<'_>, )
src/types/string.rs:259
Methodfrom_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
Methodfrom_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
Methodfrom_inner
(inner: PyErrStateInner)
src/err/err_state.rs:67
Methodfrom_interpreter
( interpreter: impl AsRef<Path>, abi3_version: Option<StableAbiVersion>, abi3t_version
pyo3-build-config/src/impl_.rs:419
Methodfrom_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
Methodfrom_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
Methodfrom_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
Methodfrom_method_def
(def: PyMethodDef)
src/impl_/pyfunction.rs:25
Methodfrom_name
(name: &str)
pyo3-macros-backend/src/pymethod.rs:84
Methodfrom_non_null
(py: Python<'py>, ptr: NonNull<ffi::PyObject>)
src/instance.rs:1211
Methodfrom_normalized_ffi_tuple
( py: Python<'_>, ptype: *mut ffi::PyObject, pvalue: *mut ffi::PyObject, ptrac
src/err/err_state.rs:256
Methodfrom_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
Methodfrom_owned_ptr
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:347
Methodfrom_owned_ptr_or_err
( py: Python<'py>, ptr: *mut ffi::PyObject, )
src/instance.rs:375
Methodfrom_owned_ptr_or_opt
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:360
Methodfrom_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
Methodfrom_panic_payload
(payload: Box<dyn Any + Send + 'static>)
src/panic.rs:24
Methodfrom_path
(path: impl AsRef<Path>)
pyo3-build-config/src/impl_.rs:678
Methodfrom_ptr
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:1143
Methodfrom_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
Methodfrom_ptr_or_err
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:1180
Methodfrom_ptr_or_opt
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:1161
Methodfrom_ptr_unchecked
(py: Python<'py>, ptr: *mut ffi::PyObject)
src/instance.rs:1199
Functionfrom_py_float_type_error
()
src/conversions/num_bigint.rs:713
Functionfrom_py_with_default
( #[pyo3(from_py_with = <Bound<'_, _> as PyAnyMethods>::len)] len: usize, )
tests/test_pyfunction.rs:271
Functionfrom_py_with_no_value
(#[pyo3(from_py_with)] _param: String)
tests/ui/invalid_argument_attributes.rs:8
Functionfrom_py_with_option
(#[pyo3(from_py_with = optional_int)] int: Option<i32>)
tests/test_pyfunction.rs:266
Functionfrom_py_with_repeated
(#[pyo3(from_py_with = func, from_py_with = func)] _param: String)
tests/ui/invalid_argument_attributes.rs:19
Functionfrom_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
Functionfrom_py_with_string
(#[pyo3("from_py_with")] _param: String)
tests/ui/invalid_argument_attributes.rs:12
Functionfrom_py_with_value_not_found
(#[pyo3(from_py_with = func)] _param: String)
tests/ui/invalid_argument_attributes.rs:16
Functionfrom_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
Methodfrom_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
Functionfrom_python_inherited_magic
()
src/conversions/num_complex.rs:284
Functionfrom_python_magic
()
src/conversions/num_complex.rs:250
Functionfrom_python_noncallable_descriptor_magic
()
src/conversions/num_complex.rs:322
Functionfrom_python_nondescriptor_magic
()
src/conversions/num_complex.rs:347
Methodfrom_raw
Conversion from the C enum.
src/pyclass.rs:52
Methodfrom_reader
(reader: impl Read)
pyo3-build-config/src/impl_.rs:697
Methodfrom_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
Methodfrom_sequence
(seq: &Bound<'py, PyAny>)
src/types/dict.rs:70
Methodfrom_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
Methodfrom_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
Methodfrom_soabi
(soabi: &str)
pyo3-build-config/src/impl_.rs:1559
Methodfrom_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
Methodfrom_state
(state: PyErrState)
src/err/mod.rs:649
Methodfrom_str
(value: &str)
pyo3-build-config/src/impl_.rs:1029
Methodfrom_str
Parses a hard-coded Python interpreter version string (e.g. 3.9.0a4+).
src/version.rs:31
Methodfrom_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
Methodfrom_timestamp
Construct a `datetime.date` from a POSIX timestamp This is equivalent to `datetime.date.fromtimestamp`
src/types/datetime.rs:257
Methodfrom_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
Methodfrom_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
Methodfrom_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
Functionfrozen_py_field_get
()
tests/test_getter_setter.rs:265
Methodfull
Constructs a new full slice that is equivalent to `::`.
src/types/slice.rs:99
Methodfull_name
(&self)
src/impl_/extract_argument.rs:553
Methodfunc
(&mut self, py: Python<'_>)
src/marker.rs:989
Methodfunc_a
(&self)
tests/ui/invalid_pymethods_duplicates.rs:31
Methodfunc_b
(&self)
tests/ui/invalid_pymethods_duplicates.rs:34
Functionfunction_stubs_with_variable_length
()
pyo3-introspection/src/stubs.rs:823
Functionfunction_stubs_without_variable_length
()
pyo3-introspection/src/stubs.rs:869
Functionfunction_with_args_after_args_sep
~^ ERROR: `*args` not allowed after `*`
tests/ui/invalid_pyfunction_signatures.rs:31
Functionfunction_with_args_after_kwargs
~^ ERROR: `*args` not allowed after `**kwargs`
tests/ui/invalid_pyfunction_signatures.rs:43
Functionfunction_with_args_sep_after_args_sep
~^ ERROR: `*` not allowed after `*`
tests/ui/invalid_pyfunction_signatures.rs:38
Functionfunction_with_both_args_and_signature
(x: i32)
tests/ui/invalid_pyfunction_signatures.rs:24
Functionfunction_with_custom_conversion
( #[pyo3(from_py_with = datetime_to_timestamp)] timestamp: i64, )
tests/test_pyfunction.rs:213
Functionfunction_with_incorrect_argument_names
~^ ERROR: expected argument from function definition `y` but got argument `x`
tests/ui/invalid_pyfunction_signatures.rs:17
Functionfunction_with_kwargs_after_kwargs
~^ ERROR: `**kwargs_b` not allowed after `**kwargs_a`
tests/ui/invalid_pyfunction_signatures.rs:51
Functionfunction_with_multiple_custom_warnings
()
tests/test_pyfunction.rs:794
Functionfunction_with_multiple_warnings
()
tests/test_pyfunction.rs:779
Functionfunction_with_name
()
tests/test_module.rs:59
Functionfunction_with_one_argument_empty_signature
~^ ERROR: missing signature entry for argument `_x`
tests/ui/invalid_pyfunction_signatures.rs:7
Functionfunction_with_one_entry_signature_no_args
~^ ERROR: signature entry does not have a corresponding function argument
tests/ui/invalid_pyfunction_signatures.rs:12
Functionfunction_with_optional_args
(args: Option<Bound<'_, PyTuple>>)
tests/ui/invalid_pyfunctions.rs:22
← previousnext →2,501–2,600 of 4,885, ranked by callers