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
↓ 2 callers
Function
dealloc
( slf: *mut ffi::PyObject, f: for<'py> unsafe fn(Python<'py>, *mut ffi::PyObject) -> (), )
src/impl_/trampoline.rs:273
↓ 2 callers
Method
deref
(&self)
src/pybacked.rs:69
↓ 2 callers
Method
doc
(&self)
pyo3-macros-backend/src/pymethod.rs:1099
↓ 2 callers
Function
docs
(session: nox.Session, nightly: bool = False, internal: bool = False)
noxfile.py:707
↓ 2 callers
Function
drop_deferred_references
(py: Python<'_>)
src/internal/state.rs:276
↓ 2 callers
Method
drop_ref
(self, py: Python<'_>)
src/instance.rs:1851
↓ 2 callers
Function
ensure_no_error
(py: Python<'_>)
src/types/capsule.rs:677
↓ 2 callers
Method
ensure_no_missing_required_keyword_arguments
( &self, output: &[Option<PyArg<'_>>], )
src/impl_/extract_argument.rs:830
↓ 2 callers
Method
ensure_no_missing_required_positional_arguments
( &self, output: &[Option<PyArg<'_>>], positional_args_provided: usize, )
src/impl_/extract_argument.rs:814
↓ 2 callers
Method
ensure_threadsafe
(&self)
src/pycell/impl_.rs:250
↓ 2 callers
Method
eq
(&self, other: O)
src/types/any.rs:999
↓ 2 callers
Function
escape
(bytes: &[u8])
pyo3-build-config/src/impl_.rs:2738
↓ 2 callers
Function
exact_stable_abi_version
(version: Option<StableAbiVersion>)
pyo3-build-config/src/impl_.rs:2335
↓ 2 callers
Method
extract
(obj: Borrowed<'_, '_, PyAny>)
src/conversions/bigdecimal.rs:86
↓ 2 callers
Method
extract
(obj: Borrowed<'_, 'py, PyAny>)
src/conversions/smallvec.rs:83
↓ 2 callers
Method
extract
(obj: Borrowed<'a, 'py, PyAny>)
src/conversions/bytes.rs:86
↓ 2 callers
Method
extract
(obj: Borrowed<'_, '_, PyAny>)
src/conversions/std/ipaddr.rs:21
↓ 2 callers
Method
extract
(obj: Borrowed<'a, '_, PyAny>)
src/conversions/std/cstring.rs:97
↓ 2 callers
Method
extract
(ob: Borrowed<'_, 'py, PyAny>)
src/conversions/std/set.rs:65
↓ 2 callers
Method
extract
(obj: Borrowed<'a, 'py, PyAny>, _: &'_ mut ())
src/impl_/extract_argument.rs:93
↓ 2 callers
Function
extract_argument
The standard implementation of how PyO3 extracts a `#[pyfunction]` or `#[pymethod]` function argument.
src/impl_/extract_argument.rs:355
↓ 2 callers
Method
extract_error_mode
(mut self, extract_error_mode: ExtractErrorMode)
pyo3-macros-backend/src/pymethod.rs:1482
↓ 2 callers
Function
failed_to_extract_struct_field
( py: Python<'_>, inner_err: PyErr, struct_name: &str, field_name: &str, )
src/impl_/frompyobject.rs:83
↓ 2 callers
Function
failed_to_extract_tuple_struct_field
( py: Python<'_>, inner_err: PyErr, struct_name: &str, index: usize, )
src/impl_/frompyobject.rs:133
↓ 2 callers
Function
field_python_name
( field: &Field, name_attr: Option<&NameAttribute>, renaming_rule: Option<RenamingRule>, )
pyo3-macros-backend/src/pymethod.rs:2011
↓ 2 callers
Method
finalize
Finish building the set and take ownership of its current value
src/types/frozenset.rs:48
↓ 2 callers
Function
find_all_sysconfigdata
Finds `_sysconfigdata*.py` files for detected Python interpreters. From the python source for `_sysconfigdata*.py` is always going to be located at `
pyo3-build-config/src/impl_.rs:2191
↓ 2 callers
Function
find_interpreter
Attempts to locate a python interpreter. Locations are checked in the order listed: 1. If `PYO3_PYTHON` is set, this interpreter is used. 2. If in a
pyo3-build-config/src/impl_.rs:2646
↓ 2 callers
Function
find_sysconfigdata
Finds the sysconfigdata file when the target Python library directory is set. Returns `None` if the library directory is not available, and a runtime
pyo3-build-config/src/impl_.rs:2127
↓ 2 callers
Method
fold
(mut self, init: B, mut f: F)
src/types/dict.rs:567
↓ 2 callers
Method
fold
(mut self, init: B, mut f: F)
src/types/list.rs:640
↓ 2 callers
Method
format
(&self)
src/buffer.rs:731
↓ 2 callers
Function
from_py_with
Alternative to [`extract_argument`] used when the argument has a `#[pyo3(from_py_with)]` annotation.
src/impl_/extract_argument.rs:408
↓ 2 callers
Function
function_stubs
(function: &Function, imports: &Imports, class_name: Option<&str>)
pyo3-introspection/src/stubs.rs:228
↓ 2 callers
Function
gen_py_const
(cls: &syn::Type, spec: &ConstSpec, ctx: &Ctx)
pyo3-macros-backend/src/pyimpl.rs:249
↓ 2 callers
Function
generate_method_body
( cls: &syn::Type, spec: &FnSpec<'_>, calling_convention: &SlotCallingConvention, extract_erro
pyo3-macros-backend/src/pymethod.rs:1568
↓ 2 callers
Function
get_bindgen_name
(name: &str, names: &HashSet<String>)
pyo3-ffi-check/macro/src/lib.rs:113
↓ 2 callers
Method
get_borrowed_item
(&'a self, index: usize)
src/types/tuple.rs:299
↓ 2 callers
Method
get_contents_ptr
(&self)
src/pycell/impl_.rs:584
↓ 2 callers
Function
get_decimal_cls
(py: Python<'_>)
src/conversions/bigdecimal.rs:70
↓ 2 callers
Function
get_host_interpreter
Locates and extracts the build host Python interpreter configuration. Lowers the configured Python version to `abi3_version` or `abi3t_version` if re
pyo3-build-config/src/impl_.rs:2678
↓ 2 callers
Method
get_ident
(&self)
pyo3-macros-backend/src/pyclass.rs:777
↓ 2 callers
Method
get_item
(&self, key: K)
src/types/dict.rs:252
↓ 2 callers
Method
get_item
(&self, index: usize)
src/types/tuple.rs:295
↓ 2 callers
Method
get_item
Gets the list item at the specified index. # Example ``` use pyo3::{prelude::*, types::PyList}; Python::attach(|py| { let list = PyList::new(py, [2, 3
src/types/list.rs:290
↓ 2 callers
Method
get_methoddef
Return a `PyMethodDef` constructor for this function, matching the selected calling convention.
pyo3-macros-backend/src/method.rs:1080
↓ 2 callers
Method
get_ptr
(&self)
src/pycell/impl_.rs:513
↓ 2 callers
Method
get_python_name
(&self, args: &PyClassArgs)
pyo3-macros-backend/src/pyclass.rs:759
↓ 2 callers
Method
get_slice
Takes the slice `self[low:high]` and returns it as a new list. Indices must be nonnegative, and out-of-range indices are clipped to `self.len()`.
src/types/list.rs:324
↓ 2 callers
Function
get_slot
Gets a slot from a raw FFI pointer. Safety: - `ty` must be a valid non-null pointer to a `PyTypeObject`. - The Python runtime must be initialized
src/internal/get_slot.rs:49
↓ 2 callers
Function
get_uuid_cls
(py: Python<'_>)
src/conversions/uuid.rs:81
↓ 2 callers
Method
getattr_opt
(&self, attr_name: N)
src/types/any.rs:867
↓ 2 callers
Method
gt
(&self, other: O)
src/types/any.rs:1015
↓ 2 callers
Function
has_attribute
(attrs: &[syn::Attribute], ident: &str)
pyo3-macros-backend/src/utils.rs:270
↓ 2 callers
Function
impl_arg_params
( spec: &FnSpec<'_>, self_: Option<&syn::Type>, fastcall: bool, holders: &mut Holders, ctx
pyo3-macros-backend/src/params.rs:56
↓ 2 callers
Function
impl_complex_enum_variant_match_args
( ctx @ Ctx { pyo3_path, .. }: &Ctx, variant_cls_type: &syn::Type, field_names: &[Ident], )
pyo3-macros-backend/src/pyclass.rs:1395
↓ 2 callers
Function
impl_complex_enum_variant_qualname
( enum_name: &syn::Ident, variant_ident: &syn::Ident, variant_cls_type: &syn::Type, ctx: &Ctx,
pyo3-macros-backend/src/pyclass.rs:1754
↓ 2 callers
Method
impl_into_py
(&self, ctx: &Ctx)
pyo3-macros-backend/src/pyclass.rs:2763
↓ 2 callers
Function
impl_py_method_def
( cls: &syn::Type, spec: &FnSpec<'_>, doc: Option<&PythonDoc>, ctx: &Ctx, )
pyo3-macros-backend/src/pymethod.rs:408
↓ 2 callers
Function
impl_py_setter_def
Used here for PropertyType::Function, used in pyclass for descriptors.
pyo3-macros-backend/src/pymethod.rs:678
↓ 2 callers
Function
impl_regular_arg_param
Re option_pos: The option slice doesn't contain the py: Python argument, so the argument index and the index in option diverge when using py: Python
pyo3-macros-backend/src/params.rs:246
↓ 2 callers
Function
impl_wrap_pyfunction
Generates python wrapper over a function that allows adding it to a python module as a python function
pyo3-macros-backend/src/pyfunction.rs:339
↓ 2 callers
Function
increment_attach_count
()
src/internal/state.rs:379
↓ 2 callers
Method
inner
(any: &Bound<'_, PyAny>, other: Borrowed<'_, '_, PyAny>)
src/types/any.rs:914
↓ 2 callers
Function
int_n_bits
(long: &Bound<'_, PyInt>)
src/conversions/num_bigint.rs:520
↓ 2 callers
Function
intern
(py: crate::Python<'_>)
src/tests/hygiene/misc.rs:29
↓ 2 callers
Method
into_inner
(self)
src/platform/sync.rs:97
↓ 2 callers
Method
into_inner
Consumes this mutex, returning the underlying data. # Errors If another user of this mutex panicked while holding the mutex, then this call will ret
src/sync/mutex.rs:201
↓ 2 callers
Method
into_iter
(self)
src/types/dict.rs:713
↓ 2 callers
Method
into_iter
(self)
src/types/tuple.rs:533
↓ 2 callers
Method
into_pyobject
(self, py: Python<'py>)
src/pybacked.rs:157
↓ 2 callers
Method
into_pyobject
(self, py: crate::Python<'py>)
src/pyclass/guard.rs:329
↓ 2 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/smallvec.rs:46
↓ 2 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/hashbrown.rs:47
↓ 2 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/std/time.rs:60
↓ 2 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/std/path.rs:42
↓ 2 callers
Method
into_signature
(self)
pyo3-macros-backend/src/pyfunction/signature.rs:266
↓ 2 callers
Method
into_super
Gets a `PyClassGuard<T::BaseType>`. With the help of this method, you can get hold of instances of the super-superclass when needed. # Examples ```
src/pyclass/guard.rs:257
↓ 2 callers
Function
introspection_symbol_version
(name: &str)
pyo3-introspection/src/introspection.rs:678
↓ 2 callers
Function
invalid_sequence_length
(expected: usize, actual: usize)
src/conversions/std/array.rs:172
↓ 2 callers
Function
is_30bit_layout
(py: Python<'_>)
src/conversions/std/num.rs:368
↓ 2 callers
Function
is_forwarded_args
Return true if the argument list is simply (*args, **kwds).
pyo3-macros-backend/src/params.rs:49
↓ 2 callers
Method
is_instance
(&self, ty: &Bound<'py, PyAny>)
src/types/any.rs:1257
↓ 2 callers
Function
is_runtime_3_10
(py: crate::Python<'_>)
src/internal/get_slot.rs:139
↓ 2 callers
Function
is_rust_nightly
()
noxfile.py:1863
↓ 2 callers
Method
is_true
(&self)
src/types/boolobject.rs:73
↓ 2 callers
Method
item_size
(&self)
src/buffer.rs:663
↓ 2 callers
Method
iter
(&self)
src/types/frozenset.rs:181
↓ 2 callers
Method
kind
(&self)
pyo3-ffi/src/cpython/unicodeobject.rs:181
↓ 2 callers
Function
lazy_into_normalized_ffi_tuple
( py: Python<'_>, lazy: Box<PyErrStateLazyFn>, )
src/err/err_state.rs:366
↓ 2 callers
Method
len
(&self)
src/types/frozenset.rs:156
↓ 2 callers
Method
len
(&self)
src/types/set.rs:152
↓ 2 callers
Method
len_bytes
(&self)
src/buffer.rs:677
↓ 2 callers
Method
lib_dir_string
Converts `lib_dir` member field to an UTF-8 string. The conversion can not fail because `PYO3_CROSS_LIB_DIR` variable is ensured contain a valid UTF-
pyo3-build-config/src/impl_.rs:1772
↓ 2 callers
Method
lock
Acquire the mutex, blocking the current thread until it is able to do so.
src/sync/nonpoison.rs:66
↓ 2 callers
Method
lookup_special
(&self, attr_name: N)
src/types/any.rs:1308
↓ 2 callers
Method
make_module
Builds a module object directly. Used for [`#[pymodule]`][crate::pymodule] submodules.
src/impl_/pymodule.rs:126
↓ 2 callers
Function
map_result
(result: LockResult<T>, f: F)
src/sync/mutex.rs:222
↓ 2 callers
Method
missing_required_arguments
(&self, argument_type: &str, parameter_names: &[&str])
src/impl_/extract_argument.rs:896
↓ 2 callers
Method
module
Gets the name of the module defining the `PyType`.
src/types/typeobject.rs:157
← previous
next →
601–700 of 4,885, ranked by callers