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
↓ 3 callers
Function
_get_feature_sets
Returns feature sets to use for Rust jobs
noxfile.py:1877
↓ 3 callers
Function
_get_output
(*args: str, env: dict[str, str] | None = None)
noxfile.py:44
↓ 3 callers
Function
_get_rust_info
()
noxfile.py:1848
↓ 3 callers
Function
_is_no_std
()
noxfile.py:86
↓ 3 callers
Function
_test_binary_dunder
(dunder: &str)
tests/test_arithmetics.rs:706
↓ 3 callers
Function
abc_dict
(py: Python<'_>)
src/types/dict.rs:1416
↓ 3 callers
Function
abc_mappingproxy
(py: Python<'_>)
src/types/mappingproxy.rs:449
↓ 3 callers
Method
add_attributes
( &mut self, attrs: impl IntoIterator<Item = PyFunctionOption>, )
pyo3-macros-backend/src/pyfunction.rs:298
↓ 3 callers
Method
add_attributes
( &mut self, attrs: impl IntoIterator<Item = PyModulePyO3Option>, )
pyo3-macros-backend/src/module.rs:62
↓ 3 callers
Function
add_libpython_rpath_link_args
for more details.
pyo3-build-config/src/lib.rs:98
↓ 3 callers
Method
add_wrapped
(&self, wrapper: &impl Fn(Python<'py>) -> T)
src/types/module.rs:535
↓ 3 callers
Method
any
(&mut self, mut f: F)
src/types/dict.rs:617
↓ 3 callers
Function
applicable_stable_abi
Selects which stable ABI (kind and minimum version) from the `abi3-py3*` and `abi3t-py3*` features (if any) applies to the given interpreter. Interpr
pyo3-build-config/src/impl_.rs:102
↓ 3 callers
Method
as_ptr
(&self)
src/pycell.rs:294
↓ 3 callers
Method
as_ref
(&self)
src/pybacked.rs:76
↓ 3 callers
Function
bench_bytes_into_pyobject
(b: &mut Bencher<'_>, data: &[u8])
pyo3-benches/benches/bench_intopyobject.rs:29
↓ 3 callers
Function
bench_bytes_new
(b: &mut Bencher<'_>, data: &[u8])
pyo3-benches/benches/bench_intopyobject.rs:9
↓ 3 callers
Function
bench_vec_from_py_bytearray
(b: &mut Bencher<'_>, data: &[u8])
pyo3-benches/benches/bench_frompyobject.rs:98
↓ 3 callers
Function
bench_vec_from_py_bytes
(b: &mut Bencher<'_>, data: &[u8])
pyo3-benches/benches/bench_frompyobject.rs:76
↓ 3 callers
Method
build
(self)
src/impl_/pymodule.rs:429
↓ 3 callers
Method
call
(&self, args: A, kwargs: Option<&Bound<'py, PyDict>>)
src/types/any.rs:1074
↓ 3 callers
Method
clone_ref
(&self, py: Python<'_>)
src/pybacked.rs:42
↓ 3 callers
Function
consume_eol
(bytes: &[u8], i: usize)
src/impl_/unindent.rs:135
↓ 3 callers
Method
context
(&self)
src/types/capsule.rs:540
↓ 3 callers
Method
context
Return the context (either an exception instance, or None, set by an implicit exception during handling of another exception) associated with the exce
src/err/mod.rs:616
↓ 3 callers
Method
create_class_object_of_type
Creates a new class object and initializes it given a typeobject `subtype`. # Safety `subtype` must be a valid pointer to the type object of T or a s
src/pyclass_init.rs:146
↓ 3 callers
Function
create_py_c_function
Creates a `PyCFunction` object from a `PyMethodDef`. # Safety The `method_def` pointer must be valid for the lifetime of the returned `PyCFunction`
src/impl_/pyfunction.rs:108
↓ 3 callers
Method
create_py_c_function
( &'static self, py: Python<'py>, module: Option<&Bound<'py, PyModule>>, )
src/impl_/pyfunction.rs:29
↓ 3 callers
Function
declarative_module
(py: Python<'_>)
tests/test_declarative_module.rs:164
↓ 3 callers
Function
default_lib_name_for_target
Generates the default library name for the target platform.
pyo3-build-config/src/impl_.rs:2464
↓ 3 callers
Function
default_lib_name_windows
(abi: PythonAbi, mingw: bool)
pyo3-build-config/src/impl_.rs:2477
↓ 3 callers
Function
deserialize_chunk
( symbol_name: &str, content_with_chunk_at_the_beginning: &[u8], is_little_endian: bool, )
pyo3-introspection/src/introspection.rs:640
↓ 3 callers
Function
dict_len
(dict: &Bound<'_, PyDict>)
src/types/dict.rs:432
↓ 3 callers
Method
disarm
(self)
src/impl_/panic.rs:17
↓ 3 callers
Method
doc
(self, doc: PythonDoc)
pyo3-macros-backend/src/pyclass.rs:2736
↓ 3 callers
Function
doc_bytes_as_cstr
Casts bytes to a CStr, ensuring they are valid.
src/impl_/pyclass/doc.rs:42
↓ 3 callers
Function
doc_to_optional_cstr
(doc: Option<&PythonDoc>, ctx: &Ctx)
pyo3-macros-backend/src/pymethod.rs:2029
↓ 3 callers
Method
done
(&self, guard: &Guard)
src/sync/mutex.rs:53
↓ 3 callers
Method
drop_deferred_references
(&self, py: Python<'_>)
src/internal/state.rs:230
↓ 3 callers
Method
encode_utf8
(&self)
src/types/string.rs:366
↓ 3 callers
Function
error_on_negative_with_result
( py: Python<'_>, result: T, )
src/err/mod.rs:773
↓ 3 callers
Method
extract
(obj: Borrowed<'_, '_, PyAny>)
src/conversions/rust_decimal.rs:74
↓ 3 callers
Method
extract
(ob: Borrowed<'_, 'py, PyAny>)
src/conversions/num_bigint.rs:256
↓ 3 callers
Method
extract
(ob: Borrowed<'_, '_, PyAny>)
src/conversions/std/osstr.rs:100
↓ 3 callers
Method
extract
(ob: Borrowed<'a, '_, PyAny>)
src/conversions/std/string.rs:131
↓ 3 callers
Function
extract_py_delta_from_duration
( duration: Duration, py: Python<'_>, )
src/conversions/time.rs:489
↓ 3 callers
Function
f
()
src/impl_/pyfunction.rs:143
↓ 3 callers
Method
ffi_type
(self, ctx: &Ctx)
pyo3-macros-backend/src/pymethod.rs:1186
↓ 3 callers
Method
from_py_with
(&self)
pyo3-macros-backend/src/method.rs:100
↓ 3 callers
Method
generate
(self, ctx: &Ctx, cls: &syn::Type, slot: &SlotDef)
pyo3-macros-backend/src/pyclass.rs:1792
↓ 3 callers
Method
generate
`Py<T>` fields have a potential optimization to use Python's "struct members" to read the field directly from the struct, rather than using a getter f
src/impl_/pyclass.rs:1294
↓ 3 callers
Method
get
(&self)
src/pycell/impl_.rs:1013
↓ 3 callers
Method
get_doc
Forwards to [utils::get_doc] with the text signature of this spec.
pyo3-macros-backend/src/method.rs:1115
↓ 3 callers
Function
get_macro_name_from_input
( proc_macro: &str, input: proc_macro::TokenStream, )
pyo3-ffi-check/macro/src/lib.rs:900
↓ 3 callers
Method
get_ptr
Gets a pointer to the specified item. If `indices.len() < self.dimensions()`, returns the start address of the sub-array at the specified dimension.
src/buffer.rs:635
↓ 3 callers
Method
get_wrapper_function
Return a C wrapper function for this signature.
pyo3-macros-backend/src/method.rs:823
↓ 3 callers
Function
handle_windows
(test: &str)
tests/test_coroutine.rs:19
↓ 3 callers
Function
has_attribute_with_namespace
( attrs: &[syn::Attribute], crate_path: Option<&PyO3CratePath>, idents: &[&str], )
pyo3-macros-backend/src/utils.rs:274
↓ 3 callers
Function
have_python_interpreter
Checks if we should look for a Python interpreter installation to get the target interpreter configuration. Returns `false` if `PYO3_NO_PYTHON` envir
pyo3-build-config/src/impl_.rs:1600
↓ 3 callers
Function
ident_to_type
(ident: &Ident)
pyo3-macros-backend/src/introspection.rs:655
↓ 3 callers
Method
impl_add_to_module
(&self, ctx: &Ctx)
pyo3-macros-backend/src/pyclass.rs:3109
↓ 3 callers
Method
impl_freelist
(&self, ctx: &Ctx)
pyo3-macros-backend/src/pyclass.rs:3120
↓ 3 callers
Method
impl_introspection
(&self, ctx: &Ctx, parent: Option<&Ident>)
pyo3-macros-backend/src/pyclass.rs:3164
↓ 3 callers
Function
impl_py_class_attribute
( cls: &syn::Type, spec: &FnSpec<'_>, ctx: &Ctx, )
pyo3-macros-backend/src/pymethod.rs:588
↓ 3 callers
Function
impl_py_getter_def
Used here for PropertyType::Function, used in pyclass for descriptors.
pyo3-macros-backend/src/pymethod.rs:875
↓ 3 callers
Method
impl_pyclass
(&self, ctx: &Ctx)
pyo3-macros-backend/src/pyclass.rs:2743
↓ 3 callers
Method
impl_pyclassimpl
(&self, ctx: &Ctx)
pyo3-macros-backend/src/pyclass.rs:2786
↓ 3 callers
Function
impl_pytypeinfo
(cls: &Ident, attr: &PyClassArgs, ctx: &Ctx)
pyo3-macros-backend/src/pyclass.rs:2287
↓ 3 callers
Function
implement_pyclass_str
( options: &PyClassPyO3Options, ty: &syn::Type, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:980
↓ 3 callers
Method
indices
(&self, length: isize)
src/types/slice.rs:122
↓ 3 callers
Function
init
(m: &Bound<'_, PyModule>)
pytests/src/lib.rs:64
↓ 3 callers
Method
into_inner
Returns the error code.
src/pyclass/gc.rs:22
↓ 3 callers
Method
into_inner
Consumes this `CastIntoError` and returns the original object, allowing continued use of it after a failed conversion. See [`cast_into`][Bound::cast_
src/err/cast_error.rs:59
↓ 3 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/chrono_tz.rs:58
↓ 3 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/std/vec.rs:29
↓ 3 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/std/slice.rs:28
↓ 3 callers
Method
into_super
Gets a `PyRef<T::BaseType>`. While `as_ref()` returns a reference of type `&T::BaseType`, this cannot be used to get the base of `T::BaseType`. But
src/pycell.rs:373
↓ 3 callers
Method
into_token_stream
(self, pyo3_crate_path: &PyO3CratePath)
pyo3-macros-backend/src/introspection.rs:580
↓ 3 callers
Method
is_c_contiguous
(&self)
src/buffer.rs:741
↓ 3 callers
Method
is_debug
Whether this is targeting a debug build of the interpreter.
pyo3-build-config/src/impl_.rs:1174
↓ 3 callers
Method
is_fortran_contiguous
(&self)
src/buffer.rs:747
↓ 3 callers
Method
is_instance
(&self, py: Python<'_>, ty: &Bound<'_, PyAny>)
src/err/mod.rs:434
↓ 3 callers
Function
is_introspection_symbol
(name: &str)
pyo3-introspection/src/introspection.rs:674
↓ 3 callers
Method
iter
(&self)
src/types/frozendict.rs:243
↓ 3 callers
Method
len
(&self)
src/types/dict.rs:231
↓ 3 callers
Method
lock_py_attached
( &self, _py: Python<'_>, )
src/sync.rs:411
↓ 3 callers
Function
make_traverse_result
(retval: c_int)
src/pyclass/gc.rs:77
↓ 3 callers
Function
map_dict
Return a dict with `m = Mapping(['1', '2', '3'])`.
tests/test_mapping.rs:77
↓ 3 callers
Method
matches
Returns if a Rust [`core::cmp::Ordering`] matches this ordering query. Usage example: ```rust,no_run # use pyo3::prelude::*; # use pyo3::class::basi
src/pyclass.rs:84
↓ 3 callers
Method
maybe_free_threaded
(self, free_threaded: bool)
pyo3-build-config/src/impl_.rs:963
↓ 3 callers
Function
module_stubs
Generates the module stubs to a String, re-exporting the submodules but not their content
pyo3-introspection/src/stubs.rs:53
↓ 3 callers
Method
name
(&self)
pyo3-macros-backend/src/frompyobject.rs:280
↓ 3 callers
Method
next
(&mut self)
src/conversions/std/num.rs:501
↓ 3 callers
Function
none
()
pytests/src/pyfunctions.rs:5
↓ 3 callers
Method
nth
(&mut self, n: usize)
src/types/list.rs:609
↓ 3 callers
Function
panic_on_null
(py: Python<'_>)
src/instance.rs:2356
↓ 3 callers
Method
poll
(&mut self, py: Python<'_>, throw: Option<Py<PyAny>>)
src/coroutine.rs:69
↓ 3 callers
Method
pow
Computes `self ** other % modulus` (`pow(self, other, modulus)`). `py.None()` may be passed for the `modulus`.
src/types/any.rs:1056
↓ 3 callers
Function
print_expected_cfgs
()
pyo3-build-config/src/lib.rs:156
↓ 3 callers
Function
pyclass_hash
( options: &PyClassPyO3Options, cls: &syn::Type, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:2523
← previous
next →
401–500 of 4,885, ranked by callers