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
↓ 1 callers
Function
build_py_function
( ast: &mut syn::ItemFn, mut options: PyFunctionOptions, )
pyo3-macros-backend/src/pyfunction.rs:329
↓ 1 callers
Function
build_py_methods
( ast: &mut syn::ItemImpl, methods_type: PyClassMethodsType, )
pyo3-macros-backend/src/pyimpl.rs:82
↓ 1 callers
Method
build_struct
(&self, struct_fields: &[NamedStructField<'_>], ctx: &Ctx)
pyo3-macros-backend/src/frompyobject.rs:386
↓ 1 callers
Method
build_struct
(&self, fields: &[NamedStructField<'_>], ctx: &Ctx)
pyo3-macros-backend/src/intopyobject.rs:248
↓ 1 callers
Method
build_tuple_struct
(&self, struct_fields: &[TupleStructField], ctx: &Ctx)
pyo3-macros-backend/src/frompyobject.rs:354
↓ 1 callers
Method
build_tuple_struct
(&self, fields: &[TupleStructField<'_>], ctx: &Ctx)
pyo3-macros-backend/src/intopyobject.rs:311
↓ 1 callers
Method
call_method_positional
( self, object: Borrowed<'_, 'py, PyAny>, method_name: Borrowed<'_, 'py, PyString>,
src/call.rs:68
↓ 1 callers
Method
call_once_force_py_attached
( &self, py: crate::prelude::Python<'_>, f: impl FnOnce(&Self::OnceState), )
src/platform/sync.rs:60
↓ 1 callers
Function
call_super_clear
Call super-type traverse method, if necessary. Adapted from <https://github.com/cython/cython/blob/7acfb375fb54a033f021b0982a3cd40c34fb22ac/Cython/Ut
src/impl_/pymethods.rs:564
↓ 1 callers
Function
call_super_traverse
Call super-type traverse method, if necessary. Adapted from <https://github.com/cython/cython/blob/7acfb375fb54a033f021b0982a3cd40c34fb22ac/Cython/Ut
src/impl_/pymethods.rs:449
↓ 1 callers
Function
call_with_many_keyword_arguments
(f)
pytests/tests/test_pyfunctions.py:167
↓ 1 callers
Method
can_drop
(&self, _py: Python<'_>)
src/impl_/pyclass.rs:1099
↓ 1 callers
Function
catch_unwind_silent
(f: F)
src/conversions/std/array.rs:358
↓ 1 callers
Function
changeTab
(container, name)
guide/theme/tabs.js:7
↓ 1 callers
Function
check_pyfunction
(pyo3_path: &PyO3CratePath, meth: &mut ImplItemFn)
pyo3-macros-backend/src/pyimpl.rs:99
↓ 1 callers
Function
check_repr
( reference: &Bound<'_, PyWeakrefReference>, object: Option<(&Bound<'_, PyAny>, &str)>, )
src/types/weakref/reference.rs:186
↓ 1 callers
Function
check_repr
( reference: &Bound<'_, PyWeakrefProxy>, object: &Bound<'_, PyAny>, class: Option<&str
src/types/weakref/proxy.rs:180
↓ 1 callers
Function
check_serialization
(expr: PyStaticExpr, expected: &str)
src/inspect.rs:529
↓ 1 callers
Function
class_introspection_code
( pyo3_crate_path: &PyO3CratePath, ident: &Ident, name: &str, extends: Option<PyExpr>, is_
pyo3-macros-backend/src/introspection.rs:61
↓ 1 callers
Method
class_items
# Safety All slots in the PyClassItemsIter should be correct
src/pyclass/create_type_object.rs:318
↓ 1 callers
Function
class_stubs
(class: &Class, imports: &Imports)
pyo3-introspection/src/stubs.rs:176
↓ 1 callers
Method
clear
(&self)
src/types/set.rs:145
↓ 1 callers
Method
clear
(&self)
src/sync/mutex.rs:76
↓ 1 callers
Method
clear_dict
(&self, _py: Python<'_>)
src/impl_/pyclass.rs:131
↓ 1 callers
Function
clear_eq
(f: Option<ffi::inquiry>, g: ffi::inquiry)
src/impl_/pymethods.rs:605
↓ 1 callers
Method
clear_poison
Clear the poisoned state from a mutex. If the mutex is poisoned, it will remain poisoned until this function is called. This allows recovering from a
src/sync/mutex.rs:216
↓ 1 callers
Function
clear_watcher
(py: Python<'_>, watcher_id: c_int)
src/types/context.rs:229
↓ 1 callers
Function
clear_watcher_on_drop
(_py: Python<'_>, watcher_id: c_int)
src/types/context.rs:239
↓ 1 callers
Method
clear_weakrefs
(&mut self, obj: *mut ffi::PyObject, _py: Python<'_>)
src/impl_/pyclass.rs:159
↓ 1 callers
Method
cls_method
(_cls: &Bound<'_, PyType>)
pytests/src/pyclasses.rs:262
↓ 1 callers
Method
code
(&self)
src/types/frame.rs:117
↓ 1 callers
Function
collect
()
pytests/tests/test_pyclasses.py:79
↓ 1 callers
Function
combine
Combines all bytes pieces into a single byte array. `out` should be a buffer at the correct size of `combined_len(pieces)`, else this will panic.
src/impl_/concat.rs:18
↓ 1 callers
Method
compact
(&self)
pyo3-ffi/src/cpython/unicodeobject.rs:193
↓ 1 callers
Function
complex_enum_default_methods
( cls: &'a Ident, variant_names: impl IntoIterator<Item = (&'a Ident, Cow<'a, Ident>, &'a [syn::Attrib
pyo3-macros-backend/src/pyclass.rs:1915
↓ 1 callers
Function
complex_enum_struct_variant_new
( cls: &'a syn::Ident, variant: PyClassEnumStructVariant<'a>, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:1995
↓ 1 callers
Function
complex_enum_tuple_variant_new
( cls: &'a syn::Ident, variant: PyClassEnumTupleVariant<'a>, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:2062
↓ 1 callers
Function
complex_enum_variant_new
( cls: &'a syn::Ident, variant: PyClassEnumVariant<'a>, ctx: &Ctx, )
pyo3-macros-backend/src/pyclass.rs:1980
↓ 1 callers
Function
conda_env_interpreter
(conda_prefix: &OsStr, windows: bool)
pyo3-build-config/src/impl_.rs:2614
↓ 1 callers
Function
configure_pyo3
Prepares the PyO3 crate for compilation. This loads the config from pyo3-build-config and then makes some additional checks to improve UX for users.
build.rs:35
↓ 1 callers
Function
configure_pyo3_ffi
Prepares the PyO3 crate for compilation. This uses pyo3-build-config implementation to detect the target Python interpreter and validate it's suitabl
pyo3-ffi/build.rs:341
↓ 1 callers
Function
configure_wip_no_std
Enables a faux `std` feature by default. Set env var `PYO3_WIP_NO_STD` to `1` to disable it. Has matching functions in - pyo3-macros-backend - pytest
build.rs:62
↓ 1 callers
Function
configure_wip_no_std
Enables a faux `std` feature by default. Set env var `PYO3_WIP_NO_STD` to `1` to disable it. Has a matching function in pyo3's build.rs
pyo3-macros-backend/build.rs:12
↓ 1 callers
Function
configure_wip_no_std
Enables a faux `std` feature by default. Set env var `PYO3_WIP_NO_STD` to `1` to disable it. Has a matching function in pyo3's build.rs
pytests/build.rs:14
↓ 1 callers
Function
contains
()
tests/test_proto_methods.rs:586
↓ 1 callers
Method
contents_mut
(&mut self)
src/pycell/impl_.rs:503
↓ 1 callers
Function
convert
(py: Python<'py>, value: T)
src/impl_/callback.rs:215
↓ 1 callers
Function
convert_argument
( arg: &ChunkArgument, type_hint_for_annotation_id: &HashMap<String, Expr>, )
pyo3-introspection/src/introspection.rs:319
↓ 1 callers
Function
convert_attribute
( name: &str, value: &Option<ChunkExpr>, annotation: &Option<ChunkExpr>, docstring: Option<&st
pyo3-introspection/src/introspection.rs:349
↓ 1 callers
Function
convert_class
( id: &str, name: &str, bases: &[ChunkExpr], decorators: &[ChunkExpr], docstring: Option<&
pyo3-introspection/src/introspection.rs:234
↓ 1 callers
Function
convert_function
( name: &str, arguments: &ChunkArguments, decorators: &[ChunkExpr], returns: &Option<ChunkExpr
pyo3-introspection/src/introspection.rs:271
↓ 1 callers
Function
convert_variable_length_argument
( arg: &ChunkArgument, type_hint_for_annotation_id: &HashMap<String, Expr>, )
pyo3-introspection/src/introspection.rs:336
↓ 1 callers
Function
copy_forward_until_eol
Brings elements in `bytes` forward until `\n` (inclusive) or end of `source`. `read_idx` must be greater than or equal to `write_idx`.
src/impl_/unindent.rs:108
↓ 1 callers
Method
copy_from_fortran_slice
Copies the specified slice into the buffer. If the buffer is multi-dimensional, the elements in the slice are expected to be in Fortran-style order.
src/buffer.rs:484
↓ 1 callers
Method
copy_to_slice
Copies the buffer elements to the specified slice. If the buffer is multi-dimensional, the elements are written in C-style order. Fails if the slice
src/buffer.rs:383
↓ 1 callers
Method
create
This generates a map from the builtin or module name to the actual alias used in the file For Python builtins and elements declared by the module the
pyo3-introspection/src/stubs.rs:417
↓ 1 callers
Function
create_array_from_obj
(obj: Borrowed<'_, 'py, PyAny>)
src/conversions/std/array.rs:70
↓ 1 callers
Method
create_class_object
Creates a new class object and initializes it.
src/pyclass_init.rs:135
↓ 1 callers
Function
create_primitive_date_time_from_py
( py: Python<'_>, year: u32, month: u8, day: u8, h
src/conversions/time.rs:634
↓ 1 callers
Method
create_py_get_set_def
Fills a PyGetSetDef structure It is only valid for as long as this GetSetDefType remains alive, as well as name and doc members
src/pyclass/create_type_object.rs:659
↓ 1 callers
Function
cross_compile_from_sysconfigdata
Find cross compilation information from sysconfigdata file first find sysconfigdata file which follows the pattern [`_sysconfigdata_{abi}_{platform}_
pyo3-build-config/src/impl_.rs:2318
↓ 1 callers
Function
cross_compiling_from_to
Detect whether we are cross compiling and return an assembled CrossCompileConfig if so. This function relies on PyO3 cross-compiling environment vari
pyo3-build-config/src/impl_.rs:1885
↓ 1 callers
Function
datetime_class
(py: Python<'_>)
src/conversions/std/time.rs:405
↓ 1 callers
Function
datetime_to_pydatetime
( py: Python<'py>, datetime: DateTime, fold: bool, timezone: Option<&TimeZone>, )
src/conversions/jiff.rs:67
↓ 1 callers
Method
dealloc
(&mut self, py: Python<'_>, py_object: *mut ffi::PyObject)
src/pycell/impl_.rs:437
↓ 1 callers
Method
debug
(self)
pyo3-build-config/src/impl_.rs:948
↓ 1 callers
Function
debug_buffer
( name: &str, b: &PyUntypedBuffer, f: &mut core::fmt::Formatter<'_>, )
src/buffer.rs:73
↓ 1 callers
Method
decrement
(&self)
src/pycell/impl_.rs:95
↓ 1 callers
Function
decrement_attach_count
()
src/internal/state.rs:392
↓ 1 callers
Function
default_stable_abi_config
Generates "default" interpreter configuration when compiling stable ABI extensions without a working Python interpreter. `abi3_version` or `abi3t_ver
pyo3-build-config/src/impl_.rs:2401
↓ 1 callers
Method
default_trailing_parameters_to_none
Gives the last `count` positional parameters a `None` default, matching a CPython slot wrapper which substitutes `None` for the trailing arguments the
pyo3-macros-backend/src/pyfunction/signature.rs:591
↓ 1 callers
Function
define_inventory_class
(inventory_class_name: &syn::Ident, ctx: &Ctx)
pyo3-macros-backend/src/pyclass.rs:3201
↓ 1 callers
Method
del_item
(&self, key: K)
src/types/dict.rs:283
↓ 1 callers
Method
del_item
(&self, index: usize)
src/types/list.rs:350
↓ 1 callers
Method
del_slice
(&self, i1: usize, i2: usize)
src/types/sequence.rs:264
↓ 1 callers
Method
del_slice
(&self, low: usize, high: usize)
src/types/list.rs:373
↓ 1 callers
Method
delattr
(&self, attr_name: N)
src/types/any.rs:899
↓ 1 callers
Method
deref
(&self)
src/pycell.rs:469
↓ 1 callers
Method
deref
(&self)
src/pyclass/guard.rs:291
↓ 1 callers
Function
descriptors_to_items
( cls: &Ident, rename_all: Option<&RenameAllAttribute>, frozen: Option<frozen>, field_options:
pyo3-macros-backend/src/pyclass.rs:2175
↓ 1 callers
Function
destructor
(_val: u32, ctx: *mut c_void)
src/types/capsule.rs:874
↓ 1 callers
Function
dict_offset
()
src/impl_/pyclass.rs:47
↓ 1 callers
Method
dir
(&self)
src/types/any.rs:1248
↓ 1 callers
Method
drop_deferred_references_slow
(&self, py: Python<'_>)
src/internal/state.rs:243
↓ 1 callers
Method
dst
(self, dt)
pytests/tests/test_datetime.py:19
↓ 1 callers
Function
dumps
Serialize an object to bytes using the Python built-in marshal module. The built-in marshalling only supports a limited range of objects. The exact t
src/marshal.rs:35
↓ 1 callers
Function
dunder_all_stubs
Generates the `__all__` declaration of a module, if we are able to write an accurate one. `PyModuleMethods::add` appends every name it adds to the mo
pyo3-introspection/src/stubs.rs:138
↓ 1 callers
Function
elide_lifetimes
(ty: &mut syn::Type)
pyo3-macros-backend/src/utils.rs:384
↓ 1 callers
Function
emit_link_config
(build_config: &BuildConfig)
pyo3-ffi/build.rs:259
↓ 1 callers
Function
empty_module
(name: &str)
pyo3-introspection/src/stubs.rs:1042
↓ 1 callers
Function
ends_with
(entry: &DirEntry, pat: &str)
pyo3-build-config/src/impl_.rs:2118
↓ 1 callers
Method
ensure
(&self)
src/impl_/pyclass.rs:1095
↓ 1 callers
Function
ensure_auto_initialize_ok
(interpreter_config: &InterpreterConfig)
build.rs:8
↓ 1 callers
Function
ensure_function_options_valid
(options: &PyFunctionOptions)
pyo3-macros-backend/src/pymethod.rs:375
↓ 1 callers
Method
ensure_init
( &self, type_object: &Bound<'_, PyType>, #[allow(unused_variables)] is_immutable_type
src/impl_/pyclass/lazy_type_object.rs:122
↓ 1 callers
Function
ensure_initialized
()
src/interpreter_lifecycle.rs:112
↓ 1 callers
Function
ensure_no_forbidden_protocol_attributes
( proto_kind: &PyMethodProtoKind, spec: &FnSpec<'_>, method_name: &str, )
pyo3-macros-backend/src/pymethod.rs:382
↓ 1 callers
Function
ensure_python_version
(interpreter_config: &InterpreterConfig)
pyo3-ffi/build.rs:56
↓ 1 callers
Function
ensure_signatures_on_valid_method
( fn_type: &FnType, signature: Option<&SignatureAttribute>, text_signature: Option<&TextSignatureA
pyo3-macros-backend/src/method.rs:1275
↓ 1 callers
Function
ensure_target_pointer_width
(interpreter_config: &InterpreterConfig)
pyo3-ffi/build.rs:171
← previous
next →
901–1,000 of 4,885, ranked by callers