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
↓ 15 callers
Method
call0
Calls the object without arguments. This is equivalent to the Python expression `self()`.
src/instance.rs:1967
↓ 15 callers
Method
call_method1
(&self, name: N, args: A)
src/types/any.rs:1133
↓ 15 callers
Method
contains
(&self, value: V)
src/types/any.rs:1278
↓ 15 callers
Method
finish
(self)
pyo3-build-config/src/lib.rs:268
↓ 15 callers
Method
import
Imports the Python module with the specified name.
src/marker.rs:658
↓ 15 callers
Method
iter
Returns an iterator over this list's items.
src/types/list.rs:426
↓ 15 callers
Function
new_py_datetime_ob
(py: Python<'py>, name: &str, args: A)
src/conversions/jiff.rs:1030
↓ 15 callers
Method
target_abi
The ABI to use for the compilation target. See the documentation for the PythonAbi enum for more details. Serialized to `target_abi`.
pyo3-build-config/src/impl_.rs:303
↓ 15 callers
Method
to_str
(&self)
src/types/string.rs:354
↓ 15 callers
Method
try_iter
(&self)
src/types/any.rs:1194
↓ 15 callers
Method
with_critical_section
( &mut self, f: impl FnOnce(&mut Index, &mut Length, &Bound<'py, PyList>) -> R, )
src/types/list.rs:583
↓ 14 callers
Method
add_function
(&self, fun: Bound<'_, PyCFunction>)
src/types/module.rs:558
↓ 14 callers
Method
as_ptr
(&self)
src/instance.rs:853
↓ 14 callers
Method
assume_owned_unchecked
(self, py: Python<'_>)
src/ffi_ptr_ext.rs:72
↓ 14 callers
Method
context
(self, message: impl Into<String>)
pyo3-build-config/src/errors.rs:112
↓ 14 callers
Method
extract
(&'a self)
src/types/any.rs:1207
↓ 14 callers
Method
free_threaded
(self)
pyo3-build-config/src/impl_.rs:956
↓ 14 callers
Function
generate_unique_module_name
(base: &str)
tests/test_utils/mod.rs:285
↓ 14 callers
Function
get_doc
Collects all #[doc = "..."] attributes into a TokenStream evaluating to a string. If this doc is for a callable, the provided `text_signature` can be
pyo3-macros-backend/src/utils.rs:87
↓ 14 callers
Method
len
(&self)
src/conversions/std/num.rs:520
↓ 13 callers
Method
as_str
(&self)
pyo3-build-config/src/impl_.rs:1906
↓ 13 callers
Method
clone_ref
(&self, py: Python<'_>)
src/err/mod.rs:580
↓ 13 callers
Function
drop_check
()
tests/test_gc.rs:83
↓ 13 callers
Method
get
( &self, py: Python<'_>, capacity: usize, )
src/impl_/freelist.rs:28
↓ 13 callers
Function
get_ssize_index
Convert an usize index into a Py_ssize_t index, clamping overflow to PY_SSIZE_T_MAX.
src/internal_tricks.rs:21
↓ 13 callers
Method
into_bound_py_any
(self, py: Python<'py>)
src/conversion.rs:225
↓ 13 callers
Method
into_pyobject
(self, py: Python<'py>)
src/types/tuple.rs:1475
↓ 13 callers
Method
setattr
Sets an attribute value. This is equivalent to the Python expression `self.attr_name = value`. To avoid repeated temporary allocations of Python str
src/instance.rs:1931
↓ 13 callers
Function
with_critical_section
(object: &Bound<'_, PyAny>, f: F)
src/sync/critical_section.rs:132
↓ 12 callers
Function
Py_DECREF
(op: *mut PyObject)
pyo3-ffi/src/refcount.rs:269
↓ 12 callers
Method
clone_ref
(slf: &'a Bound<'py, Self>)
tests/test_pyself.rs:20
↓ 12 callers
Method
display
Prints a standard traceback to `sys.stderr`.
src/err/mod.rs:383
↓ 12 callers
Method
find
(&mut self, mut predicate: P)
src/types/dict.rs:634
↓ 12 callers
Method
get
( &self, py: Python<'_>, key: &str, default: Option<Py<PyAny>>, )
tests/test_mapping.rs:63
↓ 12 callers
Method
to_cow
(&self)
src/types/string.rs:358
↓ 12 callers
Method
to_string_lossy
Convert the raw data to a Rust string, possibly with data loss. Invalid code points will be replaced with `U+FFFD REPLACEMENT CHARACTER`. Returns a
src/types/string.rs:116
↓ 11 callers
Method
_get_refcnt
(&self)
src/types/any.rs:1334
↓ 11 callers
Method
as_mut
(&mut self)
src/pycell.rs:555
↓ 11 callers
Method
as_super
Borrows a shared reference to `PyRef<T::BaseType>`. With the help of this method, you can access attributes and call methods on the superclass withou
src/pycell.rs:454
↓ 11 callers
Method
assert_drops_with_gc
(&self, object: *mut pyo3::ffi::PyObject)
tests/test_gc.rs:114
↓ 11 callers
Method
assert_not_dropped
(&self)
tests/test_gc.rs:104
↓ 11 callers
Method
assume_borrowed_unchecked
(self, py: Python<'_>)
src/ffi_ptr_ext.rs:112
↓ 11 callers
Method
bind_borrowed
(&'a self, py: Python<'py>)
src/instance.rs:1759
↓ 11 callers
Function
env_var
Gets an external environment variable, and registers the build script to rerun if the variable changes.
pyo3-build-config/src/impl_.rs:56
↓ 11 callers
Method
extract
(ob: Borrowed<'_, '_, PyAny>)
src/conversions/chrono.rs:126
↓ 11 callers
Method
get_class_object
(&self)
src/instance.rs:757
↓ 11 callers
Function
inner
( create_reference: impl for<'py> FnOnce( &Bound<'py, PyAny>,
src/types/weakref/anyref.rs:374
↓ 11 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/chrono.rs:79
↓ 11 callers
Method
lib_dir
The directory containing the Python library to link against. The effectively controls the `cargo:rustc-link-search=native=<path>` value to add an add
pyo3-build-config/src/impl_.rs:331
↓ 11 callers
Method
write_unraisable
(self, py: Python<'_>, obj: Option<&Bound<'_, PyAny>>)
src/err/mod.rs:484
↓ 10 callers
Function
PyType_FastSubclass
(t: *mut PyTypeObject, f: c_ulong)
pyo3-ffi/src/object.rs:738
↓ 10 callers
Method
call1
Calls the object with only positional arguments. This is equivalent to the Python expression `self(*args)`.
src/instance.rs:1957
↓ 10 callers
Method
get_or_init
(&self, py: Python<'_>, f: F)
src/sync/once_lock.rs:61
↓ 10 callers
Method
get_or_try_init
Like `get_or_init`, but accepts a fallible initialization function. If it fails, the cell is left uninitialized. See the type-level documentation for
src/sync/once_lock.rs:74
↓ 10 callers
Method
implementation
The Python implementation flavor. Serialized to `implementation`.
pyo3-build-config/src/impl_.rs:281
↓ 10 callers
Method
into_ptr
(self)
src/pycell.rs:305
↓ 10 callers
Method
len
Returns the length of the list.
src/types/list.rs:253
↓ 10 callers
Function
trampoline
(body: F)
src/impl_/trampoline.rs:302
↓ 10 callers
Method
write
(&mut self, buf: &[u8])
src/types/bytes/writer.rs:168
↓ 9 callers
Method
add_argument
( &mut self, signature: &mut PythonSignature, name: String, default_value: Opt
pyo3-macros-backend/src/pyfunction/signature.rs:327
↓ 9 callers
Method
copy
(&self)
src/types/dict.rs:219
↓ 9 callers
Method
dict
(&self)
src/types/module.rs:435
↓ 9 callers
Method
extract
( self, ident: &syn::Ident, arg: &FnArg<'_>, extract_error_mode: ExtractErrorM
pyo3-macros-backend/src/pymethod.rs:1203
↓ 9 callers
Method
extract
(ob: Borrowed<'_, '_, PyAny>)
src/conversions/time.rs:175
↓ 9 callers
Method
get
(&self, _py: Python<'_>)
src/sync/once_lock.rs:52
↓ 9 callers
Function
inner
(slf: *mut ffi::PyObject, f: Func)
src/impl_/trampoline.rs:128
↓ 9 callers
Method
into_bound
(self)
src/instance.rs:916
↓ 9 callers
Method
name
(self)
noxfile.py:2082
↓ 9 callers
Method
serialize_expr
(&self, expr: &Expr, buffer: &mut String)
pyo3-introspection/src/stubs.rs:525
↓ 9 callers
Function
take_pyo3_options
(attrs: &mut Vec<syn::Attribute>)
pyo3-macros-backend/src/attributes.rs:429
↓ 9 callers
Method
to_any
(self)
src/instance.rs:1002
↓ 8 callers
Function
PyDateTime_IMPORT
Populates the `PyDateTimeAPI` object
pyo3-ffi/src/datetime.rs:611
↓ 8 callers
Function
acquire_watcher_test_lock
()
src/types/context.rs:448
↓ 8 callers
Method
add_introspection
(&mut self, data: TokenStream)
pyo3-macros-backend/src/pymethod.rs:34
↓ 8 callers
Method
as_ref
(&self)
src/instance.rs:809
↓ 8 callers
Method
as_unbound
(&self)
src/instance.rs:904
↓ 8 callers
Function
cargo_env_var
Gets an environment variable owned by cargo. Environment variables set by cargo are expected to be valid UTF8.
pyo3-build-config/src/impl_.rs:50
↓ 8 callers
Function
clean_type
(mut t: Type, self_type: Option<&Type>)
pyo3-macros-backend/src/py_expr.rs:357
↓ 8 callers
Method
data
(&self)
src/types/string.rs:375
↓ 8 callers
Method
get_hour
(&self)
src/types/datetime.rs:505
↓ 8 callers
Method
get_microsecond
(&self)
src/types/datetime.rs:538
↓ 8 callers
Method
get_minute
(&self)
src/types/datetime.rs:516
↓ 8 callers
Method
get_second
(&self)
src/types/datetime.rs:527
↓ 8 callers
Method
get_type
Returns the type of this exception. # Examples ```rust use pyo3::{prelude::*, exceptions::PyTypeError, types::PyType}; Python::attach(|py| { let err
src/err/mod.rs:216
↓ 8 callers
Method
into_pyobject
(self, py: Python<'py>)
src/conversions/time.rs:136
↓ 8 callers
Method
iter
(&self)
src/types/dict.rs:318
↓ 8 callers
Method
next_unchecked
Safety: the dict should be locked with a critical section on the free-threaded build and otherwise not shared between threads in code that releases th
src/types/dict.rs:462
↓ 8 callers
Method
pointer_checked
(&self, name: Option<&CStr>)
src/types/capsule.rs:551
↓ 8 callers
Function
safe_cast_c_int_to_u16
(val: c_int)
pyo3-ffi/src/slots.rs:53
↓ 8 callers
Method
set
(&mut self, bit_offset: usize, bit_width: u8, val: u64)
pyo3-ffi/src/cpython/unicodeobject.rs:95
↓ 8 callers
Method
set
Set the value in the cell. If the cell has already been written, `Err(value)` will be returned containing the new value which was not written.
src/sync/once_lock.rs:93
↓ 8 callers
Method
sort
Sorts the list in-place. Equivalent to the Python expression `l.sort()`.
src/types/list.rs:441
↓ 8 callers
Function
split_off_python_arg
Split an argument of pyo3::Python from the front of the arg list, if present
pyo3-macros-backend/src/pymethod.rs:1059
↓ 8 callers
Method
str
(&self)
src/types/any.rs:1226
↓ 8 callers
Method
unwrap_or_compile_error
(self)
pyo3-macros/src/lib.rs:254
↓ 8 callers
Method
with_context
(self, message: impl FnOnce() -> String)
pyo3-build-config/src/errors.rs:119
↓ 8 callers
Method
with_critical_section
(&mut self, dict: &Bound<'_, PyDict>, f: F)
src/types/dict.rs:521
↓ 7 callers
Function
Py_INCREF
(op: *mut PyObject)
pyo3-ffi/src/refcount.rs:191
↓ 7 callers
Function
_PyFunction_CAST
(func: *mut PyObject)
pyo3-ffi/src/cpython/funcobject.rs:98
↓ 7 callers
Method
add
(&self, other: &MethodWithPyClassArg)
tests/test_methods.rs:851
← previous
next →
101–200 of 4,885, ranked by callers